After I restart Linux, an error is reported. What should I do?
sincerely
Can you show journalctl -u snap.lxd.daemon -n 50
I deleted pool1 with command “ sudo zpool destroy -f <zpool_name> ”。I’ve solved the problem by following this advice https://discuss.linuxcontainers.org/t/lxd-error-get-http-unix-socket-1-0-dial-unix-var-snap-lxd-common-lxd-unix-socket-connect-connection-refused/12305:
Create a file /var/snap/lxd/common/lxd/database/patch.global.sql
:
DELETE FROM storage_pools WHERE name = "pool1";
Then reload LXD:
sudo systemctl restart snap.lxd.daemon
Yep, that would prevent LXD from starting up.
The general advice is to not delete storage pools from outside of LXD, instead use lxc storage delete <pool>
and let LXD clear up both the storage pool and the config.
Thank you, I can use LXD to conveniently manage workstation now .
got a similar error today, my lxd used to be 5.11, now it automatically upgraded to 5.18, and got this error:
Error: Get “http://unix.socket/1.0”: EOF
tried to revert back, but no revision available, so I refresh back to:
sudo snap refresh --channel=5.0 lxd
and now getting this error:
Error: Get “http://unix.socket/1.0”: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused
how to proceed now? thanks.
Hi, please can you post over at Support - Ubuntu Community Hub with the contents of /var/snap/lxd/common/lxd/logs/lxd.log
once refreshed back to LXD 5.18.
You cannot switch back to the 5.0 LTS release from the monthly 5.x releases though.