Hi there.
First of all, I’m new to LXD.
Yesterday I successfully installed LXD from snap on Debian 10. Today, new machine, plain new fresh Debian 10 just with update and I still can’t run LXD.
- installed snapd
- installed LXD with
# snap install lxd
root@morfej:~# snap install lxd
lxd 4.0.0 from Canonical✓ installed
root@morfej:/tmp# snap list
Name Version Rev Tracking Publisher Notes
core18 20200311 1705 stable canonical✓ base
lxd 4.0.0 14623 stable canonical✓ -
root@morfej:~# /snap/bin/lxd init
Error: Failed to connect to local LXD: Get "http://unix.socket/1.0": read unix @->/var/snap/lxd/common/lxd/unix.socket: read: connection reset by peer
After reboot, still errors.
I tried following:
root@morfej:/tmp# snap start lxd
error: cannot perform the following tasks:
- start of [lxd.activate lxd.daemon] (# systemctl start snap.lxd.activate.service snap.lxd.daemon.service
Job for snap.lxd.activate.service failed because the control process exited with error code.
See "systemctl status snap.lxd.activate.service" and "journalctl -xe" for details.
)
- start of [lxd.activate lxd.daemon] (exit status 1)
root@morfej:/tmp# systemctl status snap.lxd.activate.service
● snap.lxd.activate.service - Service for snap application lxd.activate
Loaded: loaded (/etc/systemd/system/snap.lxd.activate.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2020-04-16 23:13:42 UTC; 49s ago
Process: 1981 ExecStart=/usr/bin/snap run lxd.activate (code=exited, status=1/FAILURE)
Main PID: 1981 (code=exited, status=1/FAILURE)
Apr 16 23:13:39 morfej systemd[1]: Starting Service for snap application lxd.activate...
Apr 16 23:13:39 morfej lxd.activate[1981]: => Starting LXD activation
Apr 16 23:13:39 morfej lxd.activate[1981]: ==> Loading snap configuration
Apr 16 23:13:39 morfej lxd.activate[1981]: ==> Checking for socket activation support
Apr 16 23:13:42 morfej lxd.activate[1981]: ===> System doesn't support socket activation, starting LXD now
Apr 16 23:13:42 morfej lxd.activate[1981]: Job for snap.lxd.daemon.service failed because the control process exited with error code.
Apr 16 23:13:42 morfej lxd.activate[1981]: See "systemctl status snap.lxd.daemon.service" and "journalctl -xe" for details.
Apr 16 23:13:42 morfej systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Apr 16 23:13:42 morfej systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Apr 16 23:13:42 morfej systemd[1]: Failed to start Service for snap application lxd.activate.
Even more debug info:
root@morfej:/tmp# systemctl stop snap.lxd.daemon.service snap.lxd.daemon.unix.socket
root@morfej:/tmp# pkill -9 lxd
root@morfej:/tmp# lxd --debug --group lxd
DBUG[04-16|23:02:36] Connecting to a local LXD over a Unix socket
DBUG[04-16|23:02:36] Sending request to LXD method=GET url=http://unix.socket/1.0 etag=
INFO[04-16|23:02:36] LXD 4.0.0 is starting in normal mode path=/var/snap/lxd/common/lxd
INFO[04-16|23:02:36] Kernel uid/gid map:
INFO[04-16|23:02:36] - u 0 0 4294967295
INFO[04-16|23:02:36] - g 0 0 4294967295
INFO[04-16|23:02:36] Configured LXD uid/gid map:
INFO[04-16|23:02:36] - u 0 1000000 1000000000
INFO[04-16|23:02:36] - g 0 1000000 1000000000
INFO[04-16|23:02:36] Kernel features:
DBUG[04-16|23:02:36] Failed to attach to host network namespace
INFO[04-16|23:02:36] - netnsid-based network retrieval: no
INFO[04-16|23:02:36] - uevent injection: no
INFO[04-16|23:02:36] - seccomp listener: no
INFO[04-16|23:02:36] - seccomp listener continue syscalls: no
INFO[04-16|23:02:36] - unprivileged file capabilities: yes
INFO[04-16|23:02:36] - cgroup layout: hybrid
WARN[04-16|23:02:36] - Couldn't find the CGroup hugetlb controller, hugepage limits will be ignored
WARN[04-16|23:02:36] - Couldn't find the CGroup memory swap accounting, swap limits will be ignored
INFO[04-16|23:02:36] - shiftfs support: no
INFO[04-16|23:02:36] Initializing local database
DBUG[04-16|23:02:36] Initializing database gateway
DBUG[04-16|23:02:36] Start database node address= role=voter id=1
EROR[04-16|23:02:36] Failed to start the daemon: Failed to autobind unix socket: listen unix : listen: operation not permitted
INFO[04-16|23:02:36] Starting shutdown sequence
DBUG[04-16|23:02:36] Not unmounting temporary filesystems (containers are still running)
Error: Failed to autobind unix socket: listen unix : listen: operation not permitted
I reinstalled OS from scratch, repeated snapd and lxd installation, exactly same thing happening. Any clue what’s going on and how to fix it?
Thanks.