LXD broken after Ubuntu upgrade

Hi,
I have just been upgrading my laptop from Ubuntu 18:04 to 20:04 and the upgrade got stuck during the LXD uprade. The LXD upgrade GUI went dark and it never recovered, leaving the Ubuntu upgrade rather broken. After a number of rounds of applying updates from the terminal I now have the desktop environment back up, but LXD is broken. I think that it is stuck somewhere in the migration to the snap, perhaps the containers are still at the old location but Ubuntu thinks they should be in the snap?

sudo lxc list
Error: Get “http://unix.socket/1.0”: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused

sudo systemctl status lxd
lxd.service - LSB: Container hypervisor based on LXC
Loaded: loaded (/etc/init.d/lxd; generated)
Active: failed (Result: timeout) since Thu 2021-04-29 20:16:19 CEST; 8min ago
Docs: man:systemd-sysv-generator(8)
Process: 1351 ExecStart=/etc/init.d/lxd start (code=killed, signal=TERM)

Apr 29 20:11:20 laptop lxd[1351]: Starting Container hypervisor based on LXC: lxd.
Apr 29 20:11:19 laptop systemd[1]: Starting LSB: Container hypervisor based on LXC…
Apr 29 20:16:19 laptop systemd[1]: lxd.service: start operation timed out. Terminating.
Apr 29 20:16:19 laptop systemd[1]: lxd.service: Failed with result ‘timeout’.
Apr 29 20:16:19 laptop systemd[1]: Failed to start LSB: Container hypervisor based on LXC.

I also notice that the lxdbr0 bridge is missing.

I saw an output that said I should run lxd.migrate but that also gives an error:

sudo lxd.migrate
=> Connecting to source server
error: Unable to connect to the source LXD: Get “http://unix.socket/1.0”: dial unix /var/lib/lxd/unix.socket: connect: connection refused

I have one container that is very important to me, so I hope that someone can help me get this working again.

Any help is much appreciated.

Regards,
Gary

Can you show:

  • dpkg -l | grep lxd
  • snap list
  • ls -lh /var/lib/lxd/
  • ls -lh /var/lib/lxd/containers
  • ls -lh /var/snap/lxd/common/lxd/
  • ls -lh /var/snap/lxd/common/lxd/containers/

Yes, certainly:

sudo dpkg -l | grep lxd
ii lxd 1:0.9 all Transitional package - lxd -> snap (lxd)
ii lxd-client 1:0.9 all Transitional package - lxd-client -> LXD snap

snap list
Name Version Rev Tracking Publisher Notes
chromium 90.0.4430.93 1568 latest/stable canonical✓ -
core 16-2.49.2 10958 latest/stable canonical✓ core
core18 20210309 1997 latest/stable canonical✓ base
gnome-3-28-1804 3.28.0-19-g98f9e67.98f9e67 145 latest/stable canonical✓ -
gtk-common-themes 0.1-52-gb92ac40 1515 latest/stable canonical✓ -
lxd 4.0.5 19647 4.0/stable/… canonical✓

ls -lh /var/lib/lxd/
total 0
srw-rw---- 1 root lxd 0 Apr 29 17:16 unix.socket

ls -lh /var/lib/lxd/containers
ls: cannot access ‘/var/lib/lxd/containers’: No such file or directory

sudo ls -lh /var/snap/lxd/common/lxd/
total 72K
drwx------ 2 root root 4.0K Apr 29 16:46 backups
drwx------ 2 root root 4.0K Apr 29 16:46 cache
drwx–x--x 2 root root 4.0K Apr 29 16:46 containers
drwx------ 4 root root 4.0K Apr 29 16:46 database
drwx------ 3 root root 4.0K Apr 29 16:46 database.pre-migration
drwx–x--x 19 root root 4.0K Apr 29 21:07 devices
drwxr-xr-x 2 root root 4.0K Oct 1 2017 devlxd
drwx------ 2 root root 4.0K Jul 28 2018 disks
drwx------ 2 root root 4.0K Jan 6 2018 images
drwx------ 20 root root 4.0K Apr 29 21:07 logs
drwx–x--x 3 root root 4.0K Jul 28 2018 networks
drwx------ 4 root root 4.0K Oct 17 2017 security
-rw-r–r-- 1 root root 2.0K Oct 1 2017 server.crt
-rw------- 1 root root 3.2K Oct 1 2017 server.key
lrwxrwxrwx 1 root root 39 Apr 29 21:07 shmounts -> /var/snap/lxd/common/shmounts/instances
drwx------ 2 root root 4.0K Jul 28 2018 snapshots
drwx–x--x 3 root root 4.0K Jul 28 2018 storage-pools
srw-rw---- 1 root lxd 0 Apr 29 21:07 unix.socket
drwx–x--x 2 root root 4.0K Apr 29 16:46 virtual-machines
drwx------ 2 root root 4.0K Apr 29 16:46 virtual-machines-snapshots

