Linux Agent isn't wprking with 2.6.24 (using TrueImage Echo Enterprise 8018)

Discussion in 'Acronis True Image Product Line' started by KraetziChriZ, Mar 29, 2008.

Thread Status:
Not open for further replies.
  1. KraetziChriZ

    KraetziChriZ Registered Member

    Joined:
    Feb 15, 2008
    Posts:
    5
    Hi,

    i just upgraded my machines (some Ubuntu and Debian Servers and Workstations) to newest Linux Kernel 2.6.24, but with this kernel the snapi module dont compile...
    With 2.6.22 everything works fine... any solutions?

    Im using Acronis Echo Enterprise Server Build 8018 (German).

    regards
    chris
     
  2. KraetziChriZ

    KraetziChriZ Registered Member

    Joined:
    Feb 15, 2008
    Posts:
    5
    I just upgraded to Echo Enterprise 8072...

    Setup returns:

    Code:
    Acronis True Image Echo Enterprise Server Setup failed to
    build kernel modules. Consult /var/log/trueimage-setup.log
    and /var/lib/dkms/snapapi26/0.7.29/build/make.log for
    error messages.
    The file /var/log/trueimage-setup.log ends with:

    Code:
    Building module:
    cleaning build area....
    make KERNELRELEASE=2.6.24-1-686 -C /lib/modules/2.6.24-1-686/build SUBDIRS=/var/lib/dkms/snapapi26/0.7.29/build modules....(bad exit status: 2)
    
    Error! Bad return status for module build on kernel: 2.6.24-1-686 (i686)
    Consult the make.log in the build directory
    /var/lib/dkms/snapapi26/0.7.29/build/ for more information.
    exited with status 10.
    Acronis True Image Echo Enterprise Server Setup failed to build kernel modules. Consult /var/log/trueimage-setup.log and /var/lib/dkms/snapapi26/0.7.29/build/make.log for error messages.
    In the Makefile I changed CFLAGS to EXTRA_CFLAGS, because the compiler required it.

    After this error is "fixed" the make.log contains the following:

    Code:
    /var/lib/dkms/snapapi26/0.7.29/build# cat make.log 
    DKMS make.log for snapapi26-0.7.29 for kernel 2.6.24-1-686 (i686)
    Sa 29. M�r 17:58:41 CET 2008
    make: Entering directory `/usr/src/linux-headers-2.6.24-1-686'
    find: /linux: Datei oder Verzeichnis nicht gefunden
    find: /linux: Datei oder Verzeichnis nicht gefunden
      CC [M]  /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.o
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:607:34: error: macro "bio_io_error" passed 2 arguments, but takes just 1
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c: In function 'make_original_request':
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:607: error: 'bio_io_error' undeclared (first use in this function)
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:607: error: (Each undeclared identifier is reported only once
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:607: error: for each function it appears in.)
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c: In function 'submit_pending_request':
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:1193: warning: assignment from incompatible pointer type
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c: In function 'sa_cache_block':
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:1289: warning: assignment from incompatible pointer type
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c: In function 'snapapi_make_request':
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:1528: error: too many arguments to function 'bio_endio'
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c: In function 'bread_submit_bios':
    /var/lib/dkms/snapapi26/0.7.29/build/snapapi26.c:2034: warning: assignment from incompatible pointer type
    make[1]: *** [/var/lib/dkms/snapapi26/0.7.29/build/snapapi26.o] Fehler 1
    make: *** [_module_/var/lib/dkms/snapapi26/0.7.29/build] Fehler 2
    make: Leaving directory `/usr/src/linux-headers-2.6.24-1-686'
    
    Any solutions?

    regards
    chris
     
  3. Acronis Support

    Acronis Support Acronis Support Staff

    Joined:
    Apr 28, 2004
    Posts:
    25,885
    Hello KraetziChriZ,

    Thank you for choosing Acronis Remote Server Backup Software.

    Coudl you please collect some information to let us investigate the problem thoroughly?

    Please download the Linux System Report utility available here and do the following to create the report:

    - Unpack the archive: # tar xvf sysinfo.tar

    - Make the script executable: # chmod +x sysinfo

    - Run the executable: # ./sysinfo

    Then submit a request for technical support. Attach all the collected files and information to your request along with the step-by-step description of the actions taken before the problem appears and the link to this thread. We will investigate the problem and try to provide you with a solution.

    Thank you.
    --
    Marat Setdikov
     
  4. dcaltrans

    dcaltrans Registered Member

    Joined:
    Apr 3, 2008
    Posts:
    1
    I've faced this problem myself. The issue is that a couple of the Linux kernel system calls that the TrueImage modules use have changed in the 2.6.24 kernel.

    You can solve the issue yourself by editing the snapapi26.c and snumbd26.c files that TrueImage tries to compile during the install. The following steps work with version 0.7.29 of the TrueImage modules. These steps may not work with different versions.

    The two Linux system calls that have changed are:

    bio_endio
    bio_io_error

    The Linux 2.6.24 kernel eliminated the size parameter to these calls.

    Basically, using a text editor, edit these files in the /var/lib/dkms/snapapi26/0.7.29/source directory:
    (Note: this directory (and these files) is created when the TrueImage installer attempts to build the Linux modules.)

    snapapi26.c
    snumbd26.c

    1) Search for bio_endio in both files and remove the size parameter from the function call.
    Example -

    Original:
    bio_endio(bio, bio->bi_size, -EIO);

    Change to: (eliminate the second parameter)
    bio_endio(bio, -EIO);


    2) Search for bio_io_error in both files (should only be in snapapi26.c) and remove the size parameter from the function call.
    Example -

    Original:
    bio_io_error(bio, bio->bi_size);

    Change to: (eliminate the second parameter)
    bio_io_error(bio)


    3) Modify the Makefile file in the same directory.
    Find the following:
    CFLAGS

    Change to:
    EXTRA_CFLAGS


    NOTE: The follow commands are derived from this HowTo thread; https://www.wilderssecurity.com/showthread.php?t=173463
    (The Linux kernel version and name, as well as, the location of your ".config" file used in the following command may vary, so modify as appropriate.)

    4) Build the TrueImage modules:
    Code:
    dkms build -m snapapi26 -v 0.7.29 -k 2.6.24 --config /boot/.config --arch i486 --kernelsourcedir /usr/src/linux-2.6.24/
    
    
    5) Install the TrueImage modules:

    Code:
    dkms install -m snapapi26 -v 0.7.29 -k 2.6.24 --config /boot/.config --arch i486 --kernelsourcedir /usr/src/linux-2.6.24/
    
    

    Anyway, this worked for me. I hope it works for you also! ...At least until Acronis updates the TrueImage installation scripts.
     
  5. wheels_up_wilbur

    wheels_up_wilbur Registered Member

    Joined:
    Apr 4, 2008
    Posts:
    1
    dcaltrans,

    Thank you very much for your posted solution. I've been trying to get snapapi26 working on my 2.6.24 debian machine, and your post did the job.

    Will
     
  6. dam

    dam Registered Member

    Joined:
    May 12, 2008
    Posts:
    1
    4 dcaltrans

    thank you very much for your help.

    I add 2 tips for installing Acronis True Image echo Server on Ubuntu Gutsy and kernel 2.6.24-11

    I downloaded the binary trial http://www.acronis.it/enterprise/download/ATISLin/ (TrueImageServerEcho_d_it.i686) and then followed step by step your suggestions but I had this error:
    Error! Bad return status for module build on kernel: 2.6.24 (i686)

    Unfortunatly I have lost the content of and I can't report it now /var/lib/dkms/snapapi26/0.7.29/build/make.log

    Anyway to solve the issue I had to:
    and then to build it.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.