[SOLVED] dkms: autoinstall for kernel: 6.8.4-3-pve failed!

darnokg

Member
May 13, 2022
3
0
6
Good morning,

Did an update late Friday before leaving for home. This morning I see the server isn't available - first thought "there goes the kernel!"

Here's the error I get during the upgrade:

Code:
Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.4-3-pve -C /lib/modules/6.8.4-3-pve/build M=/var/lib/dkms/scap/0.14.1/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.4-3-pve (x86_64)
Consult /var/lib/dkms/scap/0.14.1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.8.4-3-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.8.4-3-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.4-3-pve-signed (--configure):
 installed proxmox-kernel-6.8.4-3-pve-signed package post-installation script subprocess returned error exit status 2
Setting up proxmox-kernel-6.8.4-2-pve-signed (6.8.4-2) ...
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 6.8.4-2-pve /boot/vmlinuz-6.8.4-2-pve
dkms: running auto installation service for kernel 6.8.4-2-pve.
Sign command: /lib/modules/6.8.4-2-pve/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub


Building module:
Cleaning build area...
make -j32 KERNELRELEASE=6.8.4-2-pve -C /lib/modules/6.8.4-2-pve/build M=/var/lib/dkms/scap/0.14.1/build...(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.8.4-2-pve (x86_64)
Consult /var/lib/dkms/scap/0.14.1/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.8.4-2-pve failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/proxmox-kernel-6.8.4-2-pve-signed.postinst line 20.
dpkg: error processing package proxmox-kernel-6.8.4-2-pve-signed (--configure):
 installed proxmox-kernel-6.8.4-2-pve-signed package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of proxmox-kernel-6.8:
 proxmox-kernel-6.8 depends on proxmox-kernel-6.8.4-3-pve-signed | proxmox-kernel-6.8.4-3-pve; however:
  Package proxmox-kernel-6.8.4-3-pve-signed is not configured yet.
  Package proxmox-kernel-6.8.4-3-pve is not installed.
  Package proxmox-kernel-6.8.4-3-pve-signed which provides proxmox-kernel-6.8.4-3-pve is not configured yet.


dpkg: error processing package proxmox-kernel-6.8 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-default-kernel:
 proxmox-default-kernel depends on proxmox-kernel-6.8; however:
  Package proxmox-kernel-6.8 is not configured yet.


dpkg: error processing package proxmox-default-kernel (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of proxmox-ve:
 proxmox-ve depends on proxmox-default-kernel; however:
  Package proxmox-default-kernel is not configured yet.


dpkg: error processing package proxmox-ve (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 proxmox-kernel-6.8.4-3-pve-signed
 proxmox-kernel-6.8.4-2-pve-signed
 proxmox-kernel-6.8
 proxmox-default-kernel
 proxmox-ve
E: Sub-process /usr/bin/dpkg returned an error code (1)

And here is the make.log content:
Code:
DKMS make.log for scap-0.14.1 for kernel 6.8.4-2-pve (x86_64)
Mon May  6 09:23:02 EDT 2024
make: Entering directory '/usr/src/linux-headers-6.8.4-2-pve'
  CC [M]  /var/lib/dkms/scap/0.14.1/build/main.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/dynamic_params_table.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/fillers_table.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/flags_table.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/ppm_events.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/ppm_fillers.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/event_table.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/syscall_table64.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/ppm_cputime.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/ppm_tp.o
  CC [M]  /var/lib/dkms/scap/0.14.1/build/syscall_ia32_64_map.o
/var/lib/dkms/scap/0.14.1/build/ppm_cputime.c:353:10: warning: no previous prototype for ‘nsec_to_clock_t’ [-Wmissing-prototypes]
  353 | uint64_t nsec_to_clock_t(uint64_t x)
      |          ^~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_events.c: In function ‘val_to_ring’:
/var/lib/dkms/scap/0.14.1/build/ppm_events.c:652:36: error: implicit declaration of function ‘strlcpy’; did you mean ‘strscpy’? [-Werror=implicit-function-declaration]
  652 |                         len = (int)strlcpy(args->buffer + args->arg_data_offset,
      |                                    ^~~~~~~
      |                                    strscpy
/var/lib/dkms/scap/0.14.1/build/main.c:2838:5: warning: no previous prototype for ‘scap_init’ [-Wmissing-prototypes]
 2838 | int scap_init(void)
      |     ^~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/main.c:3001:6: warning: no previous prototype for ‘scap_exit’ [-Wmissing-prototypes]
 3001 | void scap_exit(void)
      |      ^~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_fillers.c:509:14: warning: no previous prototype for ‘ppm_get_mm_exe_file’ [-Wmissing-prototypes]
  509 | struct file *ppm_get_mm_exe_file(struct mm_struct *mm)
      |              ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_fillers.c:550:15: warning: no previous prototype for ‘ppm_get_mm_counter’ [-Wmissing-prototypes]
  550 | unsigned long ppm_get_mm_counter(struct mm_struct *mm, int member)
      |               ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_fillers.c:728:5: warning: no previous prototype for ‘accumulate_argv_or_env’ [-Wmissing-prototypes]
  728 | int accumulate_argv_or_env(const char __user * __user *argv,
      |     ^~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_fillers.c:874:6: warning: no previous prototype for ‘ppm_is_upper_layer’ [-Wmissing-prototypes]
  874 | bool ppm_is_upper_layer(struct file *exe_file){
      |      ^~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_fillers.c:2261:5: warning: no previous prototype for ‘f_sys_send_e_common’ [-Wmissing-prototypes]
 2261 | int f_sys_send_e_common(struct event_filler_arguments *args, int *fd)
      |     ^~~~~~~~~~~~~~~~~~~
/var/lib/dkms/scap/0.14.1/build/ppm_fillers.c:2397:5: warning: no previous prototype for ‘f_sys_recv_x_common’ [-Wmissing-prototypes]
 2397 | int f_sys_recv_x_common(struct event_filler_arguments *args, int64_t *retval)
      |     ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:243: /var/lib/dkms/scap/0.14.1/build/ppm_events.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/usr/src/linux-headers-6.8.4-2-pve/Makefile:1926: /var/lib/dkms/scap/0.14.1/build] Error 2
make: *** [Makefile:240: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-6.8.4-2-pve'

Any help would be greatly appreciated. I'm a little out of my depth here ;)
 
Last edited:
Looks like your previously manually installed a driver (not provided by Proxmox) named "scap" and it's not compatible with the new kernel. Where did you get it, and maybe they can provide you with a newer version?
This is not Proxmox or "scap" (whatever that is) specific and happens a lot with drivers that are not (yet) included in mainline Linux. There are similar threads about NVidia, RealTek, i915 and vendor-reset drivers.
 
  • Like
Reactions: Townsmcp
Yeah, no idea what SCAP was for. I removed it and was able to finally reboot with the new kernel update.
 
Just want to add, I updated Proxmox today, which also included new kernel (6.8.4-3-pve). On reboot the system wouldnt come up at all. Managed to reboot into an older kernel, found this thread and https://forum.proxmox.com/threads/p...does-not-boot-cannot-find-root-device.145764/ both mentioning non Proxmox driver install could be the problem. For my system, the only non PVE drivers that I have installed are for Nvidia card and PCIe Coral.
To fix the issue, while on the older kernel I installed updated Coral drivers (following instructions at https://docs.scrypted.app/installation.html#coral-m-2-pci-drivers), rebooted into 6.8.4-3 and all now working fine :) Thanks @leesteken for pointing us in the right direction for a resolution
 
I'm having a similar problem due to a bad driver install. Could you share how to create the make.log file to see the specific file that is causing the issue? I've tried searching, but no luck.
Thanks!