sudo ls -lh /var/snap/lxd/common/lxd/containers/
total 188K

lrwxrwxrwx 1 root root 60 Apr 29 16:46 lamp18 -> /var/snap/lxd/common/lxd/storage-pools/lxd/containers/lamp18
(plus list of my other containers)

Many thanks

Okay, what does journalctl -u snap.lxd.daemon -n 300 get you?

Apr 29 21:07:38 laptop lxd.daemon[3635]: - pidfds
Apr 29 21:07:39 laptop lxd.daemon[2703]: => Killing conflicting LXD (pid=1549)
Apr 29 21:07:39 laptop lxd.daemon[2703]: => Starting LXD
Apr 29 21:07:39 laptop lxd.daemon[3826]: t=2021-04-29T21:07:39+0200 lvl=warn msg=" - Couldn’t find the CGroup blkio.weight, disk priority will be ignored"
Apr 29 21:07:39 laptop lxd.daemon[3826]: t=2021-04-29T21:07:39+0200 lvl=warn msg=" - Couldn’t find the CGroup memory swap accounting, swap limits will be ignored"
Apr 29 21:07:43 laptop lxd.daemon[3826]: t=2021-04-29T21:07:43+0200 lvl=eror msg=“Failed to start the daemon: Failed applying patch “network_clear_bridge_volatile_hwaddr”: Failed loading ne>
Apr 29 21:07:44 laptop lxd.daemon[3826]: Error: Failed applying patch “network_clear_bridge_volatile_hwaddr”: Failed loading network “lxdbr0” for network_clear_bridge_volatile_hwaddr patch: D>
Apr 29 21:07:44 laptop lxd.daemon[2703]: => LXD failed to start
Apr 29 21:07:44 laptop systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=1/FAILURE
Apr 29 21:07:44 laptop systemd[1]: snap.lxd.daemon.service: Failed with result ‘exit-code’.
Apr 29 21:07:44 laptop systemd[1]: snap.lxd.daemon.service: Scheduled restart job, restart counter is at 1.
Apr 29 21:07:44 laptop systemd[1]: Stopped Service for snap application lxd.daemon.
Apr 29 21:07:44 laptop systemd[1]: Started Service for snap application lxd.daemon.
Apr 29 21:07:44 laptop lxd.daemon[4724]: => Preparing the system (19647)
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Loading snap configuration
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Setting up mntns symlink (mnt:[4026532483])
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Setting up kmod wrapper
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Preparing /boot
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Preparing a clean copy of /run
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Preparing /run/bin
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Preparing a clean copy of /etc
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Preparing a clean copy of /usr/share/misc
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Setting up ceph configuration
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Setting up LVM configuration
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Rotating logs
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Setting up ZFS (0.8)
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Escaping the systemd cgroups
Apr 29 21:07:44 laptop lxd.daemon[4724]: ====> Detected cgroup V1
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Escaping the systemd process resource limits
Apr 29 21:07:44 laptop lxd.daemon[4724]: ==> Disabling shiftfs on this kernel (auto)
Apr 29 21:07:44 laptop lxd.daemon[4724]: => Re-using existing LXCFS
Apr 29 21:07:45 laptop lxd.daemon[4724]: => Starting LXD
Apr 29 21:07:45 laptop lxd.daemon[4907]: t=2021-04-29T21:07:45+0200 lvl=warn msg=” - Couldn’t find the CGroup blkio.weight, disk priority will be ignored"
Apr 29 21:07:45 laptop lxd.daemon[4907]: t=2021-04-29T21:07:45+0200 lvl=warn msg=" - Couldn’t find the CGroup memory swap accounting, swap limits will be ignored"
Apr 29 21:07:45 laptop lxd.daemon[4907]: t=2021-04-29T21:07:45+0200 lvl=eror msg="Failed to start the daemon: Failed applying patch “network_clear_bridge_volatile_hwaddr”: Failed loading ne>
Apr 29 21:07:46 laptop lxd.daemon[4907]: Error: Failed applying patch “network_clear_bridge_volatile_hwaddr”: Failed loading network “lxdbr0” for network_clear_bridge_volatile_hwaddr patch: D>
Apr 29 21:07:46 laptop lxd.daemon[4724]: => LXD failed to start
Apr 29 21:07:46 laptop systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=1/FAILURE
Apr 29 21:07:46 laptop systemd[1]: snap.lxd.daemon.service: Failed with result ‘exit-code’.
Apr 29 21:07:46 laptop systemd[1]: snap.lxd.daemon.service: Scheduled restart job, restart counter is at 2.
Apr 29 21:07:46 laptop systemd[1]: Stopped Service for snap application lxd.daemon.
Apr 29 21:07:46 laptop systemd[1]: Started Service for snap application lxd.daemon.
Apr 29 21:07:46 laptop lxd.daemon[5236]: => Preparing the system (19647)
Apr 29 21:07:46 laptop lxd.daemon[5236]: ==> Loading snap configuration
Apr 29 21:07:46 laptop lxd.daemon[5236]: ==> Setting up mntns symlink (mnt:[4026532483])
Apr 29 21:07:46 laptop lxd.daemon[5236]: ==> Setting up kmod wrapper
Apr 29 21:07:46 laptop lxd.daemon[5236]: ==> Preparing /boot
Apr 29 21:07:46 laptop lxd.daemon[5236]: ==> Preparing a clean copy of /run
Apr 29 21:07:46 laptop lxd.daemon[5236]: ==> Preparing /run/bin

