LXC container won't start

SomeSysadmin

New Member
Oct 4, 2019
1
0
1
26
Hi,
So this container won't start, here are some logs:

Code:
lxc-start 106 20191004083844.728 INFO     lsm - lsm/lsm.c:lsm_init:50 - LSM security driver AppArmor
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "reject_force_umount  # comment this to allow umount -f;  not recommended"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:do_resolve_add_rule:505 - Set seccomp rule to reject force umounts
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:937 - Added native rule for arch 0 for reject_force_umount action 0(kill)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:do_resolve_add_rule:505 - Set seccomp rule to reject force umounts
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:946 - Added compat rule for arch 1073741827 for reject_force_umount action 0(kill)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:do_resolve_add_rule:505 - Set seccomp rule to reject force umounts
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:956 - Added compat rule for arch 1073741886 for reject_force_umount action 0(kill)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:do_resolve_add_rule:505 - Set seccomp rule to reject force umounts
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:966 - Added native rule for arch -1073741762 for reject_force_umount action 0(kill)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "[all]"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "kexec_load errno 1"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:937 - Added native rule for arch 0 for kexec_load action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:946 - Added compat rule for arch 1073741827 for kexec_load action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:956 - Added compat rule for arch 1073741886 for kexec_load action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:966 - Added native rule for arch -1073741762 for kexec_load action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "open_by_handle_at errno 1"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:937 - Added native rule for arch 0 for open_by_handle_at action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:946 - Added compat rule for arch 1073741827 for open_by_handle_at action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:956 - Added compat rule for arch 1073741886 for open_by_handle_at action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:966 - Added native rule for arch -1073741762 for open_by_handle_at action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "init_module errno 1"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:937 - Added native rule for arch 0 for init_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:946 - Added compat rule for arch 1073741827 for init_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:956 - Added compat rule for arch 1073741886 for init_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:966 - Added native rule for arch -1073741762 for init_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "finit_module errno 1"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:937 - Added native rule for arch 0 for finit_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:946 - Added compat rule for arch 1073741827 for finit_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:956 - Added compat rule for arch 1073741886 for finit_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:966 - Added native rule for arch -1073741762 for finit_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:759 - Processing "delete_module errno 1"
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:937 - Added native rule for arch 0 for delete_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:946 - Added compat rule for arch 1073741827 for delete_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:956 - Added compat rule for arch 1073741886 for delete_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:966 - Added native rule for arch -1073741762 for delete_module action 327681(errno)
lxc-start 106 20191004083844.729 INFO     seccomp - seccomp.c:parse_config_v2:970 - Merging compat seccomp contexts into main context
lxc-start 106 20191004083844.729 INFO     conf - conf.c:run_script_argv:356 - Executing script "/usr/share/lxc/hooks/lxc-pve-prestart-hook" for container "106", config section "lxc"
lxc-start 106 20191004083845.286 DEBUG    conf - conf.c:run_buffer:326 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 106 lxc pre-start with output: unable to open file '/fastboot.tmp.6997' - No space left on device

lxc-start 106 20191004083845.292 DEBUG    conf - conf.c:run_buffer:326 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 106 lxc pre-start with output: error in setup task PVE::LXC::Setup::pre_start_hook

lxc-start 106 20191004083845.295 ERROR    conf - conf.c:run_buffer:335 - Script exited with status 1
lxc-start 106 20191004083845.295 ERROR    start - start.c:lxc_init:861 - Failed to run lxc.hook.pre-start for container "106"
lxc-start 106 20191004083845.295 ERROR    start - start.c:__lxc_start:1944 - Failed to initialize container "106"
lxc-start 106 20191004083845.295 ERROR    lxc_start - tools/lxc_start.c:main:330 - The container failed to start
lxc-start 106 20191004083845.295 ERROR    lxc_start - tools/lxc_start.c:main:336 - Additional information can be obtained by setting the --logfile and --logpriority options

I think this is the root of the problem:
Code:
lxc-start 106 20191004083845.286 DEBUG    conf - conf.c:run_buffer:326 - Script exec /usr/share/lxc/hooks/lxc-pve-prestart-hook 106 lxc pre-start with output: unable to open file '/fastboot.tmp.6997' - No space left on device

Here is df -h (after a pct mount 106):
Code:
udev                    16G       0   16G   0% /dev
tmpfs                  3,2G    324M  2,9G  11% /run
/dev/md2                20G    9,5G  8,7G  53% /
tmpfs                   16G     40M   16G   1% /dev/shm
tmpfs                  5,0M       0  5,0M   0% /run/lock
tmpfs                   16G       0   16G   0% /sys/fs/cgroup
/dev/mapper/pve-data   1,8T    129G  1,6T   8% /var/lib/vz
/dev/fuse               30M     32K   30M   1% /etc/pve
/dev/loop3             7,9G    4,5G  3,0G  61% /var/lib/lxc/106/rootfs

And df -hi:
Code:
udev                   4,0M    518   4,0M    1% /dev
tmpfs                  4,0M   3,4K   4,0M    1% /run
/dev/md2               1,3M   102K   1,2M    9% /
tmpfs                  4,0M     79   4,0M    1% /dev/shm
tmpfs                  4,0M     21   4,0M    1% /run/lock
tmpfs                  4,0M     17   4,0M    1% /sys/fs/cgroup
/dev/mapper/pve-data   115M     51   115M    1% /var/lib/vz
/dev/fuse              9,8K     35   9,8K    1% /etc/pve
/dev/loop3             512K   512K      0  100% /var/lib/lxc/106/rootfs

I can't figure out what needs to be done for it to start. Some help?
 
hi,

Code:
/dev/loop3             512K   512K      0  100% /var/lib/lxc/106/rootfs

you ran out of inodes. if you have a bunch of empty or small sized files in the container somewhere (like /var/lib/php/sessions or something of similar nature), i suggest you delete as much of these as you can. you can also try to increase the inode size using tune2fs
 

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!