User Tools

Site Tools


lxc:stop_lxc

LXC - Stop LXC


LXD does not want to stop

snap refresh lxd

returns:

NFO Waiting for snap.lxd.daemon.unix.socket to stop.
...
INFO Waiting for snap.lxd.daemon.service to stop.
...
INFO snap.lxd.daemon.service refused to stop, killing.
2021-01-05T12:15:24-02:10 ERROR snap.lxd.daemon.unix.socket failed to stop:
timeout
error: cannot perform the following tasks:
 
    Mount snap "lxd" (15359) (snap-lxd-15359.mount failed to stop: timeout)
    Stop snap "lxd" services (snap.lxd.daemon.unix.socket failed to stop: timeout)

Try:

echo "reload" > /var/snap/lxd/common/state
systemctl stop snap.lxd.daemon
systemctl start snap.lxd.daemon.unix.socket
systemctl start snap.lxd.activate

NOTE: Normally lxd.activate should be inactive/exited, unix.socket should always be active and service should be active if LXD is running.

lxc/stop_lxc.txt · Last modified: 2021/02/05 16:50 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki