Ubuntu Server 18.04, SnapAPI 2.6 Kernel Failed Install
A month ago I had updated a Ubuntu server 18.04 running with Acronis Backup 12.5 with the management software. Since then the default webserver port 9877 stops responding after a day until I restart the service.
I tried to uninstall / reinstall and keep getting error " Failed to build SnapAPI"
Have been reading multiple articles like (https://kb.acronis.com/node/60852) (https://forum.acronis.com/forum/acronis-backup-125/acronis-backup-12513…), with no advancement past the make stage. I'm thinking the snapapi module source may need to be updated for Linux kernel 4.15.0-213 x86-64?
Build Statement:
dkms build -m snapapi26 -v 0.7.123 --config /boot/config-4.15.0-213-generic --arch x86_64 --kernelsourcedir /usr/src/linux-headers-4.15.0-213-generic
Make Log Below:
DKMS make.log for snapapi26-0.7.123 for kernel 4.15.0-213-generic (x86_64)
Wed Sep 27 07:27:29 CDT 2023
make: Entering directory '/usr/src/linux-headers-4.15.0-213-generic'
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.123/build/snapapi26.o
CC [M] /var/lib/dkms/snapapi26/0.7.123/build/snumbd26.o
/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.c: In function ‘sn_bio_associate_blkg’:
/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.c:660:34: error: ‘struct bio’ has no member named ‘bi_blkg’; did you mean ‘bi_flags’?
if (!q || !q->root_blkg || bio->bi_blkg)
^~~~~~~
bi_flags
/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.c:662:6: error: implicit declaration of function ‘blkg_tryget’; did you mean ‘blkg_get’? [-Werror=implicit-functio
n-declaration]
if (blkg_tryget(q->root_blkg))
^~~~~~~~~~~
blkg_get
/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.c:663:8: error: ‘struct bio’ has no member named ‘bi_blkg’; did you mean ‘bi_flags’?
bio->bi_blkg = q->root_blkg;
^~~~~~~
bi_flags
At top level:
/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.c:656:13: warning: ‘sn_bio_associate_blkg’ defined but not used [-Wunused-function]
static void sn_bio_associate_blkg(struct bio *bio)
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:340: recipe for target '/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.o' failed
make[1]: *** [/var/lib/dkms/snapapi26/0.7.123/build/snapapi26.o] Error 1
make[1]: *** Waiting for unfinished jobs....
Makefile:1596: recipe for target '_module_/var/lib/dkms/snapapi26/0.7.123/build' failed
make: *** [_module_/var/lib/dkms/snapapi26/0.7.123/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.15.0-213-generic'

- Log in to post comments