Hey Community,
I have a container (Rocky Linux) for my smart home system. Unfortunately, the container kind of freezes after an internal backup - I cannot login to the console, and the system is not reachable. Shutdown or reboot stop with errors.
Output from
1. How can I get the container to start again without a complete server reboot?
2. Any idea how to find out why the container crashes? I've seen in the summary that CPU and network traffic went down directly after the backup, altough they have been on a steady level 'til then.
Thanks for your support!
I have a container (Rocky Linux) for my smart home system. Unfortunately, the container kind of freezes after an internal backup - I cannot login to the console, and the system is not reachable. Shutdown or reboot stop with errors.
pct stop 105
stops the container, but it's no possible to power it on again, because the startup script cannot mount rootfs.Output from
lxc-start -lDEBUG -o lxc105start.log -F -n 105
Code:
root@vm-server:~# cat lxc105start.log
lxc-start 105 20220723231434.955 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2267 - Read uid map: type u nsid 0 hostid 100000 range 65536
lxc-start 105 20220723231434.963 INFO confile - ../src/lxc/confile.c:set_config_idmaps:2267 - Read uid map: type g nsid 0 hostid 100000 range 65536
lxc-start 105 20220723231434.963 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
lxc-start 105 20220723231434.963 INFO conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "105", config section "lxc"
lxc-start 105 20220723231435.320 DEBUG conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 105 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: cannot mount /dev/loop0 read-only.
lxc-start 105 20220723231435.397 DEBUG conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 105 lxc pre-start produced output: command 'mount /dev/loop0 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32
lxc-start 105 20220723231435.404 ERROR conf - ../src/lxc/conf.c:run_buffer:321 - Script exited with status 255
lxc-start 105 20220723231435.404 ERROR start - ../src/lxc/start.c:lxc_init:847 - Failed to run lxc.hook.pre-start for container "105"
lxc-start 105 20220723231435.404 ERROR start - ../src/lxc/start.c:__lxc_start:2008 - Failed to initialize container "105"
lxc-start 105 20220723231435.404 INFO conf - ../src/lxc/conf.c:run_script_argv:337 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "105", config section "lxc"
lxc-start 105 20220723231435.677 DEBUG conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 105 lxc post-stop produced output: umount: /var/lib/lxc/105/rootfs: not mounted
lxc-start 105 20220723231435.677 DEBUG conf - ../src/lxc/conf.c:run_buffer:310 - Script exec /usr/share/lxc/hooks/lxc-pve-poststop-hook 105 lxc post-stop produced output: command 'umount --recursive -- /var/lib/lxc/105/rootfs' failed: exit code 1
lxc-start 105 20220723231435.682 ERROR conf - ../src/lxc/conf.c:run_buffer:321 - Script exited with status 1
lxc-start 105 20220723231435.682 ERROR start - ../src/lxc/start.c:lxc_end:988 - Failed to run lxc.hook.post-stop for container "105"
lxc-start 105 20220723231435.682 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:306 - The container failed to start
lxc-start 105 20220723231435.682 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:311 - Additional information can be obtained by setting the --logfile and --logpriority options
1. How can I get the container to start again without a complete server reboot?
2. Any idea how to find out why the container crashes? I've seen in the summary that CPU and network traffic went down directly after the backup, altough they have been on a steady level 'til then.
Thanks for your support!