Trouble installing SNAPAPI Debian (Kernel Source)

Discussion in 'Acronis True Image Product Line' started by sskshea, Aug 31, 2005.

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

    sskshea Registered Member

    Joined:
    Aug 31, 2005
    Posts:
    2
    Hey,

    I am having trouble installing Acronis True Image 8.0 server for Linux.

    I am trying to install it on a corporate Web/FTP server without interrupting the operation of the server.

    It is running Debian with kernel version: 2.4.25-1-386

    When I go to install it, I get a message that tells me that SNAPAPI is not installed, and when I proceed to install it, it is unable to find the kernel source:

    Can’t find kernel source directory:
    /lib/modules/2.4.25-1-386/build

    When I go to install the modules manually, I get a similar error:
    ==========================================================

    sniwww:/acronis/trueimagelinuxserver8.0-946.r.e# dkms build -m snapapi -v 0.6.4 -k 2.4.25.-1 --config /boot/config-2.4.25-1-386 --arch i686 --kernelsourcedir /usr/src/kernel-sources-2.4.25

    Error! Your kernel source for kernel 2.4.25.-1 cannot be found at
    /lib/modules/2.4.25.-1/build or /lib/modules/2.4.25.-1/source.
    You can use the --kernelsourcedir option to tell DKMS where it's located.

    ========================================================

    How can I locate my kernel source? Is it not there? Do I need to download it and compile it?

    I am not a Linux expert, so I am little lost on what to do here.

    I would really appreciate the help!

    Thanks so much,
    sean
     
  2. Acronis Support

    Acronis Support Acronis Support Staff

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

    Thank you for choosing Acronis Linux Server Disk Backup Software.

    Please send a letter containing the step-by-step description of the actions taken before the problem appears and a subject indicating that you want to contact Marian Fadeeva to support@acronis.com along with the link to this thread. Marian will provide you with the further instructions on how to install Acronis True Image Server 8.0 for Linux.

    Thank you.
    --
    Alexey Popov
     
  3. sskshea

    sskshea Registered Member

    Joined:
    Aug 31, 2005
    Posts:
    2
    I sent the email.

    I really hope someone can help me with this issue.
     
  4. evilc

    evilc Registered Member

    Joined:
    Oct 4, 2005
    Posts:
    2
    having support post on this thread would have been more beneficial to your users as I would not now have to ask for support for the exact same problem...

    This all stems from there being an ommision in HOWTO.INSTALL

    At line 76 there should be a section
    <PATH_TO_KERNEL_SOURCES>
    explaining how to find out what you need to plug into this variable in the dkms command.
    There is an entry for <MODULE_NAME>, <MODULE_VERSION> etc but none for <PATH_TO_KERNEL_SOURCES>

    I am running Redhat Enterprise Linux ES version 3

    Also in HOWTO.INSTALL, your definition of <MODULE_VERSION> is unclear:
    Code:
    <MODULE_VERSION> could be detected by
    # ls /usr/src/snapapi-*
    for 2.4.x kernels or by 
    # ls /usr/src/snapapi26-*
    for 2.6.x kernels.
    
    This is very ambiguous.
    A line should be added at the end saying something like
    Code:
    EG: If the above command returns "snapapi26-0.6.7" you should use a <MODULE_VERSION> of 0.6.7
    
     
    Last edited: Oct 4, 2005
  5. evilc

    evilc Registered Member

    Joined:
    Oct 4, 2005
    Posts:
    2
    bump
    still no answer
     
  6. Acronis Support

    Acronis Support Acronis Support Staff

    Joined:
    Apr 28, 2004
    Posts:
    25,885
    Hello All!

    To resolve this problem you should to install your kernel sources.
    You may find the appropriate package on your Linux distribution CD. Debian users may use 'apt-get' to download and unpack kernel sources.
    Usually the sources are installed to /lib/modules/kernel_name/sources directory or to /usr/src/kernel_name
    Please note your kernel sources should 100% corresponds to your running kernel.

    The package with kernel sources could be named "kernel-source-<kernel_version>..." or "kernel-devel-<kernel_version>..." or like. This depends on the distribution you`re using.

    Thank you.

    --

    Marian Fadeeva
     
  7. esolson

    esolson Registered Member

    Joined:
    Aug 2, 2005
    Posts:
    2
    Gentoo users may find that the following command helps compile the module.

    dkms build -m snapapi26 -v 0.6.7 -k 2.6.13-hardened --config /usr/src/linux/.config --arch i686 --kernelsourcedir /usr/src/linux

    You can modprobe snapapi26 to see if it loads (if it does, follow the step below to have it load @ boot, or just load it on demand when you need it).

    You also may have to add snapapi26 to /etc/modules.autoload.d/kernel-2.6.

    I've found the Customer Support is sub-par dealing with any OS other than RedHat. It would be really nice to see them bump up support for some of the other less known OS' ...as 99% of our linux servers are all running Gentoo!

    If any other use has an issue with Gentoo, they can e-mail me, as I've used Gentoo since they started. My e-mail address is: eolson@directmedia.com
     
  8. Kev__

    Kev__ Guest

    Add a

    modules-update

    after eolson's dkms instructions and you should be live.
     
  9. xschema

    xschema Registered Member

    Joined:
    Sep 2, 2005
    Posts:
    11
    Hi. I have the same problem with Debian and kernel 2.6.15
    (everything was perfect until 2.6.14-7...)

    My dkms command is:
    dkms build -m snapapi26 -v 0.6.7 -d Debian --no-clean-kernel --config /usr/src/linux/.config --arch i686 --kernelsourcedir /usr/src/linux

    ("--no-clean-kernel" because mrproper deletes some kernel build files.. ;))

    ... but got some compilation errors (exit status 2) and build/make.log contains the following messages:
    Code:
    make: Entering directory `/usr/src/linux-source-2.6.15'
      CC [M]  /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.o
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c: In function `session_devinfo':
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1399: error: structure has no member named `reads'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1400: error: structure has no member named `read_sectors'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1401: error: structure has no member named `writes'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1402: error: structure has no member named `write_sectors'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1405: error: structure has no member named `reads'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1405: warning: type defaults to `int' in declaration of `res'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1405: error: structure has no member named `reads'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1406: error: structure has no member named `read_sectors'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1406: warning: type defaults to `int' in declaration of `res'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1406: error: structure has no member named `read_sectors'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1407: error: structure has no member named `writes'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1407: warning: type defaults to `int' in declaration of `res'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1407: error: structure has no member named `writes'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1408: error: structure has no member named `write_sectors'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1408: warning: type defaults to `int' in declaration of `res'
    /var/lib/dkms/snapapi26/0.6.7/build/snapapi26.c:1408: error: structure has no member named `write_sectors'
    make[1]: *** [/var/lib/dkms/snapapi26/0.6.7/build/snapapi26.o] Error 1
    make: *** [_module_/var/lib/dkms/snapapi26/0.6.7/build] Error 2
    make: Leaving directory `/usr/src/linux-source-2.6.15'
    

    Any idea ?
    Thank you very much.
     
  10. Acronis Support

    Acronis Support Acronis Support Staff

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

    Thank you for choosing Acronis Linux Server Disk Backup Software.

    First please make sure that you`re installing the latest build (#989) of Acronis True Image Server for Linux.
    It seems that you specified incorrect kernel sources for snapapi build.
    Make sure that your kernel 100% corresponds to your running kernel. You may compare the .config file located in kernel source directory and the config file located in /boot/config-<kernel_version> .
    Then please completely uninstall your existing version of Acronis True Image Server for Linux:
    # ./trueimage-setup -u
    # rm -rf /usr/src/snapapi*
    Try to reinstall the software:
    # trueimage-setup
    If the installer fails to compile modules automatically, try to build them manually once again. After the modules are installed run the below command:
    # modprobe snapapi26
    If the module can not be loaded or 'modprobe' tells that the module does not exist, please check whether snapapi26.ko and snumbd26.ko are present in /lib/modules/<kernel_version>/kernel/drivers/block/ If the files are here try to 'insmod' the module directly:
    # insmod /lib/modules/<kernel_version>/kernel/drivers/block/snapapi26.ko
    What is seen on the screen? Please save your 'dmesg' output:
    # dmesg > dmesg.txt
    Then please 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 the solution.

    Thank you.
    --
    Marian Fadeeva
     
Thread Status:
Not open for further replies.