Okay, can you do (as root):

  • systemctl stop snap.lxd.daemon snap.lxd.daemon.unix.socket
  • lxd --debug --group lxd

sudo lxd --debug --group lxd
DBUG[04-29|22:14:17] Connecting to a local LXD over a Unix socket
DBUG[04-29|22:14:17] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
INFO[04-29|22:14:17] LXD 4.0.5 is starting in normal mode path=/var/snap/lxd/common/lxd
INFO[04-29|22:14:17] Kernel uid/gid map:
INFO[04-29|22:14:17] - u 0 0 4294967295
INFO[04-29|22:14:17] - g 0 0 4294967295
INFO[04-29|22:14:17] Configured LXD uid/gid map:
INFO[04-29|22:14:17] - u 0 1000000 1000000000
INFO[04-29|22:14:17] - g 0 1000000 1000000000
INFO[04-29|22:14:17] Kernel features:
INFO[04-29|22:14:17] - closing multiple file descriptors efficiently: no
INFO[04-29|22:14:17] - netnsid-based network retrieval: yes
INFO[04-29|22:14:17] - pidfds: yes
INFO[04-29|22:14:17] - uevent injection: yes
INFO[04-29|22:14:17] - seccomp listener: yes
INFO[04-29|22:14:17] - seccomp listener continue syscalls: yes
INFO[04-29|22:14:17] - seccomp listener add file descriptors: no
INFO[04-29|22:14:17] - attach to namespaces via pidfds: no
INFO[04-29|22:14:17] - safe native terminal allocation : yes
INFO[04-29|22:14:17] - unprivileged file capabilities: yes
INFO[04-29|22:14:17] - cgroup layout: hybrid
WARN[04-29|22:14:17] - Couldn’t find the CGroup blkio.weight, disk priority will be ignored
WARN[04-29|22:14:17] - Couldn’t find the CGroup memory swap accounting, swap limits will be ignored
INFO[04-29|22:14:17] - shiftfs support: yes
INFO[04-29|22:14:17] Initializing local database
DBUG[04-29|22:14:17] Initializing database gateway
DBUG[04-29|22:14:17] Start database node id=1 address= role=voter
DBUG[04-29|22:14:17] Connecting to a local LXD over a Unix socket
DBUG[04-29|22:14:17] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
DBUG[04-29|22:14:17] Detected stale unix socket, deleting
INFO[04-29|22:14:17] Starting /dev/lxd handler:
INFO[04-29|22:14:17] - binding devlxd socket socket=/var/snap/lxd/common/lxd/devlxd/sock
INFO[04-29|22:14:17] REST API daemon:
INFO[04-29|22:14:17] - binding Unix socket socket=/var/snap/lxd/common/lxd/unix.socket
INFO[04-29|22:14:17] - binding TCP socket socket=[::]:8443
INFO[04-29|22:14:17] Initializing global database
DBUG[04-29|22:14:17] Dqlite: attempt 0: server 1: connected
DBUG[04-29|22:14:17] Firewall xtables detected iptables is in use
INFO[04-29|22:14:17] Firewall loaded driver “xtables”
INFO[04-29|22:14:17] Initializing storage pools
DBUG[04-29|22:14:17] Initializing and checking storage pool “lxd”
DBUG[04-29|22:14:17] Mount started driver=zfs pool=lxd
DBUG[04-29|22:14:17] Mount finished driver=zfs pool=lxd
INFO[04-29|22:14:17] Applying patch “network_clear_bridge_volatile_hwaddr”
EROR[04-29|22:14:17] Failed to start the daemon: Failed applying patch “network_clear_bridge_volatile_hwaddr”: Failed loading network “lxdbr0” for network_clear_bridge_volatile_hwaddr patch: Duplicate config row found for key “dns.mode” for network ID 1
INFO[04-29|22:14:17] Starting shutdown sequence
INFO[04-29|22:14:17] Closing the database
INFO[04-29|22:14:17] Stop database gateway
INFO[04-29|22:14:17] Stopping REST API handler:
INFO[04-29|22:14:17] - closing socket socket=[::]:8443
INFO[04-29|22:14:17] - closing socket socket=/var/snap/lxd/common/lxd/unix.socket
INFO[04-29|22:14:17] Stopping /dev/lxd handler:
INFO[04-29|22:14:17] - closing socket socket=/var/snap/lxd/common/lxd/devlxd/sock
INFO[04-29|22:14:17] Unmounting temporary filesystems
INFO[04-29|22:14:17] Done unmounting temporary filesystems
Error: Failed applying patch “network_clear_bridge_volatile_hwaddr”: Failed loading network “lxdbr0” for network_clear_bridge_volatile_hwaddr patch: Duplicate config row found for key “dns.mode” for network ID 1

