Linux agent for True Image: snapapi DKMS/linux source problem

Discussion in 'Acronis True Image Product Line' started by redlex, May 14, 2007.

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

    redlex Registered Member

    Joined:
    May 14, 2007
    Posts:
    8
    I'm trying to install the Linux agent for TrueImage. During install (running as root), I get the message:

    -----8<-----
    Acronis True Image Enterprise Server Setup failed to build
    ernel modules. Consult /var/log/trueimage-setup.log and
    /var/lib/dkms/snapapi26/0.7.10/build/make.log for error
    messages.
    -----8<-----

    The file /var/log/trueimage-setup.log contains the following:

    -----8<-----
    Detected mdk10: 0x0000

    Detected mdk10: 0x0000

    Detected mdk: 0x0000

    Detected mdk: 0x0000

    Detected deb: 0x0000

    Detected deb: 0x0000

    Detected suse91: 0x0000

    Detected suse92: 0x0000

    Detected suse93: 0x0000

    Detected fc4: 0x0000

    Detected fc5: 0x0000

    Detected virtuozzo: 0x0000

    Detected virtuozzo: 0x0000

    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/dkms-2.0.4-2.noarch.rpm':
    finished
    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/snapapi26_modules-0.7.10-1.noarch.rpm':
    finished
    Running 'rpm -e trueimage':
    error: package trueimage is not installed
    finished
    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/TrueImageAgent-9.1.3854-1.i386.rpm':
    finished
    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.pADsLm/TrueImageSecZone-9.1.3854-1.i386.rpm':
    finished
    Launching '/usr/sbin/dkms install -m snapapi26 -v 0.7.10 2>&1'.

    Error! DKMS tree does not contain: snapapi26-0.7.10
    Build cannot continue without the proper tree.

    Launching '/usr/sbin/dkms ldtarball --force --archive /usr/lib/Acronis/kernel_modules/snapapi26-0.7.10-all.tar.gz 2>&1'.

    Warning! This tarball was created with dkms < 2.0 and contains
    no arch info. DKMS will assume the arch: i686

    Loading tarball for module: snapapi26 / version: 0.7.10

    Loading /usr/src/snapapi26-0.7.10...
    Creating /var/lib/dkms/snapapi26/0.7.10/source symlink...

    DKMS: ldtarball Completed.

    Launching '/usr/sbin/dkms install -m snapapi26 -v 0.7.10 2>&1'.

    Error! Could not locate snapapi26.ko for module snapapi26 in the DKMS tree.
    You must run a dkms build for kernel 2.6.17-1.2187_FC5 (i686) first.


    Error! Your kernel source for kernel 2.6.17-1.2187_FC5 cannot be found at
    /lib/modules/2.6.17-1.2187_FC5/build or /lib/modules/2.6.17-1.2187_FC5/source.
    You can use the --kernelsourcedir option to tell DKMS where it's located.
    exited with status 1.
    Acronis True Image Enterprise Server Setup failed to build kernel modules. Consult /var/log/trueimage-setup.log and /var/lib/dkms/snapapi26/0.7.10/build/make.log for error messages.
    Detected mdk10: 0x0000

    Detected mdk10: 0x0000

    Detected mdk: 0x0000

    Detected mdk: 0x0000

    Detected deb: 0x0000

    Detected deb: 0x0000

    Detected suse91: 0x0000

    Detected suse92: 0x0000

    Detected suse93: 0x0000

    Detected fc4: 0x0000

    Detected fc5: 0x0000

    Detected virtuozzo: 0x0000

    Detected virtuozzo: 0x0000

    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/dkms-2.0.4-2.noarch.rpm':
    finished
    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/snapapi26_modules-0.7.10-1.noarch.rpm':
    finished
    Running 'rpm -e trueimage':
    error: package trueimage is not installed
    finished
    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/TrueImageAgent-9.1.3854-1.i386.rpm':
    finished
    Running 'rpm -U --percent --force --nodeps /tmp/RPMS.dhbeUS/TrueImageSecZone-9.1.3854-1.i386.rpm':
    finished
    Launching '/usr/sbin/dkms install -m snapapi26 -v 0.7.10 2>&1'.

    Error! Could not locate snapapi26.ko for module snapapi26 in the DKMS tree.
    You must run a dkms build for kernel 2.6.17-1.2187_FC5 (i686) first.


    Error! Your kernel source for kernel 2.6.17-1.2187_FC5 cannot be found at
    /lib/modules/2.6.17-1.2187_FC5/build or /lib/modules/2.6.17-1.2187_FC5/source.
    You can use the --kernelsourcedir option to tell DKMS where it's located.
    exited with status 1.
    Acronis True Image Enterprise Server Setup failed to build kernel modules. Consult /var/log/trueimage-setup.log and /var/lib/dkms/snapapi26/0.7.10/build/make.log for error messages.
    -----8<-----

    I've tried updating the kernel and installing the kernel-devel package (by running "yum update kernel kernel-devel" then rebooting), as this seemed like it might help, but no dice, I still get the same error.
    So I take it I need the full kernel source installed? Or do I need to get snapapi26.ko located in the DKMS tree (however that is done)? Or both?

    I've seen posts about almost identical problems here on the board, but the information didn't help me resolve this...

    thanks for reading!
    lex
     
  2. redlex

    redlex Registered Member

    Joined:
    May 14, 2007
    Posts:
    8
    Ok, I've downloaded the kernel source and put it in the correct place.
    I get further this time, but compiling snapapi fails:

    -----8<-----
    DKMS make.log for snapapi26-0.7.10 for kernel 2.6.20-1.2316.fc5 (i686)
    Mon May 14 16:21:06 BST 2007
    make: Entering directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'

    WARNING: Symbol version dump /usr/src/kernels/2.6.20-1.2316.fc5-i686/Module.symvers
    is missing; modules will have no dependencies and modversions.

    find: /linux: No such file or directory
    CC [M] /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:205: warning: âkmem_cache_tâ is deprecated
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âcleanup_snapshotâ:
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:614: error: void value not ignored as it ought to be
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âsa_cache_emlist_initâ:
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: âSLAB_KERNELâ undeclared (first use in this funct
    ion)
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: (Each undeclared identifier is reported only once
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: for each function it appears in.)
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âsa_cache_emgetâ:
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:815: error: âSLAB_ATOMICâ undeclared (first use in this funct
    ion)
    make[1]: *** [/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o] Error 1
    make: *** [_module_/var/lib/dkms/snapapi26/0.7.10/build] Error 2
    make: Leaving directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'
    -----8<-----


    Any ideas anyone? SLAB_ATOMIC obviously causing problems, but can't get much further than that....
     
  3. AaronAnderson

    AaronAnderson Registered Member

    Joined:
    Jul 28, 2006
    Posts:
    65
  4. redlex

    redlex Registered Member

    Joined:
    May 14, 2007
    Posts:
    8
    Hi Aaron
    Sorry, I forgot to say: Fedora Core 5.
    And yes, you have hit the nail on the head: installing snapapi (with the DKMS stuff) is the problem, I think.
     
  5. redlex

    redlex Registered Member

    Joined:
    May 14, 2007
    Posts:
    8
    Here's another little query about compiling snapapi...

    I am using FC5 and according to http://docs.fedoraproject.org/release-notes/fc5/:

    ----8<----
    8.7. Preparing for Kernel Development

    Fedora Core does not include the kernel-source package provided by older versions since only the kernel-devel package is required now to build external modules. Configured sources are available, as described in this kernel flavors section.
    ----8<----

    Am I right in thinking that the kernel-devel package will be enough to compile snapapi, and that I don't need the full kernel source for FC5?
     
  6. redlex

    redlex Registered Member

    Joined:
    May 14, 2007
    Posts:
    8
    Hi all
    Think I've almost got it, what I'm doing is similar to what everyone else is doing now - I've installed Acronis package on FC5 /without/ installing snapapi, then am attempting to compile snapapi using dkms using the following command:

    dkms build -m snapapi26 -v 0.7.10 --config /boot/config-2.6.20-1.2316.fc5 --arch i686 --kernelsourcedir /usr/src/kernels/2.6.20-1.2316.fc5-i686

    (Above command has been customized for my exact system, I've not just copied this blindly from elsewhere!)

    The output I get is:


    Preparing kernel 2.6.20-1.2316.fc5 for module build:
    (This is not compiling a kernel, only just preparing kernel symbols)
    Storing current .config to be restored when complete
    Running Generic preparation routine
    make mrproper....(bad exit status: 2)
    using /boot/config-2.6.20-1.2316.fc5
    make oldconfig....
    make prepare-all....

    Building module:
    cleaning build area....
    make KERNELRELEASE=2.6.20-1.2316.fc5 -C /usr/src/kernels/2.6.20-1.2316.fc5-i686 SUBDIRS=/var/lib/dkms/snapapi26/0.7.10/build modules....(bad exit status: 2)

    Error! Bad return status for module build on kernel: 2.6.20-1.2316.fc5 (i686)
    Consult the make.log in the build directory
    /var/lib/dkms/snapapi26/0.7.10/build/ for more information.


    ... and the above-mentioned make.log file contains:

    DKMS make.log for snapapi26-0.7.10 for kernel 2.6.20-1.2316.fc5 (i686)
    Tue May 15 13:32:11 BST 2007
    make: Entering directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'
    find: /linux: No such file or directory
    CC [M] /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:205: warning: âkmem_cache_tâ is deprecated
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âcleanup_snapshotâ:
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:614: error: void value not ignored as it ought to be
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âsa_cache_emlist_initâ:
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: âSLAB_KERNELâ undeclared (first use in this functi
    on)
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: (Each undeclared identifier is reported only once
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:781: error: for each function it appears in.)
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c: In function âsa_cache_emgetâ:
    /var/lib/dkms/snapapi26/0.7.10/build/snapapi26.c:815: error: âSLAB_ATOMICâ undeclared (first use in this functi
    on)
    make[1]: *** [/var/lib/dkms/snapapi26/0.7.10/build/snapapi26.o] Error 1
    make: *** [_module_/var/lib/dkms/snapapi26/0.7.10/build] Error 2
    make: Leaving directory `/usr/src/kernels/2.6.20-1.2316.fc5-i686'


    Before doing all this, I updated the kernel to latest and installed kernel-dev package and rebooted, so I have a current kernel (and kernel dev headers).
    Any ideas anyone?
     
  7. redlex

    redlex Registered Member

    Joined:
    May 14, 2007
    Posts:
    8
    Resolved. Support got in touch and pointed me at a newer rpm for snapapi whichsorted things out (as described by others here). Thanks!
     
  8. RobMac

    RobMac Registered Member

    Joined:
    Jun 6, 2007
    Posts:
    2
    hi redlex,

    I am getting the exact same errors running dkms. Where is the updated snapapi rpm that fixed it for you? Is there a public link?

    thanks,

    Rob
     
  9. Acronis Support

    Acronis Support Acronis Support Staff

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

    Thank you for choosing Acronis Disk Backup Software.

    Please follow the link AaronAnderson provided for instructions on how to obtain the updated snapapi rpm.

    Thank you.
    --
    Marat Setdikov
     
  10. Hanzo

    Hanzo Registered Member

    Joined:
    Jun 11, 2007
    Posts:
    5
    I think you should install basic compile environment firstly.
    If you use ubuntu 6.06,you can run this command:
    Code:
    sudo apt-get install build-essential
    :rolleyes:
     
  11. 99problems

    99problems Registered Member

    Joined:
    Jun 2, 2006
    Posts:
    7
    I am useing Fedora Core 6 and receiving the exact same errors as Redlex above.

    Can someone explain how to install the latest snapapi rpm. I have received snapapi26_modules-0.7.19-2.noarch.rpm from support and I installed it:

    rpm -Uvh snapapi26_modules-0.7.19-2.noarch.rpm
    Preparing... ########################################### [100%]
    1:snapapi26_modules ########################################### [100%]

    Uninstall of Acronis SnapAPI Linux kernel 2.6 modules (version 0.7.10):
    ERROR: Module snapapi26 does not exist in /proc/modules
    ERROR: Module snumbd26 does not exist in /proc/modules

    ------------------------------
    Deleting module version: 0.7.10
    completely from the DKMS tree.
    ------------------------------
    Done.

    Now there is nothing but 1 file in /var/lib/dkms
    dkms_dbversion

    The snapapi26-0.7.10 directory is still in /usr/src

    There is no snapapi26-0.7.19 anywhere

    The only reference I see to .19 is /usr/lib/Acronis/kernel_modules/snapapi26-0.7.19-all.tar.gz

    The tar file has main tree which is emtpy and source tree. I copied the files of the source tree to /usr/src/snapapi26-0.7.19 to mirror the .10 tree.

    When I run the build command I receieve:
    Error! DKMS tree does not contain: snapapi26-0.7.19
    Build cannot continue without the proper tree.

    Any help would be appreciated, thanks!!
     
  12. Acronis Support

    Acronis Support Acronis Support Staff

    Joined:
    Apr 28, 2004
    Posts:
    25,885
    Hello 99problems,

    Thank you for choosing Acronis Linux Server Disk Backup Software.

    Please note that after installing the downloaded package (snapapi26_modules-0.7.17-1.noarch.rpm) you should load the module tarball to DKMS:

    #dkms ldtarball --archive=/usr/lib/Acronis/kernel_modules/snapapi26-0.7.17-all.tar.gz

    Then build and install the new module:

    #dkms build -m snapapi26 -v 0.7.17 \
    -k <KERNEL_VERSRION> --config <CONFIG_FILE> --arch <KERNEL_ARCH> \
    --kernelsourcedir <PATH_TO_KERNEL_SOURCES>
    #dkms install -m snapapi26 -v 0.7.17 \
    -k <KERNEL_VERSRION> --config <CONFIG_FILE> --arch <KERNEL_ARCH> \
    --kernelsourcedir <PATH_TO_KERNEL_SOURCES>

    Please make sure you provide the full path to the config file and to the kernel sources.

    Thank you.
    --
    Aleksandr Isakov
     
  13. 99problems

    99problems Registered Member

    Joined:
    Jun 2, 2006
    Posts:
    7
    thank you!! this was the part i was missing.
     
  14. ibell

    ibell Registered Member

    Joined:
    Jun 17, 2007
    Posts:
    2
    Hi I was able to install the snapapi_module v 0.7.19

    However I'm not able to run True Image, if i issue a command:

    trueimagecmd --list

    I get an error message, that a required module is missing please reinstall the program. Any ideas? I'm using Fedora Core 6 kernel version is: 2.6.20-1.2948.fc6

    Thanks,
    Seth
     
  15. ibell

    ibell Registered Member

    Joined:
    Jun 17, 2007
    Posts:
    2
    Also modprobe wont load it:

    modprobe snapapi26
    FATAL: Error inserting snapapi26 (/lib/modules/2.6.20-1.2948.fc6/kernel/drivers/block/snapapi26.ko): Invalid module format
     
Thread Status:
Not open for further replies.