Migrate from deb 3.0.3 to snap 4.0 hanging at starting daemon

i am doing an upgrade (deb to snap but i am stuck. Anyone an idea? the snapshots causing the error (snapshot hist2/202306010625) doesn’t even exist.

Aug 08 09:57:17 srv1 lxd.daemon[7778]: => Preparing the system (24061)
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Loading snap configuration
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Setting up mntns symlink (mnt:[4026532855])
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Setting up kmod wrapper
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Preparing /boot
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Preparing a clean copy of /run
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Preparing /run/bin
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Preparing a clean copy of /etc
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Preparing a clean copy of /usr/share/misc
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Setting up ceph configuration
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Setting up LVM configuration
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Rotating logs
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Setting up ZFS (0.7)
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Escaping the systemd cgroups
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ====> Detected cgroup V1
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Escaping the systemd process resource limits
Aug 08 09:57:17 srv1 lxd.daemon[7778]: ==> Disabling shiftfs on this kernel (auto)
Aug 08 09:57:17 srv1 lxd.daemon[10301]: Closed liblxcfs.so
Aug 08 09:57:17 srv1 lxd.daemon[10301]: Running destructor lxcfs_exit
Aug 08 09:57:17 srv1 lxd.daemon[10301]: Running constructor lxcfs_init to reload liblxcfs
Aug 08 09:57:18 srv1 kernel: new mount options do not match the existing superblock, will be ignored
Aug 08 09:57:20 srv1 lxd.daemon[10301]: mount namespace: 5
Aug 08 09:57:20 srv1 lxd.daemon[10301]: hierarchies:
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 0: fd: 6:
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 1: fd: 7: name=systemd
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 2: fd: 8: net_cls,net_prio
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 3: fd: 9: pids
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 4: fd: 10: devices
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 5: fd: 11: cpuset
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 6: fd: 12: hugetlb
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 7: fd: 13: memory
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 8: fd: 14: blkio
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 9: fd: 15: cpu,cpuacct
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 10: fd: 16: rdma
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 11: fd: 17: perf_event
Aug 08 09:57:20 srv1 lxd.daemon[10301]: 12: fd: 19: freezer
Aug 08 09:57:20 srv1 lxd.daemon[10301]: Kernel does not support swap accounting
Aug 08 09:57:20 srv1 lxd.daemon[10301]: api_extensions:
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - cgroups
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - sys_cpu_online
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_cpuinfo
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_diskstats
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_loadavg
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_meminfo
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_stat
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_swaps
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - proc_uptime
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - shared_pidns
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - cpuview_daemon
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - loadavg_daemon
Aug 08 09:57:20 srv1 lxd.daemon[10301]: - pidfds
Aug 08 09:57:20 srv1 lxd.daemon[10301]: Reloaded LXCFS
Aug 08 09:57:20 srv1 lxd.daemon[7778]: => Re-using existing LXCFS
Aug 08 09:57:20 srv1 lxd.daemon[7778]: => Starting LXD
Aug 08 09:57:20 srv1 lxd.daemon[7778]: t=2023-08-08T09:57:20+0200 lvl=warn msg=" - Couldn’t find the CGroup memory swap accounting, swap limits will be ignored"
Aug 08 09:57:20 srv1 lxd.daemon[7778]: t=2023-08-08T09:57:20+0200 lvl=eror msg=“Failed to start the daemon” err=“Failed to initialize global database: failed to ensure schema: failed to apply update 15: Found snapshot hist2/202306010625 with no associated instance”
Aug 08 09:57:20 srv1 lxd.daemon[7778]: Error: Failed to initialize global database: failed to ensure schema: failed to apply update 15: Found snapshot hist2/202306010625 with no associated instance
Aug 08 09:57:21 srv1 lxd.daemon[7778]: => LXD failed to start
Aug 08 09:57:21 srv1 systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=1/FAILURE
Aug 08 09:57:21 srv1 systemd[1]: snap.lxd.daemon.service: Failed with result ‘exit-code’.
Aug 08 09:57:21 srv1 systemd[1]: snap.lxd.daemon.service: Service hold-off time over, scheduling restart.
Aug 08 09:57:21 srv1 systemd[1]: snap.lxd.daemon.service: Scheduled restart job, restart counter is at 255.

thanks

I ended up installing a fresh LXD, and then copying the containers from the backup server. This was also not without problems, one container wouldn’t start (something with ACLs and /var/log/journal), and another one ended with ID’s that were not remapped…
All my problems started when I ctrled-C a running LXC command…
Finally everything is back online again, but not without stress…
At the same time the LXD forum seems to be left by a lot of people, and I don’t get any answers here apparently. The IRC gave me some hints.

Jef

1 Like