sqlite3 /var/snap/lxd/common/lxd/database/global/db.bin "SELECT * FROM networks_config;"

This should give us an idea of what’s wrong so we can have LXD run a small DB patch on startup to correct it.

Thanks, here is the output:
sudo sqlite3 /var/snap/lxd/common/lxd/database/global/db.bin “SELECT * FROM networks_config;”
1|1||dns.mode|dynamic
2|1||ipv4.address|none
3|1||ipv6.address|none
4|1||ipv4.address|10.11.12.1/24
5|1||ipv6.address|none
6|1||dns.mode|dynamic
7|1||ipv6.address|none
8|1||dns.mode|dynamic
9|1||ipv4.address|10.11.12.1/24
10|1||ipv4.dhcp.ranges|10.11.12.10-10.11.12.254
11|1||ipv4.dhcp.ranges|10.11.12.10-10.11.12.254
12|1||ipv4.nat|true
13|1||ipv6.address|none
14|1||dns.mode|dynamic
15|1||ipv4.address|10.11.12.1/24
16|1||ipv6.address|fdab:e507:2f88:8ba5::1/64
17|1||dns.mode|dynamic
18|1||ipv4.address|10.11.12.1/24
19|1||ipv4.dhcp.ranges|10.11.12.10-10.11.12.254
20|1||ipv4.nat|true
21|1||dns.mode|dynamic
22|1||ipv4.address|10.11.12.1/24
23|1||ipv4.dhcp.ranges|10.11.12.10-10.11.12.254
24|1||ipv4.nat|true
25|1||ipv6.address|fdab:e507:2f88:8ba5::1/64
26|1||ipv6.nat|true

