Lxc list hangs, version 4.1

Hello,

‘lxc list’ is hanging for me since yesterday.

# cat /var/snap/lxd/common/lxd/logs/lxd.log
t=2020-05-26T22:27:49+0530 lvl=info msg="LXD 4.1 is starting in normal mode" path=/var/snap/lxd/common/lxd
t=2020-05-26T22:27:49+0530 lvl=info msg="Kernel uid/gid map:" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - u 0 0 4294967295" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - g 0 0 4294967295" 
t=2020-05-26T22:27:49+0530 lvl=info msg="Configured LXD uid/gid map:" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - u 0 1000000 1000000000" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - g 0 1000000 1000000000" 
t=2020-05-26T22:27:49+0530 lvl=warn msg="AppArmor support has been disabled because of lack of kernel support" 
t=2020-05-26T22:27:49+0530 lvl=info msg="Kernel features:" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - netnsid-based network retrieval: yes" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - uevent injection: yes" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - seccomp listener: yes" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - seccomp listener continue syscalls: no" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - unprivileged file capabilities: yes" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - cgroup layout: hybrid" 
t=2020-05-26T22:27:49+0530 lvl=warn msg=" - Couldn't find the CGroup blkio.weight, I/O weight limits will be ignored" 
t=2020-05-26T22:27:49+0530 lvl=info msg=" - shiftfs support: disabled" 
t=2020-05-26T22:27:49+0530 lvl=info msg="Initializing local database" 
t=2020-05-26T22:27:50+0530 lvl=info msg="Starting /dev/lxd handler:" 
t=2020-05-26T22:27:50+0530 lvl=info msg=" - binding devlxd socket" socket=/var/snap/lxd/common/lxd/devlxd/sock
t=2020-05-26T22:27:50+0530 lvl=info msg="REST API daemon:" 
t=2020-05-26T22:27:50+0530 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/snap/lxd/common/lxd/unix.socket
t=2020-05-26T22:27:50+0530 lvl=info msg=" - binding TCP socket" socket=[::]:8443
t=2020-05-26T22:27:50+0530 lvl=info msg="Initializing global database" 


# systemctl status snap.lxd.daemon
* snap.lxd.daemon.service - Service for snap application lxd.daemon
     Loaded: loaded (/etc/systemd/system/snap.lxd.daemon.service; static; vendor preset: disabled)
     Active: active (running) since Tue 2020-05-26 22:27:49 IST; 3min 59s ago
TriggeredBy: * snap.lxd.daemon.unix.socket
   Main PID: 542836 (daemon.start)
      Tasks: 0 (limit: 154552)
     Memory: 5.0M
     CGroup: /system.slice/snap.lxd.daemon.service
             > 542836 /bin/sh /snap/lxd/15161/commands/daemon.start

May 26 22:27:49 nas lxd.daemon[9873]: - proc_loadavg
May 26 22:27:49 nas lxd.daemon[9873]: - proc_meminfo
May 26 22:27:49 nas lxd.daemon[9873]: - proc_stat
May 26 22:27:49 nas lxd.daemon[9873]: - proc_swaps
May 26 22:27:49 nas lxd.daemon[9873]: - proc_uptime
May 26 22:27:49 nas lxd.daemon[9873]: - shared_pidns
May 26 22:27:49 nas lxd.daemon[9873]: - cpuview_daemon
May 26 22:27:49 nas lxd.daemon[9873]: - loadavg_daemon
May 26 22:27:49 nas lxd.daemon[9873]: - pidfds
May 26 22:27:49 nas lxd.daemon[9873]: Reloaded LXCFS

Any idea what could be the issue?

Well, what exactly does hanging mean?

Does it show nothing?
Or does it show the list after longer time (minutes)?
Does it show an error?

How many containers do you have?

It is sitting there doing nothing,

# lxc list --fast --debug
DBUG[05-26|22:34:38] Connecting to a local LXD over a Unix socket 
DBUG[05-26|22:34:38] Sending request to LXD                   method=GET url=http://unix.socket/1.0 etag=

Here is an strace.

Can you run snap set lxd daemon.debug=true, then restart lxd and attach again here the content of lxd.log?

Unfortunately, I rebooted the server to get LXD going. If this happens again, will update this thread.