Lxc list -> Error: Get "http://unix.socket/1.0": EOF name "description": converting NULL to string is unsupported

Any idea how to fix this?

# lxc list
Error: Get "http://unix.socket/1.0": EOF

In the log, it complains “Error: Failed to load network “lxdbr0” in project “default”: sql: Scan error on column index 2, name “description”: converting NULL to string is unsupported”:

Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: => Preparing the system (21723)
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Loading snap configuration
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Setting up mntns symlink (mnt:[4026532774])
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Setting up kmod wrapper
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Preparing /boot
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Preparing a clean copy of /run
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Preparing /run/bin
Oct 20 06:14:01 lxd02 lxd.daemon[1517301]: ==> Preparing a clean copy of /etc
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Preparing a clean copy of /usr/share/misc
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Setting up ceph configuration
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Setting up LVM configuration
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Rotating logs
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Escaping the systemd cgroups
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ====> Detected cgroup V1
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Escaping the systemd process resource limits
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Disabling shiftfs on this kernel (auto)
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: ==> Detected kernel with partial AppArmor support
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: => Re-using existing LXCFS
Oct 20 06:14:02 lxd02 lxd.daemon[1517301]: => Starting LXD
Oct 20 06:14:02 lxd02 lxd.daemon[1517447]: t=2021-10-20T06:14:02+0000 lvl=warn msg=" - Couldn't find the CGroup blkio.weight, disk priority will be ignored"
Oct 20 06:14:05 lxd02 lxd.daemon[1517447]: t=2021-10-20T06:14:05+0000 lvl=eror msg="Failed to start the daemon" err="Failed to load network \"lxdbr0\" in project \"default\": sql: Scan error on column i>
Oct 20 06:14:05 lxd02 lxd.daemon[1517447]: Error: Failed to load network "lxdbr0" in project "default": sql: Scan error on column index 2, name "description": converting NULL to string is unsupported
Oct 20 06:14:06 lxd02 lxd.daemon[1517301]: => LXD failed to start
Oct 20 06:14:06 lxd02 systemd[1]: snap.lxd.daemon.service: Main process exited, code=exited, status=1/FAILURE
Oct 20 06:14:06 lxd02 systemd[1]: snap.lxd.daemon.service: Failed with result 'exit-code'.
Oct 20 06:14:06 lxd02 systemd[1]: snap.lxd.daemon.service: Scheduled restart job, restart counter is at 72381.
Oct 20 06:14:06 lxd02 systemd[1]: Stopped Service for snap application lxd.daemon.

This has been fixed in the latest snap which should be being deployed soon.

However you can also manually fix your database record, see instructions here:

Waiting for two more architectures to be done building, it looks like another 24h.

Sorry for the delay on the snap update, Launchpad which is used to build it has been very very severely backlogged this week following the release of Ubuntu 21.10.

1 Like