LXD unable to launch new containers, "read only filesystem"

This one’s a bit of a weird one, but I have this error when trying to launch any new LXD containers on my 22.04 machine (which I have not upgraded to 24.04 yet for a very good reason: I don’t have a backup yet of my 22.04 machine as a restore point):

$ lxc info --show-log local:select-liger
Name: select-liger
Status: STOPPED
Type: container
Architecture: x86_64
Created: 2024/10/17 19:21 EDT
Last Used: 2024/10/17 19:21 EDT

Log:

lxc select-liger 20241017232110.611 WARN     idmap_utils - ../src/src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing
lxc select-liger 20241017232110.611 WARN     idmap_utils - ../src/src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing
lxc select-liger 20241017232110.613 WARN     idmap_utils - ../src/src/lxc/idmap_utils.c:lxc_map_ids:165 - newuidmap binary is missing
lxc select-liger 20241017232110.613 WARN     idmap_utils - ../src/src/lxc/idmap_utils.c:lxc_map_ids:171 - newgidmap binary is missing
lxc select-liger 20241017232110.659 ERROR    utils - ../src/src/lxc/utils.c:lxc_mkdir_p:240 - Read-only file system - Failed to create directory "/var/snap/lxd/common/lxc//etc/ssl/extra/"
lxc select-liger 20241017232110.659 ERROR    conf - ../src/src/lxc/conf.c:mount_entry_create_dir_file:2376 - Read-only file system - Failed to create directory "/var/snap/lxd/common/lxc//etc/ssl/extra/"
lxc select-liger 20241017232110.659 ERROR    conf - ../src/src/lxc/conf.c:lxc_setup:3915 - Failed to setup mount entries
lxc select-liger 20241017232110.659 ERROR    start - ../src/src/lxc/start.c:do_start:1273 - Failed to setup container "select-liger"
lxc select-liger 20241017232110.659 ERROR    sync - ../src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 3)
lxc select-liger 20241017232110.672 WARN     network - ../src/src/lxc/network.c:lxc_delete_network_priv:3671 - Failed to rename interface with index 0 from "lxnet0" to its initial name "veth1d9cbfb6"
lxc select-liger 20241017232110.672 ERROR    start - ../src/src/lxc/start.c:__lxc_start:2114 - Failed to spawn container "select-liger"
lxc select-liger 20241017232110.672 ERROR    lxccontainer - ../src/src/lxc/lxccontainer.c:wait_on_daemonized_start:837 - Received container state "ABORTING" instead of "RUNNING"
lxc select-liger 20241017232110.672 WARN     start - ../src/src/lxc/start.c:lxc_abort:1037 - No such process - Failed to send SIGKILL via pidfd 17 for process 8533
lxc 20241017232110.772 ERROR    af_unix - ../src/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20241017232110.772 ERROR    commands - ../src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_init_pid"

It’s almost as if environment paths got screwed, becuase /var/snap/lxd/common/lxc//etc/ssl/extra/ is NOT where it should be attempting to write to on things…

This is a new emergent problem. LXD is snapped and I’m tracking latest/stable which is 6.1.

This is a problem because I can’t create new containers. Not sure why this is starting to do this now though.

Solved this myself, looks like a local bind mount I had in my default config went away. OOPS!

Ultimately was a config issue on my end, fixed it by removing the device mount and everything works again!