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

Also read in:

use Google Translate

Operating Systems: 

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


     Strace should be collected when application exits abnormally or causes the machine freeze.

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




    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 (unser root):

    Acronis Managed Machine Service

    First of all you should export library pathes 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 /usr/sbin/acronis_mms

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

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

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


    Acronis Management Console

    Process of stracing is the same as for acronis_mms, the difference is in libraries and binary pathes, 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 /usr/lib/Acronis/BackupAndRecoveryConsole/ManagementConsole


    Service Process

    Rename service_process.bin (/usr/lib/Acronis/BackupAndRecovery/service_process) to /usr/lib/Acronis/BackupAndRecovery/service_process.bin

    The path to service_process is the same for 32bit and 64bit OS.

    #mv /usr/lib/Acronis/BackupAndRecovery/service_process /usr/lib/Acronis/BackupAndRecovery/service_process.bin

    Create a script named service_process with the following content in the directory /usr/lib/Acronis/BackupAndRecovery/

    me_base=`basename $me`
    exec strace -o /tmp/$me_base.$$.strace -fF $me.bin $* > /tmp/$me_base.$$ 2>&1

    Make it executable by:

    #chmod +x /usr/lib/Acronis/BackupAndRecovery/service_process

    It will create a strace log in /tmp directory.
    Start a backup and when the issue reproduces, send the resulting file to the Development Team. You may need to stop the strace manually. After strace is completed, do not forget to delete the fake service_process and rename the backed up original script to service_process:

    #mv /usr/lib/Acronis/BackupAndRecovery/service_process.bin /usr/lib/Acronis/BackupAndRecovery/service_process


    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.

    More information

    See also:


    You are reporting a typo in the following text:
    Simply click the "Send typo report" button to complete the report. You can also include a comment.
    This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
    5 + 1 =
    Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.