I have had duplicate entries before, so I should delete all rows below 21?

Wow, that’s pretty special… Yeah, looks like wiping anything below 21 should do it.
You can create /var/snap/lxd/common/lxd/database/patch.global.sql containing:
DELETE FROM networks_config WHERE id < 21

Then run lxd --debug --group lxd again and that should get you past that error at least.

This gets everything up and running, so long as the debig command is still running in the terminal, containers can be listed and started and stopped:

sudo lxd --debug --group lxd
INFO[04-29|23:08:02] LXD 4.0.5 is starting in normal mode path=/var/snap/lxd/common/lxd
INFO[04-29|23:08:02] Kernel uid/gid map:
INFO[04-29|23:08:02] - u 0 0 4294967295
INFO[04-29|23:08:02] - g 0 0 4294967295
INFO[04-29|23:08:02] Configured LXD uid/gid map:
INFO[04-29|23:08:02] - u 0 1000000 1000000000
INFO[04-29|23:08:02] - g 0 1000000 1000000000
INFO[04-29|23:08:02] Kernel features:
INFO[04-29|23:08:02] - closing multiple file descriptors efficiently: no
INFO[04-29|23:08:02] - netnsid-based network retrieval: yes
INFO[04-29|23:08:02] - pidfds: yes
INFO[04-29|23:08:02] - uevent injection: yes
INFO[04-29|23:08:02] - seccomp listener: yes
INFO[04-29|23:08:02] - seccomp listener continue syscalls: yes
INFO[04-29|23:08:02] - seccomp listener add file descriptors: no
INFO[04-29|23:08:02] - attach to namespaces via pidfds: no
INFO[04-29|23:08:02] - safe native terminal allocation : yes
INFO[04-29|23:08:02] - unprivileged file capabilities: yes
INFO[04-29|23:08:02] - cgroup layout: hybrid
WARN[04-29|23:08:02] - Couldn’t find the CGroup blkio.weight, disk priority will be ignored
WARN[04-29|23:08:02] - Couldn’t find the CGroup memory swap accounting, swap limits will be ignored
INFO[04-29|23:08:02] - shiftfs support: yes
INFO[04-29|23:08:02] Initializing local database
DBUG[04-29|23:08:02] Initializing database gateway
DBUG[04-29|23:08:02] Start database node id=1 address= role=voter
INFO[04-29|23:08:02] Starting /dev/lxd handler:
INFO[04-29|23:08:02] - binding devlxd socket socket=/var/snap/lxd/common/lxd/devlxd/sock
INFO[04-29|23:08:02] REST API daemon:
INFO[04-29|23:08:02] - binding Unix socket socket=/var/snap/lxd/common/lxd/unix.socket
INFO[04-29|23:08:02] - binding TCP socket socket=[::]:8443
INFO[04-29|23:08:02] Initializing global database
DBUG[04-29|23:08:02] Dqlite: attempt 0: server 1: connected
DBUG[04-29|23:08:02] Firewall xtables detected iptables is in use
INFO[04-29|23:08:02] Firewall loaded driver “xtables”
INFO[04-29|23:08:02] Initializing storage pools
DBUG[04-29|23:08:02] Initializing and checking storage pool “lxd”
DBUG[04-29|23:08:02] Mount started driver=zfs pool=lxd
DBUG[04-29|23:08:02] Mount finished driver=zfs pool=lxd
INFO[04-29|23:08:02] Initializing daemon storage mounts
INFO[04-29|23:08:02] Initializing networks
DBUG[04-29|23:08:03] Start driver=bridge network=lxdbr0
DBUG[04-29|23:08:03] Setting up network driver=bridge network=lxdbr0
DBUG[04-29|23:08:03] Stable MAC generated driver=bridge network=lxdbr0 seed=a3ec4489745999809f69bb2a34f119c37a1b56ead6885a030523944d84f3799b.0.1 hwAddr=00:16:3e:b7:46:60
DBUG[04-29|23:08:04] New task Operation: 7af3da6c-eada-407d-9f4d-4c16f64a5238
INFO[04-29|23:08:04] Pruning leftover image files
DBUG[04-29|23:08:04] Started task operation: 7af3da6c-eada-407d-9f4d-4c16f64a5238
INFO[04-29|23:08:04] Done pruning leftover image files
INFO[04-29|23:08:04] Loading daemon configuration
DBUG[04-29|23:08:04] Success for task operation: 7af3da6c-eada-407d-9f4d-4c16f64a5238
DBUG[04-29|23:08:04] Initialized inotify with file descriptor 26
DBUG[04-29|23:08:04] Initialising mounted disk ref counter driver=disk device=root project=default instance=lamp18
DBUG[04-29|23:08:04] MountInstance started driver=zfs pool=lxd instance=lamp18 project=default
DBUG[04-29|23:08:04] MountInstance finished driver=zfs pool=lxd instance=lamp18 project=default
INFO[04-29|23:08:04] Started seccomp handler path=/var/snap/lxd/common/lxd/seccomp.socket
DBUG[04-29|23:08:04] New task Operation: e53ab4d4-0e63-494e-91d2-2651d36e2bd1
INFO[04-29|23:08:04] Pruning expired images
DBUG[04-29|23:08:04] Started task operation: e53ab4d4-0e63-494e-91d2-2651d36e2bd1
INFO[04-29|23:08:04] Done pruning expired images
DBUG[04-29|23:08:04] Success for task operation: e53ab4d4-0e63-494e-91d2-2651d36e2bd1
DBUG[04-29|23:08:04] New task Operation: 73c61a35-309c-4dfe-8a22-5f57209130ba
INFO[04-29|23:08:04] Pruning expired instance backups
DBUG[04-29|23:08:04] Started task operation: 73c61a35-309c-4dfe-8a22-5f57209130ba
INFO[04-29|23:08:04] Done pruning expired instance backups
DBUG[04-29|23:08:04] Success for task operation: 73c61a35-309c-4dfe-8a22-5f57209130ba
DBUG[04-29|23:08:04] New task Operation: 563a2aaf-af17-4dc1-9d7e-a170681f247d
INFO[04-29|23:08:04] Expiring log files
DBUG[04-29|23:08:04] Started task operation: 563a2aaf-af17-4dc1-9d7e-a170681f247d
DBUG[04-29|23:08:04] New task Operation: d19d3adb-aced-4819-a604-e011ad623343
INFO[04-29|23:08:04] Updating images
DBUG[04-29|23:08:04] Started task operation: d19d3adb-aced-4819-a604-e011ad623343
INFO[04-29|23:08:04] Done expiring log files
INFO[04-29|23:08:04] Done updating images
DBUG[04-29|23:08:04] Success for task operation: d19d3adb-aced-4819-a604-e011ad623343
DBUG[04-29|23:08:04] Success for task operation: 563a2aaf-af17-4dc1-9d7e-a170681f247d
DBUG[04-29|23:08:04] New task Operation: 51a0f4ea-a5a7-46e9-aaff-5a3f8ad06070
INFO[04-29|23:08:04] Updating instance types
DBUG[04-29|23:08:04] Started task operation: 51a0f4ea-a5a7-46e9-aaff-5a3f8ad06070
INFO[04-29|23:08:04] Done updating instance types
DBUG[04-29|23:08:16] Success for task operation: 51a0f4ea-a5a7-46e9-aaff-5a3f8ad06070

However the debug does not finish by itself and so when I Ctrl - C out of the terminal a running container keeps running but lxc list and lxc start container give:

lxc list
Error: Get “http://unix.socket/1.0”: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory
root@laptop:/home/gary# lxc stop lamp18
Error: Get “http://unix.socket/1.0”: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: no such file or directory

Perfect, so just run systemctl start snap.lxd.daemon.unix.socket to get it back to being systemd managed and you should be back to normal.

Yes!! It looks like it is working again. Thank you soooo much for your help! :slight_smile: