Skip to main content

SnapApi Error installing AcronisBackup_12.5 agent on RHEL 8.5

Thread needs solution

Hello,

Trying to install the AcronisBackup_12.5 agent on a RHEL 8.5 virtual machine, I have an error when building snapapi26 -v 0.7.127;

How i get there :

- Generating a token on the Acronis Server;

- Downloading "AcronisBackup_12.5_64-bit.x86_64" on the client;

# AcronisBackup_12.5_64-bit.x86_64 -a -C AcronisServerHostname -i BackupAndRecoveryAgent --token XXXX-XXXX-XXXX

I have this message : 

Initializing...Done
Stopping Acronis services...Done
Installing Acronis Cyber Backup Packages
dkms-2.8.1.3-99
snapapi26_modules-0.7.127-1
BackupAndRecoveryAgent-12.5.16428-1
Please wait while checking whether GCC is installed...Done
Please wait while checking whether all the required packages are installed.Done
Please wait while checking whether all the required packages are installed.Done
Please wait while installing kernel module...Automatic installation of the kernel module has failed. Try to manually inst
Installing kernel modules via weak-modules
Please wait while installing kernel modules via weak-modulesDone
Upgrading
Upgrading
Starting Acronis services...Done
Registering on management server..Success
Installation of the Acronis Cyber Backup packages has finished.
The following problems occurred:
- failed to build the SnapAPI kernel module. Operations with disk-level backups will not be available.
- failed to load the SnapAPI kernel module.
See '/usr/lib/Acronis/BackupAndRecovery/HOWTO.INSTALL' for further instructions.

Then, when building snapapi :

# dkms build -m snapapi26 -v 0.7.127 \
--config /boot/config-4.18.0-348.12.2.el8_5.x86_64 --arch x86_64 \
--kernelsourcedir /lib/modules/4.18.0-348.12.2.el8_5.x86_64/source/

I have this message : 

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

Building module:
cleaning build area...
make -j4 KERNELRELEASE=4.18.0-348.12.2.el8_5.x86_64 -C /lib/modules/4.18.0-348.12.2.el8_5.x86_64/source/ M=/var/lib/dkms/
Error! Bad return status for module build on kernel: 4.18.0-348.12.2.el8_5.x86_64 (x86_64)
Consult /var/lib/dkms/snapapi26/0.7.127/build/make.log for more information.

The log file :

[root@client_vm ~]# cat /var/lib/dkms/snapapi26/0.7.127/build/make.log
DKMS make.log for snapapi26-0.7.127 for kernel 4.18.0-348.12.2.el8_5.x86_64 (x86_64)
Wed Jun 29 13:30:35 UTC 2022
make: Entering directory '/usr/src/kernels/4.18.0-348.12.2.el8_5.x86_64'
grep: ./arch/x86/include/asm/system.h: No such file or directory
grep: ./include/asm/system.h: No such file or directory
grep: ./include/asm-generic/system.h: No such file or directory
  CC [M]  /var/lib/dkms/snapapi26/0.7.127/build/snapapi26.o
  CC [M]  /var/lib/dkms/snapapi26/0.7.127/build/snumbd26.o
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:517:28: error: static declaration of ‘freeze_bdev’ follows non-static declaration
 static struct super_block *freeze_bdev(struct block_device *bdev)
                            ^~~~~~~~~~~
In file included from ./include/linux/blk-cgroup.h:23,
                 from /var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:19:
./include/linux/blkdev.h:2019:21: note: previous declaration of ‘freeze_bdev’ was here
 struct super_block *freeze_bdev(struct block_device *bdev);
                     ^~~~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c: In function ‘freeze_bdev’:
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:523:15: error: ‘const struct super_operations’ has no member named ‘write_super_lockfs’
   if (sb->s_op->write_super_lockfs)
               ^~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:524:12: error: ‘const struct super_operations’ has no member named ‘write_super_lockfs’
    sb->s_op->write_super_lockfs(sb);
            ^~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c: At top level:
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:530:13: error: conflicting types for ‘thaw_bdev’
 static void thaw_bdev(struct block_device *bdev, struct super_block *sb)
             ^~~~~~~~~
