LXD Snap: Channel = latest/stable
So I’ve been blissfully unaware of snap auto-updating lxd. Shame on me, but I’m a very part time sysadmin. Also, Ubuntu 18.04 is now out of support. Due to a UPS failure, my server rebooted and when it came back up, lxd refused to run. Up until that time, my containers apparently remained running even as the snap auto update had failed.
Initially, I got: Error:
Required tool 'zpool' is missing. And I found this thread
So I tried to change channels to 5.0/stable. But there’s since been a database change that prevents me from downgrading. So after some more fiddling, I’m back to channel = latest/stable.
Jun 05 2023 21:52:19 root@pogo:~# snap info lxd|grep -E 'snap-id:|tracking:|installed:' snap-id: J60k4JY0HppjwOjW8dZdYc8obXKxujRu tracking: latest/stable installed: 5.14-7072c7b (24918) 178MB -
And I’ve installed the HWE kernel to get to zfs 0.8.3.
Jun 05 2023 21:26:12 root@pogo:~# modinfo zfs | grep version version: 0.8.3-1ubuntu12.14
Jun 05 2023 21:27:06 root@pogo:~# lxc list Error: Get "http://unix.socket/1.0": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused
Jun 05 2023 21:34:00 root@pogo:~# systemctl status snap.lxd.daemon.service ● snap.lxd.daemon.service - Service for snap application lxd.daemon Loaded: loaded (/etc/systemd/system/snap.lxd.daemon.service; static; vendor preset: enabled) Active: failed (Result: exit-code) since Mon 2023-06-05 08:39:14 EDT; 12h ago Process: 18172 ExecStart=/usr/bin/snap run lxd.daemon (code=exited, status=1/FAILURE) Main PID: 18172 (code=exited, status=1/FAILURE) Jun 05 08:39:14 pogo systemd: snap.lxd.daemon.service: Service hold-off time over, scheduling restart. Jun 05 08:39:14 pogo systemd: snap.lxd.daemon.service: Scheduled restart job, restart counter is at 7. Jun 05 08:39:14 pogo systemd: Stopped Service for snap application lxd.daemon. Jun 05 08:39:14 pogo systemd: snap.lxd.daemon.service: Start request repeated too quickly. Jun 05 08:39:14 pogo systemd: snap.lxd.daemon.service: Failed with result 'exit-code'. Jun 05 08:39:14 pogo systemd: Failed to start Service for snap application lxd.daemon.
This is all after the lxd snap was refreshed to latest/stable and the server was shutdown and restarted.
Snap exists on this server only for LXD:
Jun 05 2023 21:53:19 root@pogo:~# snap list Name Version Rev Tracking Publisher Notes core 16-2.58.3 14946 latest/stable canonical✓ core core20 20230503 1891 latest/stable canonical✓ base core22 20230503 634 latest/stable canonical✓ base hello-world 6.4 29 latest/stable canonical✓ - lxd 5.14-7072c7b 24918 latest/stable canonical✓ - snapd 2.59.4 19361 latest/stable canonical✓ snapd
And snap appears to be working:
Jun 05 2023 22:15:02 root@pogo:~# hello-world Hello World!
I’ve considered upgrading Ubuntu to 20.04. But I figured that I should ask here first. I’d prefer to resolve the issue and have a working system before I do an OS upgrade.
What should I attempt next? What other information will help diagnose the issue?