Error: Get http://unix.socket/1.0: dial unix /var/snap/lxd/common/lxd/unix.socket: connect: connection refused
after doing:
systemctl stop snap.lxd.daemon.unix.socket
and
lxd --debug --group lxd
I see this:
DBUG[03-18|13:26:17] Connecting to a local LXD over a Unix socket DBUG[03-18|13:26:17] Sending request to LXD method=GET url=http://unix.socket/1.0 etag= INFO[03-18|13:26:17] LXD 3.22 is starting in normal mode path=/var/snap/lxd/common/lxd EROR[03-18|13:26:17] Failed to start the daemon: Failed to chmod dir /var/snap/lxd/common/lxd/backups: chmod /var/snap/lxd/common/lxd/backups: no such file or directory INFO[03-18|13:26:17] Starting shutdown sequence DBUG[03-18|13:26:17] Not unmounting temporary filesystems (containers are still running) Error: Failed to chmod dir /var/snap/lxd/common/lxd/backups: chmod /var/snap/lxd/common/lxd/backups: no such file or directory
while
I have default lxd snap installed, and it auto updates. So I guess it was the latest one.
these are the commands
lxc storage create bkp_pool dir source=/data/lxdbkp
lxc storage volume create bkp_pool bkp_vol
lxc config set storage.backups_volume bkp_pool/bkp_vol
after that I triggered export and it used /data/lxdbkp which is on another partition fine.
I’m sorry, I don’t understand which ordering issue.
The thing that puzzles me the most is that it actually worked…then it didn’t
In the meantime, I suspended my laptop couple of times, never restarted.
just one question, the storage/volumes configuration and all the options, everything is in dqlite database?
I’m asking because if I need to fix the config while lxd is unresponsive, how I can do that?
The database documentation covers this.
There is a patch.global.sql file that you can write in the database directory, statements included in it will be run immediately on startup.