Can only start Container once per Restarting Proxmox node - what is the problem with /dev/loop0 here?

Sep 21, 2023
6
0
1
Hey folks,

i have a simple container but i can only start it once. After having it stopped, i cannot start it anymore if i am not restarting the node.
See the error executing "pct start 101 --debug":

Code:
run_buffer: 571 Script exited with status 255
lxc_init: 845 Failed to run lxc.hook.pre-start for container "101"
__lxc_start: 2034 Failed to initialize container "101"
0 hostid 100000 range 65536
INFO     lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor
INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "101", config section "lxc"
DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 101 lxc pre-start produced output: mount: /var/lib/lxc/.pve-staged-mounts/rootfs: can't read superblock on /dev/loop0.
dmesg(1) may have more information after failed mount system call.

DEBUG    utils - ../src/lxc/utils.c:run_buffer:560 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 101 lxc pre-start produced output: command 'mount /dev/loop0 /var/lib/lxc/.pve-staged-mounts/rootfs' failed: exit code 32

ERROR    utils - ../src/lxc/utils.c:run_buffer:571 - Script exited with status 255
ERROR    start - ../src/lxc/start.c:lxc_init:845 - Failed to run lxc.hook.pre-start for container "101"
ERROR    start - ../src/lxc/start.c:__lxc_start:2034 - Failed to initialize container "101"
INFO     utils - ../src/lxc/utils.c:run_script_argv:587 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "101", config section "lxc"
startup for container '101' failed

it got problems mounting dev/loop0 to that directory /var/lib/lxc/.pve-staged-mounts/rootfs - well, any idea why it works once but not twice?
Find dmesg after the error occurs:
Code:
[249260.309413] loop0: detected capacity change from 0 to 16777216
[249260.356260] EXT4-fs warning (device loop0): ext4_multi_mount_protect:328: MMP interval 42 higher than expected, please wait.

[249303.368824] EXT4-fs warning (device loop0): ext4_clear_journal_err:6289: Filesystem error recorded from previous mount: IO failure
[249303.369617] I/O error, dev loop0, sector 0 op 0x1:(WRITE) flags 0x800 phys_seg 1 prio class 0
[249303.369621] Buffer I/O error on dev loop0, logical block 0, lost sync page write
[249303.369640] EXT4-fs (loop0): I/O error while writing superblock
[249303.369648] Aborting journal on device loop0-8.
[249308.474596] CIFS: VFS: No writable handle in writepages rc=-9

I really dunno what is the problem here though i am not an expert in Linux either, can someone help here?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!