37659: Acronis Linux Products: Collecting Strace Output of Acronis Services in Linux

    Last update: Wed, 2020-11-25 21:21

    This article describes how to get strace output of Acronis services in Linux


    Strace should be collected when the application exits abnormally or causes the application to hang. 

    If system is alive but our software does nothing/hangs, strace can be useful.

    If the application crashes, a strace is rarely. In this case, core dumps are required in the first place. See Acronis Linux Products: Collecting Core Dumps of Acronis Services in Linux.

    If system "freezes" this must be a kernel crash, the dumps are also required. 



    Strace output file consists of operations list made by an executable.

    Here is a description of how to strace some of Acronis services. To collect strace, one should have strace package installed in the system, in most cases it is preinstalled. If it is not installed, you can install it in the following way (under root):

    Acronis Managed Machine Service

    First of all you should export library paths as MMS uses shared libraries that cannot be found in the standard OS %PATH%.
    To do this you have to perform these actions:

    #cat /usr/sbin/acronis_mms | grep export

    This command will give you the content of Acronis script. Inside the script you will find a ready to use export command, for example:

    export LD_LIBRARY_PATH=/usr/lib/Acronis/BackupAndRecovery/system_libs:/usr/lib/Acronis/BackupAndRecovery/Common:/usr/lib/Acronis/Common


    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/Acronis/system_libs:/usr/lib/Acronis/Common64:/usr/lib/Acronis/BackupAndRecovery/Common64

    if you are using 64bit OS.

    2. Run the command received in step 1 before starting strace.

    3. Now you can strace MMS binary directly by issuing the following command:

    #cat /usr/sbin/acronis_mms | grep exec | tail -n 1 | awk '{print $3}'

    Example output:


    4. Start strace with the following command:

    #strace -o /tmp/mms.strace -fF -ttt /usr/sbin/acronis_mms

    It will create an output file mms.strace from the MMS binary.

    5. Collect mms.strace from the destination specified in step 4 (e.g. /tmp)

    (!) Strace output can be huge in size, please use the destination of appropriate size.


    Acronis Management Console

    Process of stracing is the same as for acronis_mms, the difference is in libraries and binary paths, you can get it from

    #cat /usr/sbin/acronis_console | grep export

    You should run its output in terminal before starting strace.
    (!) Pathes for 32bit and 64bit OS are different!

    Now you can strace the MMS binary directly, the path to it is also in the acronis_console script:

    #cat /usr/sbin/acronis_console | grep exec | tail -n 1 | awk '{print $3}'

    Example output:


    Now you can strace MMS binary directly by issuing the following command:

    #strace -o /tmp/console.strace -fF -ttt /usr/lib/Acronis/BackupAndRecoveryConsole/ManagementConsole


    Service Process

    Open /usr/lib/Acronis/BackupAndRecovery/service_process for editing and change this block:

      export LD_LIBRARY_PATH
      exec $WRAPPER /usr/lib/Acronis/BackupAndRecovery/service_process-bin "$@"


      export LD_LIBRARY_PATH
      exec $WRAPPER strace -o /tmp/service_process.$$.strace -fF /usr/lib/Acronis/BackupAndRecovery/service_process-bin "$@" > /tmp/service_process.$$ 2>&1

    It will create a strace log in the /tmp/service_process/* directory.

    Start a backup and when the issue reproduces, send the resulting file to the Development Team.

    Revert all changes after collecting strace log files.

    Acronis Bootable Media (Linux based)

    First of all, you should boot in media in command-line without starting an Acronis product. To do this on Acronis boot selection press F11 and delete the word quite.
    Start booting, the media will bring you to command-line.
    Attach USB flash drive or network share as media runs in RAM.
    Mount them locally, for example for USB flash drive:

    #fdisk -l

    Device Boot Start End Blocks Id System
    /dev/sdb1 1 64 480000000 83 Linux

    #mkdir /tmp/dongle

    #mount -t auto /dev/sdb1 /tmp/dongle

    Now you can strace the product and forward its output to the mountpoint we created. Also remember that the FAT32 file size limit is 4 GB. If it is possible, you can format your USB drive in ext4 FS for example.

    #strace -o /tmp/dongle/mms.strace -fF /bin/product

    Do not remove the USB drive until you shut down or reboot machine or until you unmount drive with the following command:

    #umount /tmp/dongle

    As it can cause complete data loss and the USB drive's FS corruption.

    Virual Appliance

    Note the IP address of the VA, press CTRL+SHIFT+ALT+SPACE+F2 to get to the text console and start the SSH daemon


    Connect to the VA using WinSCP and rename /bin/service_process to /bin/service_process.bin

    Download service_process.zip, unzip the archive, and copy the file service_process to /bin/

    In WinSCP go to Commands -> Open Terminal and run the following command

    #chmod +x /bin/service_process

    Reproduce the issue and collect strace from /tmp/root

    Put the original /bin/service_process in place

    More information

    See also: