[solved] Migration fails. Issue with the kernel?

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 11.3.0.2
How are you able to access your server: SSH

Describe your issue

Hi!

Upgrade to Debian 12 fails.
After the failed migration the users are not in the sudoers group anymore, but I can still ssh as root.
After a reboot Linux won’t start and I have to restore a snapshot.

The complete log.

any idea?

Thanks for reading!

Share relevant logs or error messages

Warning: E: Sub-process /usr/bin/dpkg returned an error code (1)
Warning: /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Warning: Error! The /var/lib/dkms/wireguard/1.0.20210219/6.1.0-28-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
Warning: This indicates that it should not be built.
Warning: Error! One or more modules failed to install during autoinstall.
Warning: Refer to previous errors for more information.
Warning: run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
Warning: Failed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-6.1.0-28-amd64.postinst line 11.
Warning: dpkg: error processing package linux-headers-6.1.0-28-amd64 (–configure):
Warning: installed linux-headers-6.1.0-28-amd64 package post-installation script subprocess returned error exit status 1
Warning: /usr/sbin/dkms: line 2497: echo: write error: Broken pipe
Warning: Error! The /var/lib/dkms/wireguard/1.0.20210219/6.1.0-28-amd64/x86_64/dkms.conf for module wireguard includes a BUILD_EXCLUSIVE directive which does not match this kernel/arch/config.
Warning: This indicates that it should not be built.
Warning: Error! One or more modules failed to install during autoinstall.
Warning: Refer to previous errors for more information.
Warning: run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
Warning: dpkg: error processing package linux-image-6.1.0-28-amd64 (–configure):
Warning: installed linux-image-6.1.0-28-amd64 package post-installation script subprocess returned error exit status 1
Warning: dpkg: dependency problems prevent configuration of linux-headers-amd64:
Warning: linux-headers-amd64 depends on linux-headers-6.1.0-28-amd64 (= 6.1.119-1); however:
Warning: Package linux-headers-6.1.0-28-amd64 is not configured yet.
Warning:
Warning: dpkg: error processing package linux-headers-amd64 (–configure):
Warning: dependency problems - leaving unconfigured
Warning: dpkg: dependency problems prevent configuration of linux-image-amd64:
Warning: linux-image-amd64 depends on linux-image-6.1.0-28-amd64 (= 6.1.119-1); however:
Warning: Package linux-image-6.1.0-28-amd64 is not configured yet.
Warning:
Warning: dpkg: error processing package linux-image-amd64 (–configure):
Warning: dependency problems - leaving unconfigured
Warning: Errors were encountered while processing:
Warning: linux-headers-6.1.0-28-amd64
Warning: linux-image-6.1.0-28-amd64
Warning: linux-headers-amd64
Warning: linux-image-amd64
Error: Migration 0027_migrate_to_bookworm did not complete, aborting. Error: Failed to run command ‘aptitude full-upgrade --show-why -o Dpkg::Options::=’–force-confold’’
Info: The operation ‘Run migrations’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20241209-233435-tools_migrations_migrate_forward’ to get help

I had to remove wireguard-dkms.
Migration worked after that.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.