LXD unix socket "/var/snap/lxd/common/lxd-user/unix.socket" not accessible: Get "http://unix.socket/1.0": dial unix /var/snap/lxd/common/lxd-user/unix.socket: connect: connection refused

I have no knowledge about containers, everything was working perfectly, but suddenly when trying to list the containers lxc list the error occurred: LXD unix socket “/var/snap/lxd/common/lxd-user/unix.socket” not accessible: Get “http://unix.socket/1.0”: dial unix /var/snap/lxd/common/lxd-user/unix.socket: connect: connection refused could anyone help me?

lxd --debug --group lxd
DEBUG [2024-04-16T11:29:14-03:00] Connecting to a local LXD over a Unix socket
DEBUG [2024-04-16T11:29:14-03:00] Sending request to LXD etag= method=GET url=“http://unix.socket/1.0
INFO [2024-04-16T11:29:14-03:00] LXD is starting mode=normal path=/var/snap/lxd/common/lxd version=5.21.1
INFO [2024-04-16T11:29:14-03:00] Kernel uid/gid map:
INFO [2024-04-16T11:29:14-03:00] - u 0 0 4294967295
INFO [2024-04-16T11:29:14-03:00] - g 0 0 4294967295
INFO [2024-04-16T11:29:14-03:00] Configured LXD uid/gid map:
INFO [2024-04-16T11:29:14-03:00] - u 0 1000000 1000000000
INFO [2024-04-16T11:29:14-03:00] - g 0 1000000 1000000000
INFO [2024-04-16T11:29:14-03:00] Kernel features:
INFO [2024-04-16T11:29:14-03:00] - closing multiple file descriptors efficiently: no
INFO [2024-04-16T11:29:14-03:00] - netnsid-based network retrieval: yes
INFO [2024-04-16T11:29:14-03:00] - pidfds: yes
INFO [2024-04-16T11:29:14-03:00] - core scheduling: no
INFO [2024-04-16T11:29:14-03:00] - uevent injection: yes
INFO [2024-04-16T11:29:14-03:00] - seccomp listener: yes
INFO [2024-04-16T11:29:14-03:00] - seccomp listener continue syscalls: yes
INFO [2024-04-16T11:29:14-03:00] - seccomp listener add file descriptors: no
INFO [2024-04-16T11:29:14-03:00] - attach to namespaces via pidfds: yes
INFO [2024-04-16T11:29:14-03:00] - safe native terminal allocation : yes
INFO [2024-04-16T11:29:14-03:00] - unprivileged file capabilities: yes
INFO [2024-04-16T11:29:14-03:00] - cgroup layout: hybrid
WARNING[2024-04-16T11:29:14-03:00] - Couldn’t find the CGroup blkio.weight, disk priority will be ignored
INFO [2024-04-16T11:29:14-03:00] - idmapped mounts kernel support: no
WARNING[2024-04-16T11:29:14-03:00] Instance type not operational driver=qemu err=“KVM support is missing (no /dev/kvm)” type=virtual-machine
INFO [2024-04-16T11:29:14-03:00] Instance type operational driver=lxc features=“map” type=container
INFO [2024-04-16T11:29:14-03:00] Initializing local database
DEBUG [2024-04-16T11:29:14-03:00] Refreshing identity cache with local trusted certificates
INFO [2024-04-16T11:29:14-03:00] Set client certificate to server certificate fingerprint=95ce50beddf53bae6c61eea0f688673571e82cefc2c54c42f239dc278cf5c712
DEBUG [2024-04-16T11:29:14-03:00] Initializing database gateway
INFO [2024-04-16T11:29:14-03:00] Starting database node id=1 local=1 role=voter
ERROR [2024-04-16T11:29:16-03:00] Failed to start the daemon err=“Failed to start dqlite server: raft_start(): io: load closed segment 0000000000722979-0000000000722979: entries batch 54 starting at byte 627632: entries count in preamble is zero”
INFO [2024-04-16T11:29:16-03:00] Starting shutdown sequence signal=interrupt
INFO [2024-04-16T11:29:16-03:00] Not unmounting temporary filesystems (instances are still running)
INFO [2024-04-16T11:29:16-03:00] Daemon stopped
Error: Failed to start dqlite server: raft_start(): io: load closed segment 0000000000722979-0000000000722979: entries batch 54 starting at byte 627632: entries count in preamble is zero

Canonical took lxd in-house and relicensed it, so questions about lxd should now be asked on a Canonical forum:

linuxcontainers.org is for community-maintained software, including incus, the community fork of lxd.

Thanks, I found the solution there.