You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While this is happening it seems that snapd is restarting over and over trying to set up the lxd daemon (in the container) but it can't do it because lxd was never installed so the service it is trying to start fails
root@metabox-local-jammy-source-current:~# journalctl -u snapd
[...] #basically looping journal
Dec 19 16:22:41 metabox-local-jammy-source-current systemd[1]: Started Snap Daemon.
Dec 19 16:22:44 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:22:46 metabox-local-jammy-source-current snapd[100073]: daemon.go:548: gracefully waiting for running hooks
Dec 19 16:22:46 metabox-local-jammy-source-current snapd[100073]: daemon.go:550: done waiting for running hooks
Dec 19 16:22:49 metabox-local-jammy-source-current snapd[100073]: overlord.go:518: Released state lock file
Dec 19 16:22:49 metabox-local-jammy-source-current systemd[1]: snapd.service: Deactivated successfully.
Dec 19 16:22:49 metabox-local-jammy-source-current systemd[1]: snapd.service: Consumed 7.190s CPU time.
Dec 19 16:22:49 metabox-local-jammy-source-current systemd[1]: snapd.service: Scheduled restart job, restart counter is at 158.
Dec 19 16:22:49 metabox-local-jammy-source-current systemd[1]: Stopped Snap Daemon.
Dec 19 16:22:49 metabox-local-jammy-source-current systemd[1]: snapd.service: Consumed 7.190s CPU time.
Dec 19 16:22:49 metabox-local-jammy-source-current systemd[1]: Starting Snap Daemon...
Dec 19 16:22:49 metabox-local-jammy-source-current snapd[100551]: overlord.go:274: Acquiring state lock file
Dec 19 16:22:49 metabox-local-jammy-source-current snapd[100551]: overlord.go:279: Acquired state lock file
Dec 19 16:22:50 metabox-local-jammy-source-current snapd[100551]: daemon.go:250: started snapd/2.66.1+22.04 (series 16; classic; devmode) ubuntu/22.04 (amd64) linu>
Dec 19 16:22:50 metabox-local-jammy-source-current snapd[100551]: daemon.go:353: adjusting startup timeout by 35s (pessimistic estimate of 30s plus 5s per snap)
Dec 19 16:22:50 metabox-local-jammy-source-current snapd[100551]: backends.go:58: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, >
Dec 19 16:22:50 metabox-local-jammy-source-current systemd[1]: Started Snap Daemon.
Dec 19 16:22:55 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:01 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:05 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:12 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:13 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:13 metabox-local-jammy-source-current snapd[100551]: taskrunner.go:299: Change 152 task (Start snap "lxd" (31333) services) failed: systemctl command >
Dec 19 16:23:13 metabox-local-jammy-source-current snapd[100551]: Job for snap.lxd.activate.service failed because the control process exited with error code.
Dec 19 16:23:13 metabox-local-jammy-source-current snapd[100551]: See "systemctl status snap.lxd.activate.service" and "journalctl -xeu snap.lxd.activate.service" >
Dec 19 16:23:18 metabox-local-jammy-source-current snapd[100551]: services.go:1128: RemoveSnapServices - socket snap.lxd.daemon.unix.socket
Dec 19 16:23:18 metabox-local-jammy-source-current snapd[100551]: services.go:1152: RemoveSnapServices - disabling snap.lxd.daemon.service
Dec 19 16:23:18 metabox-local-jammy-source-current snapd[100551]: services.go:1128: RemoveSnapServices - socket snap.lxd.user-daemon.unix.socket
Dec 19 16:23:18 metabox-local-jammy-source-current snapd[100551]: services.go:1152: RemoveSnapServices - disabling snap.lxd.user-daemon.service
Dec 19 16:23:18 metabox-local-jammy-source-current snapd[100551]: services.go:1152: RemoveSnapServices - disabling snap.lxd.activate.service
Dec 19 16:23:19 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:20 metabox-local-jammy-source-current snapd[100551]: copydata.go:98: Cannot remove common data directories for "lxd": unlinkat /var/snap/lxd/common/va>
Dec 19 16:23:20 metabox-local-jammy-source-current snapd[100551]: taskrunner.go:299: Change 152 task (Copy snap "lxd" data) failed: unlinkat /var/snap/lxd/common/v>
Dec 19 16:23:21 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:25 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:29 metabox-local-jammy-source-current snapd[100551]: daemon.go:548: gracefully waiting for running hooks
Dec 19 16:23:29 metabox-local-jammy-source-current snapd[100551]: daemon.go:550: done waiting for running hooks
Dec 19 16:23:30 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:31 metabox-local-jammy-source-current snapd[100551]: overlord.go:518: Released state lock file
Dec 19 16:23:31 metabox-local-jammy-source-current systemd[1]: snapd.service: Deactivated successfully.
Dec 19 16:23:31 metabox-local-jammy-source-current systemd[1]: snapd.service: Consumed 58.129s CPU time.
Dec 19 16:23:32 metabox-local-jammy-source-current systemd[1]: snapd.service: Scheduled restart job, restart counter is at 159.
Dec 19 16:23:32 metabox-local-jammy-source-current systemd[1]: Stopped Snap Daemon.
Dec 19 16:23:32 metabox-local-jammy-source-current systemd[1]: snapd.service: Consumed 58.129s CPU time.
Dec 19 16:23:32 metabox-local-jammy-source-current systemd[1]: Starting Snap Daemon...
Dec 19 16:23:32 metabox-local-jammy-source-current snapd[101368]: overlord.go:274: Acquiring state lock file
Dec 19 16:23:32 metabox-local-jammy-source-current snapd[101368]: overlord.go:279: Acquired state lock file
Dec 19 16:23:32 metabox-local-jammy-source-current snapd[101368]: daemon.go:250: started snapd/2.66.1+22.04 (series 16; classic; devmode) ubuntu/22.04 (amd64) linu>
Dec 19 16:23:32 metabox-local-jammy-source-current snapd[101368]: daemon.go:353: adjusting startup timeout by 30s (pessimistic estimate of 30s plus 5s per snap)
Dec 19 16:23:32 metabox-local-jammy-source-current snapd[101368]: backends.go:58: AppArmor status: apparmor is enabled but some kernel features are missing: dbus, >
Dec 19 16:23:33 metabox-local-jammy-source-current systemd[1]: Started Snap Daemon.
Dec 19 16:23:36 metabox-local-jammy-source-current systemd[1]: /lib/systemd/system/snapd.service:23: Unknown key name 'RestartMode' in section 'Service', ignoring.
Dec 19 16:23:39 metabox-local-jammy-source-current snapd[101368]: daemon.go:548: gracefully waiting for running hooks
Dec 19 16:23:39 metabox-local-jammy-source-current snapd[101368]: daemon.go:550: done waiting for running hooks
Dec 19 16:23:41 metabox-local-jammy-source-current snapd[101368]: overlord.go:518: Released state lock file
Dec 19 16:23:41 metabox-local-jammy-source-current systemd[1]: snapd.service: Deactivated successfully.
Dec 19 16:23:41 metabox-local-jammy-source-current systemd[1]: snapd.service: Consumed 7.602s CPU time.
Dec 19 16:23:42 metabox-local-jammy-source-current systemd[1]: snapd.service: Scheduled restart job, restart counter is at 160.
Dec 19 16:23:42 metabox-local-jammy-source-current systemd[1]: Stopped Snap Daemon.
root@metabox-local-jammy-source-current:~# journalctl -xeu snap.lxd.activate.service
[...] # looping
Dec 19 16:25:52 metabox-local-jammy-source-current systemd[1]: Starting Service for snap application lxd.activate...
Dec 19 16:25:52 metabox-local-jammy-source-current systemd[1]: snap.lxd.activate.service: Main process exited, code=exited, status=1/FAILURE
Dec 19 16:25:52 metabox-local-jammy-source-current systemd[1]: snap.lxd.activate.service: Failed with result 'exit-code'.
Dec 19 16:25:52 metabox-local-jammy-source-current systemd[1]: Failed to start Service for snap application lxd.activate.
Required information
Distribution: ArchLinux
Distribution version: N/A
The output of "snap list --all lxd core20 core22 core24 snapd":
The output of "lxc info" or if that fails:
Issue description
Initializing a lxd container never terminates on my personal machine. Cloud init doesn't seem to terminate remaining in the status running.
While this is happening it seems that snapd is restarting over and over trying to set up the lxd daemon (in the container) but it can't do it because lxd was never installed so the service it is trying to start fails
Steps to reproduce
lxc launch ubuntu:jammy jammy
lxc shell jammy
cloud-init staus --long
Information to attach
dmesg
)lxc info NAME --show-log
) (Not truncated, actually no logs)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)The text was updated successfully, but these errors were encountered: