Containers will not start after upgrade to Incus 6.0.2 (Debian 12)

After upgrade to Incus 6.0.2 in Debian 12, I can’t start any of my containers.
I get different errors.

On container get this error:

root@debian:~# incus start ssh
Error: Failed to run: /usr/libexec/incus/incusd forkstart ssh /var/lib/incus/containers /run/incus/ssh/lxc.conf: exit status 1
Try `incus info --show-log ssh` for more info
root@debian:~# incus info --show-log ssh
Name: ssh
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2023/07/14 14:43 CEST
Last Used: 2024/10/13 19:57 CEST

Log:

lxc ssh 20241013175738.577 ERROR    cgfsng - ../src/lxc/cgroups/cgfsng.c:cgfsng_mount:2139 - Filen eller katalogen finns inte - Failed to create cgroup at_mnt 23()
lxc ssh 20241013175738.577 ERROR    conf - ../src/lxc/conf.c:lxc_mount_auto_mounts:855 - Filen eller katalogen finns inte - Failed to mount "/sys/fs/cgroup"
lxc ssh 20241013175738.578 ERROR    conf - ../src/lxc/conf.c:lxc_setup:4436 - Failed to setup remaining automatic mounts
lxc ssh 20241013175738.578 ERROR    start - ../src/lxc/start.c:do_start:1272 - Failed to setup container "ssh"
lxc ssh 20241013175738.578 ERROR    sync - ../src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)
lxc ssh 20241013175738.641 WARN     network - ../src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from "eth0" to its initial name "veth500dfc26"
lxc ssh 20241013175738.642 ERROR    lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc ssh 20241013175738.642 ERROR    start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "ssh"
lxc ssh 20241013175738.642 WARN     start - ../src/lxc/start.c:lxc_abort:1036 - Processen finns inte - Failed to send SIGKILL via pidfd 19 for process 27648
lxc 20241013175738.304 ERROR    af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Förbindelse borttagen av partnern - Failed to receive response
lxc 20241013175738.304 ERROR    commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"

Another one (with idmappings), get this error:

root@debian:~# incus start web
Error: Failed to run: /usr/libexec/incus/incusd forkstart web /var/lib/incus/containers /run/incus/web/lxc.conf: exit status 1
Try `incus info --show-log web` for more info
root@debian:~# incus info --show-log web
Name: web
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2023/07/12 20:14 CEST
Last Used: 2024/10/13 19:59 CEST

Log:

lxc web 20241013175928.915 ERROR    conf - ../src/lxc/conf.c:lxc_map_ids:3704 - newuidmap failed to write mapping "newuidmap: uid range [1000-1001) -> [1000-1001) not allowed": newuidmap 28331 0 1000000 1000 1000 1000 1 1001 1001001 999998999
lxc web 20241013175928.915 ERROR    start - ../src/lxc/start.c:lxc_spawn:1788 - Failed to set up id mapping.
lxc web 20241013175928.915 ERROR    lxccontainer - ../src/lxc/lxccontainer.c:wait_on_daemonized_start:878 - Received container state "ABORTING" instead of "RUNNING"
lxc web 20241013175928.915 ERROR    start - ../src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "web"
lxc web 20241013175928.915 WARN     start - ../src/lxc/start.c:lxc_abort:1036 - Processen finns inte - Failed to send SIGKILL via pidfd 19 for process 28331
lxc 20241013175928.931 ERROR    af_unix - ../src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Förbindelse borttagen av partnern - Failed to receive response
lxc 20241013175928.931 ERROR    commands - ../src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"

My current /etc/subuid and /etc/subgid:

root@debian:/etc# cat subuid
ircuser:10165537:65536
root:1000000:1000000000
arutaz:1000:1
root@debian:/etc# cat subgid
ircuser:10165537:65536
root:1000000:1000000000
arutaz:1000:1
root@debian:/etc#

My install:

root@debian:/etc# dpkg -l | grep incus
ii  incus                                   6.0.2-1~bpo12+1                         amd64        Powerful system container and virtual machine manager - daemon
ii  incus-agent                             6.0.2-1~bpo12+1                         amd64        Incus guest agent
ii  incus-client                            6.0.2-1~bpo12+1                         amd64        Powerful system container and virtual machine manager - client
ii  incus-migrate                           6.0.2-1~bpo12+1                         amd64        Incus physical to instance migration tool
ii  incus-tools                             6.0.2-1~bpo12+1                         amd64        Powerful system container and virtual machine manager - extra tools

Ok, it seems this issue was not so much with Incus, as with Mullvad-vpn-app interfering.
Uninstalled Mullvad-vpn and went back to using Wireguard and then some fiddelig with subuid and subgid, and it works again.

3 Likes