Failed to initialize container

McGabiz

New Member
May 14, 2023
2
0
1
In short it`s about esphome container. At some moment it glitched and after try to restart it failed:
lxc-start -n 106 -F -l DEBUG -o /tmp/lxc-106.log
lxc-start: 106: ../src/lxc/conf.c: run_buffer: 322 Script exited with status 1 lxc-start: 106: ../src/lxc/start.c: lxc_init: 844 Failed to run lxc.hook.pre-start for container "106" lxc-start: 106: ../src/lxc/start.c: __lxc_start: 2027 Failed to initialize container "106" lxc-start: 106: ../src/lxc/tools/lxc_start.c: main: 306 The container failed to start lxc-start: 106: ../src/lxc/tools/lxc_start.c: main: 311 Additional information can be obtained by setting the --logfile and --logpriority options

cat /tmp/lxc-106.log
lxc-start 106 20230514200705.285 INFO lsm - ../src/lxc/lsm/lsm.c:lsm_init_static:38 - Initialized LSM security driver AppArmor lxc-start 106 20230514200705.285 INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "106", config section "lxc" lxc-start 106 20230514200705.664 DEBUG conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 106 lxc pre-start produced output: closing file '/etc/network/interfaces.tmp.35554' failed - No space left on device lxc-start 106 20230514200705.666 DEBUG conf - ../src/lxc/conf.c:run_buffer:311 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 106 lxc pre-start produced output: error in setup task PVE::LXC::Setup::pre_start_hook lxc-start 106 20230514200705.682 ERROR conf - ../src/lxc/conf.c:run_buffer:322 - Script exited with status 1 lxc-start 106 20230514200705.683 ERROR start - ../src/lxc/start.c:lxc_init:844 - Failed to run lxc.hook.pre-start for container "106" lxc-start 106 20230514200705.683 ERROR start - ../src/lxc/start.c:__lxc_start:2027 - Failed to initialize container "106" lxc-start 106 20230514200705.683 INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxcfs/lxc.reboot.hook" for container "106", config section "lxc" lxc-start 106 20230514200706.186 INFO conf - ../src/lxc/conf.c:run_script_argv:338 - Executing script "/usr/share/lxc/hooks/lxc-pve-poststop-hook" for container "106", config section "lxc" lxc-start 106 20230514200706.847 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:306 - The container failed to start lxc-start 106 20230514200706.847 ERROR lxc_start - ../src/lxc/tools/lxc_start.c:main:311 - Additional information can be obtained by setting the --logfile and --logpriority options

df -h
Filesystem Size Used Avail Use% Mounted on udev 3.8G 0 3.8G 0% /dev tmpfs 784M 1.2M 783M 1% /run /dev/mapper/pve-root 39G 5.9G 31G 16% / tmpfs 3.9G 46M 3.8G 2% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/sda2 511M 336K 511M 1% /boot/efi /dev/fuse 128M 24K 128M 1% /etc/pve tmpfs 784M 0 784M 0% /run/user/0
pct config 106
arch: amd64 cores: 2 description: # ESPHome LXC%0A ### https%3A//tteck.github.io/Proxmox/%0A <a href='https%3A//ko-fi.com/D1D7EP4GF'><img src='https%3A//img.shields.io/badge/%E2%98%95-Buy me a coffee-red' /></a>%0A features: nesting=1 hostname: esphome memory: 1024 net0: name=eth0,bridge=vmbr0,gw=192.168.8.1,hwaddr=FA:73:6F:2D:F2:F8,ip=192.168.8.17/24,type=veth onboot: 1 ostype: debian rootfs: local-lvm:vm-106-disk-0,size=4G swap: 512 lxc.cgroup2.devices.allow: a lxc.cap.drop: lxc.cgroup2.devices.allow: c 188:* rwm lxc.cgroup2.devices.allow: c 189:* rwm lxc.mount.entry: /dev/serial/by-id dev/serial/by-id none bind,optional,create=dir lxc.mount.entry: /dev/ttyUSB0 dev/ttyUSB0 none bind,optional,create=file lxc.mount.entry: /dev/ttyUSB1 dev/ttyUSB1 none bind,optional,create=file lxc.mount.entry: /dev/ttyACM0 dev/ttyACM0 none bind,optional,create=file lxc.mount.entry: /dev/ttyACM1 dev/ttyACM1 none bind,optional,create=file

Any ideas how to fix it?
 
Thx.
Used:
pct resize <vmid> <disk> <size> [OPTIONS] where disk is usually rootfs and size can use suffixes like 500G. More details in the help: pct help resize
 

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!