Information
- Distribution is Ubuntu 18.04 LTS
- LXD 3.0.3 (default version)
- Three nodes cluster
Machine1 : 192.168.89.164
,Machine2 : 192.168.89.162
,Machine3 : 192.168.89.163
Description
Hello,
This morning, I started my nodes and I tried to execute the command “lxc list” and it did not respond.
Any command starting with “lxc” doesn’t work.
The only command I did yesterday was “lxc config set core.https_address :8443” on the 3 nodes to be able to manage my cluster remotely with “lxc remote …”.
When I try to do “sudo systemctl start lxd.service”, it doesn’t react.
I do not see how to resolve this error. Below I put errors messages:
FBorate@Machine2:~$ sudo systemctl start lxd
Job for lxd.service failed because the control process exited with error code.
See “systemctl status lxd.service” and “journalctl -xe” for details.
FBorate@Machine2:~$ systemctl status lxd.service
● lxd.service - LXD - main daemon
Loaded: loaded (/lib/systemd/system/lxd.service; indirect; vendor preset: enabled)
Active: activating (start-post) since Tue 2020-05-12 09:36:18 CEST; 24s ago
Docs: man:lxd(1)
Process: 2100 ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-apparmor-load (code=exited, status=0/SUCCESS)
Main PID: 2119 (lxd); Control PID: 2120 (lxd)
Tasks: 18
CGroup: /system.slice/lxd.service
├─2119 /usr/lib/lxd/lxd --group lxd --logfile=/var/log/lxd/lxd.log
└─2120 /usr/lib/lxd/lxd waitready --timeout=600
mai 12 09:36:18 Machine2 systemd[1]: Starting LXD - main daemon...
mai 12 09:36:18 Machine2 lxd[2119]: t=2020-05-12T09:36:18+0200 lvl=warn msg="CGroup memory swap accounting is disabled, swap limit
...skipping...
● lxd.service - LXD - main daemon
Loaded: loaded (/lib/systemd/system/lxd.service; indirect; vendor preset: enabled)
Active: activating (start-post) since Tue 2020-05-12 09:36:18 CEST; 24s ago
Docs: man:lxd(1)
Process: 2100 ExecStartPre=/usr/lib/x86_64-linux-gnu/lxc/lxc-apparmor-load (code=exited, status=0/SUCCESS)
Main PID: 2119 (lxd); Control PID: 2120 (lxd)
Tasks: 18
CGroup: /system.slice/lxd.service
├─2119 /usr/lib/lxd/lxd --group lxd --logfile=/var/log/lxd/lxd.log
└─2120 /usr/lib/lxd/lxd waitready --timeout=600
mai 12 09:36:18 Machine2 systemd[1]: Starting LXD - main daemon...
mai 12 09:36:18 Machine2 lxd[2119]: t=2020-05-12T09:36:18+0200 lvl=warn msg="CGroup memory swap accounting is disabled, swap limit
FBorate@Machine2:~$ journalctl -xe
mai 12 09:26:37 Machine2 systemd-timesyncd[558]: Network configuration changed, trying to establish connection.
mai 12 09:26:37 Machine2 systemd-timesyncd[558]: Synchronized to time server 91.189.89.199:123 (ntp.ubuntu.com).
mai 12 09:27:46 Machine2 lxd[2019]: t=2020-05-12T09:27:46+0200 lvl=warn msg="Failed connecting to global database (attempt 6): failed to create dqlite connection: no available dqlite leader server found"
...
mai 12 09:29:31 Machine2 sudo[1995]: pam_unix(sudo:session): session closed for user root
mai 12 09:29:42 Machine2 lxd[2019]: t=2020-05-12T09:29:42+0200 lvl=warn msg="Failed connecting to global database (attempt 15): failed to create dqlite connection: no available dqlite leader server found"
...
mai 12 09:36:03 Machine2 sudo[2083]: darochafa : TTY=pts/0 ; PWD=/home/darochafa ; USER=root ; COMMAND=/bin/systemctl start lxd
mai 12 09:36:03 Machine2 sudo[2083]: pam_unix(sudo:session): session opened for user root by darochafa(uid=0)
mai 12 09:36:06 Machine2 lxd[2019]: t=2020-05-12T09:36:06+0200 lvl=warn msg="Failed connecting to global database (attempt 45): failed to create dqlite connection: no available dqlite leader server found"
mai 12 09:36:17 Machine2 lxd[2020]: Error: LXD still not running after 600s timeout (<nil>)
mai 12 09:36:17 Machine2 systemd[1]: lxd.service: Control process exited, code=exited status=1
mai 12 09:36:17 Machine2 systemd[1]: lxd.service: Failed with result 'exit-code'.
mai 12 09:36:17 Machine2 systemd[1]: Failed to start LXD - main daemon.
-- Subject: L'unité (unit) lxd.service a échoué
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) lxd.service a échoué, avec le résultat RESULT.
mai 12 09:36:17 Machine2 sudo[2083]: pam_unix(sudo:session): session closed for user root
mai 12 09:36:18 Machine2 systemd[1]: lxd.service: Service hold-off time over, scheduling restart.
mai 12 09:36:18 Machine2 systemd[1]: lxd.service: Scheduled restart job, restart counter is at 1.
-- Subject: Le redémarrage automatique d'une unité (unit) a été planifié
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Le redémarrage automatique de l'unité (unit) lxd.service a été planifié, en
-- raison de sa configuration avec le paramètre Restart=.
mai 12 09:36:18 Machine2 systemd[1]: Stopped LXD - main daemon.
-- Subject: L'unité (unit) lxd.service a terminé son arrêt
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) lxd.service a terminé son arrêt.
mai 12 09:36:18 Machine2 systemd[1]: Starting LXD - main daemon...
-- Subject: L'unité (unit) lxd.service a commencé à démarrer
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- L'unité (unit) lxd.service a commencé à démarrer.
mai 12 09:36:18 Machine2 audit[2114]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/bin/lxc-start" pid=2114 comm="apparmor_parser"
mai 12 09:36:18 Machine2 kernel: audit: type=1400 audit(1589268978.232:42): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/usr/bin/lxc-start" pid=2114 comm="apparmor_par
mai 12 09:36:18 Machine2 audit[2118]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default" pid=2118 comm="apparmor_parser"
mai 12 09:36:18 Machine2 audit[2118]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-cgns" pid=2118 comm="apparmor_parser"
mai 12 09:36:18 Machine2 audit[2118]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-mounting" pid=2118 comm="apparmor_parser"
mai 12 09:36:18 Machine2 audit[2118]: AVC apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-nesting" pid=2118 comm="apparmor_parser"
mai 12 09:36:18 Machine2 kernel: audit: type=1400 audit(1589268978.240:43): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default" pid=2118 comm="apparmor_
mai 12 09:36:18 Machine2 kernel: audit: type=1400 audit(1589268978.240:44): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-cgns" pid=2118 comm="appa
mai 12 09:36:18 Machine2 kernel: audit: type=1400 audit(1589268978.240:45): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-mounting" pid=2118 c
mai 12 09:36:18 Machine2 kernel: audit: type=1400 audit(1589268978.240:46): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="lxc-container-default-with-nesting" pid=2118 co
mai 12 09:36:18 Machine2 lxd[2119]: t=2020-05-12T09:36:18+0200 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
FBorate@Machine2:~$ cat /var/log/lxd/lxd.log
t=2020-05-12T07:46:00+0000 lvl=info msg="LXD 3.0.3 is starting in normal mode" path=/var/lib/lxd
t=2020-05-12T07:46:00+0000 lvl=info msg="Kernel uid/gid map:"
t=2020-05-12T07:46:00+0000 lvl=info msg=" - u 0 0 4294967295"
t=2020-05-12T07:46:00+0000 lvl=info msg=" - g 0 0 4294967295"
t=2020-05-12T07:46:00+0000 lvl=info msg="Configured LXD uid/gid map:"
t=2020-05-12T07:46:01+0000 lvl=info msg=" - u 0 100000 1000000000"
t=2020-05-12T07:46:01+0000 lvl=info msg=" - g 0 100000 1000000000"
t=2020-05-12T07:46:01+0000 lvl=warn msg="CGroup memory swap accounting is disabled, swap limits will be ignored."
t=2020-05-12T07:46:01+0000 lvl=info msg="Kernel features:"
t=2020-05-12T07:46:01+0000 lvl=info msg=" - netnsid-based network retrieval: no"
t=2020-05-12T07:46:01+0000 lvl=info msg=" - unprivileged file capabilities: yes"
t=2020-05-12T07:46:01+0000 lvl=info msg="Initializing local database"
t=2020-05-12T07:46:01+0000 lvl=info msg="Starting /dev/lxd handler:"
t=2020-05-12T07:46:01+0000 lvl=info msg=" - binding devlxd socket" socket=/var/lib/lxd/devlxd/sock
t=2020-05-12T07:46:01+0000 lvl=info msg="REST API daemon:"
t=2020-05-12T07:46:01+0000 lvl=info msg=" - binding Unix socket" inherited=true socket=/var/lib/lxd/unix.socket
t=2020-05-12T07:46:01+0000 lvl=info msg=" - binding TCP socket" socket=[::]:8443
t=2020-05-12T07:46:01+0000 lvl=info msg="Initializing global database"
t=2020-05-12T07:47:00+0000 lvl=warn msg="Failed connecting to global database (attempt 6): failed to create dqlite connection: no available dqlite leader server found"
t=2020-05-12T07:47:13+0000 lvl=warn msg="Failed connecting to global database (attempt 7): failed to create dqlite connection: no available dqlite leader server found"
... (attempt 45)