I have multiple systems where i have lxd installed on via snap, but on one system i keep getting an error once in a while regarding the unix.socket which does not have the correct permissions.
Error: Get "http://unix.socket/1.0": dial unix /var/snap/lxd/common/lxd/unix.socket: connect: permission denied
At that time the permission are the following:
srw-rw---- 1 root root 0 May 31 20:09 /var/snap/lxd/common/lxd/unix.socket
Hi @BlackDex,
I’m not so sure but you can change that file /etc/systemd/system/snap.lxd.daemon.unix.socket and add the
SocketUser=root
SocketGroup=lxd
parameters after the SocketMode
After changing the parameter make sure daemon-reload should be executed.
Regards.
Ok, i checked the systemctl list-unit-files | grep snap and it looks like for some reason it was disabled there. I have now enabled it again, and it show the correct status now.
I will check if there are some other discrepancies as well.