Hello Community.
LXD 5.0.3
on Ubuntu 22.04
(kernel 5.15.0-94-generic
and snap 2.61.1
) stopped working and all instances suddenly went down. Server had hitherto been running since Nov 2022. I believe that Ubuntu auto-update (and the accompanying snap refresh) may have caused this; as no manual update of any kind has been done in the past month or so.
Running lxc ls
returns:
Error: Get "http://unix.socket/1.0": EOF
,
and,
lxd --debug --group lxd
returns:
DEBUG [2024-02-13T12:19:51+02:00] Connecting to a local LXD over a Unix socket
DEBUG [2024-02-13T12:19:51+02:00] Sending request to LXD etag= method=GET url="http://unix.socket/1.0"
INFO [2024-02-13T12:19:53+02:00] LXD is starting mode=normal path=/var/snap/lxd/common/lxd
version=5.0.3
INFO [2024-02-13T12:19:53+02:00] Kernel uid/gid map:
INFO [2024-02-13T12:19:53+02:00] - u 0 0 4294967295
INFO [2024-02-13T12:19:53+02:00] - g 0 0 4294967295
INFO [2024-02-13T12:19:53+02:00] Configured LXD uid/gid map:
INFO [2024-02-13T12:19:53+02:00] - u 0 1000000 1000000000
INFO [2024-02-13T12:19:53+02:00] - g 0 1000000 1000000000
INFO [2024-02-13T12:19:53+02:00] Kernel features:
INFO [2024-02-13T12:19:53+02:00] - closing multiple file descriptors efficiently: yes
INFO [2024-02-13T12:19:53+02:00] - netnsid-based network retrieval: yes
INFO [2024-02-13T12:19:53+02:00] - pidfds: yes
INFO [2024-02-13T12:19:53+02:00] - core scheduling: yes
INFO [2024-02-13T12:19:53+02:00] - uevent injection: yes
INFO [2024-02-13T12:19:53+02:00] - seccomp listener: yes
INFO [2024-02-13T12:19:53+02:00] - seccomp listener continue syscalls: yes
INFO [2024-02-13T12:19:53+02:00] - seccomp listener add file descriptors: yes
INFO [2024-02-13T12:19:53+02:00] - attach to namespaces via pidfds: yes
INFO [2024-02-13T12:19:53+02:00] - safe native terminal allocation : yes
INFO [2024-02-13T12:19:53+02:00] - unprivileged file capabilities: yes
INFO [2024-02-13T12:19:53+02:00] - cgroup layout: cgroup2
WARNING[2024-02-13T12:19:53+02:00] - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored
WARNING[2024-02-13T12:19:53+02:00] - Couldn't find the CGroup network priority controller, per-instance network priority will be ignored. Please use per-device limits.priority instead
INFO [2024-02-13T12:19:53+02:00] - shiftfs support: yes
INFO [2024-02-13T12:19:53+02:00] - idmapped mounts kernel support: yes
ERROR [2024-02-13T12:19:53+02:00] Unable to run feature checks during QEMU initialization: QEMU premature exit: exit status 1 (qemu-system-x86_64: -drive if=pflash,format=raw,readonly=on,file=/usr/share/OVMF/OVMF_CODE.fd: Could not open '/usr/share/OVMF/OVMF_CODE.fd': No such file or directory)
WARNING[2024-02-13T12:19:53+02:00] Instance type not operational driver=qemu err="QEMU failed to run feature checks" type=virtual-machine
INFO [2024-02-13T12:19:53+02:00] Instance type operational driver=lxc features="map[]" type=container
INFO [2024-02-13T12:19:53+02:00] Initializing local database
DEBUG [2024-02-13T12:19:53+02:00] Refreshing local trusted certificate cache
INFO [2024-02-13T12:19:53+02:00] Set client certificate to server certificate fingerprint=5eaba09b34ee628564424b60a85f6569c4b0ecdf3f7818b6845b4fa5a0751671
DEBUG [2024-02-13T12:19:53+02:00] Initializing database gateway
INFO [2024-02-13T12:19:53+02:00] Starting database node id=1 local=1 role=voter
INFO [2024-02-13T12:19:54+02:00] Loading daemon configuration
INFO [2024-02-13T12:19:54+02:00] Binding socket socket=/var/snap/lxd/common/lxd/unix.socket type="REST API Unix socket"
INFO [2024-02-13T12:19:54+02:00] Binding socket socket=/var/snap/lxd/common/lxd/devlxd/sock type="devlxd socket"
INFO [2024-02-13T12:19:54+02:00] Binding socket socket="[::]:8443" type="REST API TCP socket"
INFO [2024-02-13T12:19:54+02:00] Initializing global database
INFO [2024-02-13T12:19:54+02:00] Connecting to global database
DEBUG [2024-02-13T12:19:54+02:00] Dqlite: attempt 1: server 1: connected
INFO [2024-02-13T12:19:54+02:00] Connected to global database
INFO [2024-02-13T12:19:54+02:00] Initialized global database
INFO [2024-02-13T12:19:54+02:00] Firewall loaded driver driver=nftables
INFO [2024-02-13T12:19:54+02:00] Initializing storage pools
DEBUG [2024-02-13T12:19:54+02:00] Initializing storage pool pool=lxddsk
DEBUG [2024-02-13T12:19:54+02:00] Mount started driver=btrfs pool=lxddsk
DEBUG [2024-02-13T12:20:04+02:00] Mount finished driver=btrfs pool=lxddsk
ERROR [2024-02-13T12:20:04+02:00] Failed mounting storage pool err="Failed to mount \"/dev/disk/by-uuid/27051cec-9c46-4759-ada6-7f14e48b17b2\" on \"/var/snap/lxd/common/lxd/storage-pools/lxddsk\" using \"btrfs\": no such file or directory" pool=lxddsk
DEBUG [2024-02-13T12:20:04+02:00] Initializing storage pool pool=lxdsp-01
DEBUG [2024-02-13T12:20:04+02:00] Mount started driver=btrfs pool=lxdsp-01
DEBUG [2024-02-13T12:20:04+02:00] Mount finished driver=btrfs pool=lxdsp-01
INFO [2024-02-13T12:20:04+02:00] Initialized storage pool pool=lxdsp-01
INFO [2024-02-13T12:20:04+02:00] Applying patch name=storage_delete_old_snapshot_records
ERROR [2024-02-13T12:20:04+02:00] Failed to start the daemon err="Failed applying patch \"storage_delete_old_snapshot_records\": Unvailable storage pools: [lxddsk]"
INFO [2024-02-13T12:20:04+02:00] Starting shutdown sequence signal=interrupt
DEBUG [2024-02-13T12:20:04+02:00] Cancel ongoing or future gRPC connection attempts
INFO [2024-02-13T12:20:04+02:00] Closing the database
INFO [2024-02-13T12:20:04+02:00] Stop database gateway
INFO [2024-02-13T12:20:04+02:00] Closing socket socket="[::]:8443" type="REST API TCP socket"
INFO [2024-02-13T12:20:04+02:00] Closing socket socket=/var/snap/lxd/common/lxd/unix.socket type="REST API Unix socket"
INFO [2024-02-13T12:20:04+02:00] Closing socket socket=/var/snap/lxd/common/lxd/devlxd/sock type="devlxd socket"
INFO [2024-02-13T12:20:04+02:00] Unmounting temporary filesystems
INFO [2024-02-13T12:20:04+02:00] Done unmounting temporary filesystems
INFO [2024-02-13T12:20:04+02:00] Daemon stopped
Error: Failed applying patch "storage_delete_old_snapshot_records": Unvailable storage pools: [lxddsk]
How can I restore the instances into full operation, without any loss of data, metadata or configs?
Thanks