I run the following as a user in the
daniel$ lxc list Error: Get "http://unix.socket/1.0": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied
Then I run the same command as root without problem. I see two containers, one stopped and the other running. I stopped the running container. Then I run the
lxc list again as
daniel, and this time the command listed the containers, and I can run other
lxc commands with that user.
I guess that the issue is related with the fact that sockets get broken when the
lxd snap was automatically updated as was suggested in https://github.com/lxc/lxd/issues/3770#issuecomment-776596880. Do you think this issue was related to the automatic update?