In file included from ./include/linux/blk-cgroup.h:23,
                 from /var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:19:
./include/linux/blkdev.h:2020:5: note: previous declaration of ‘thaw_bdev’ was here
 int thaw_bdev(struct block_device *bdev, struct super_block *sb);
     ^~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c: In function ‘thaw_bdev’:
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:533:15: error: ‘const struct super_operations’ has no member named ‘unlockfs’
   if (sb->s_op->unlockfs)
               ^~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:534:12: error: ‘const struct super_operations’ has no member named ‘unlockfs’
    sb->s_op->unlockfs(sb);
            ^~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c: In function ‘sn_blkdev_get’:
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:569:7: warning: "HAVE_BLKDEV_GET_3ARGS" is not defined, evaluates to 0 [-Wundef]
 #elif HAVE_BLKDEV_GET_3ARGS
       ^~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:572:9: error: too few arguments to function ‘blkdev_get’
  return blkdev_get(bdev, mode); /* ~2.6.28 to 2.6.37 kernels */
         ^~~~~~~~~~
In file included from ./include/linux/blk-cgroup.h:23,
                 from /var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:19:
./include/linux/blkdev.h:1984:5: note: declared here
 int blkdev_get(struct block_device *bdev, fmode_t mode, void *holder);
     ^~~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c: In function ‘sn_blkdev_put’:
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:581:9: error: too few arguments to function ‘blkdev_put’
  return blkdev_put(bdev);
         ^~~~~~~~~~
In file included from ./include/linux/blk-cgroup.h:23,
                 from /var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:19:
./include/linux/blkdev.h:1992:6: note: declared here
 void blkdev_put(struct block_device *bdev, fmode_t mode);
      ^~~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:581:9: warning: ‘return’ with a value, in function returning void
  return blkdev_put(bdev);
         ^~~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:576:33: note: declared here
 static MAKE_BLKDEV_RETURN_VALUE sn_blkdev_put(struct block_device *bdev, fmode_t mode)
                                 ^~~~~~~~~~~~~
/var/lib/dkms/snapapi26/0.7.127/build/snumbd26.c: In function ‘snumbd_open_blk’:
/var/lib/dkms/snapapi26/0.7.127/build/snumbd26.c:471:3: error: implicit declaration of function ‘bd_set_size’; did you mean ‘block_size’? [-Werror=implicit-function-declaration]
   bd_set_size(bdev, new_size);
   ^~~~~~~~~~~
   block_size
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c: In function ‘sn_blkdev_get’:
/var/lib/dkms/snapapi26/0.7.127/build/snapapi26.c:574:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
make[1]: *** [scripts/Makefile.build:322: /var/lib/dkms/snapapi26/0.7.127/build/snapapi26.o] Error 1
make[1]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:322: /var/lib/dkms/snapapi26/0.7.127/build/snumbd26.o] Error 1
make: *** [Makefile:1571: _module_/var/lib/dkms/snapapi26/0.7.127/build] Error 2
make: Leaving directory '/usr/src/kernels/4.18.0-348.12.2.el8_5.x86_64'

Informations about my client :

[root@client_vm ~]# cat /proc/version
Linux version 4.18.0-348.12.2.el8_5.x86_64 (mockbuild@x86-vm-09.build.eng.bos.redhat.com) (gcc version 8.5.0 20210514 (Re
[root@client_vm ~]# make -v
GNU Make 4.2.1
Built for x86_64-redhat-linux-gnu
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[root@client_vm ~]# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/8/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/usr --mandir=/usr/share/m-enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexid-id --with-gcc-major-version-only --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl --disau-indirect-function --enable-cet --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
gcc version 8.5.0 20210514 (Red Hat 8.5.0-4) (GCC)

Can't figure out what the problem is; is it the snapapi25 v0.7.127 which is not compatible with 4.18.0-348.12.2.el8_5.x86_64 kernel ? If it is, where can I get the correct snapapi version please ?

If someone could help me i'll be very grateful, thank you !

0 Users found this helpful