CT instant death after apt-get upgrade (testing/unstable source)

pmloikju

New Member
Nov 28, 2014
16
0
1
Hi,

I use Proxmox VE 4 and debian 7 template (get here https://openvz.org/Download/template/precreated). Under Proxmox VE 3, i used to use testing or unstable sources and no problem with packet or update.

Under Proxmox 4, when i use testing source and do an upgrade "apt-get upgrade", after rebooting CT got an error and no boot.

Code:
[COLOR=#000000]deb http://ftp.fr.debian.org/debian testing main contrib non-free
[/COLOR][COLOR=#000000]deb-src http://ftp.fr.debian.org/debian testing main contrib non-free[/COLOR]

This is error log on pct start command:

Code:
lxc-start 1445965506.963 INFO     lxc_start_ui - lxc_start.c:main:264 - using rcfile /var/lib/lxc/103/config
      lxc-start 1445965506.963 WARN     lxc_confile - confile.c:config_pivotdir:1825 - lxc.pivotdir is ignored.  It will soon become an error.
      lxc-start 1445965506.964 WARN     lxc_cgmanager - cgmanager.c:cgm_get:993 - do_cgm_get exited with error
      lxc-start 1445965506.964 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .reject_force_umount  # comment this to allow umount -f;  not recommended.
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:410 - Adding native rule for reject_force_umount action 0
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts


      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:413 - Adding compat rule for reject_force_umount action 0
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:do_resolve_add_rule:210 - Setting seccomp rule to reject force umounts


      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .[all].
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .kexec_load errno 1.
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:410 - Adding native rule for kexec_load action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:413 - Adding compat rule for kexec_load action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .open_by_handle_at errno 1.
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:410 - Adding native rule for open_by_handle_at action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:413 - Adding compat rule for open_by_handle_at action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .init_module errno 1.
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:410 - Adding native rule for init_module action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:413 - Adding compat rule for init_module action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .finit_module errno 1.
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:410 - Adding native rule for finit_module action 327681
      lxc-start 1445965506.965 WARN     lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
      lxc-start 1445965506.965 WARN     lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:413 - Adding compat rule for finit_module action 327681
      lxc-start 1445965506.965 WARN     lxc_seccomp - seccomp.c:do_resolve_add_rule:227 - Seccomp: got negative # for syscall: finit_module
      lxc-start 1445965506.965 WARN     lxc_seccomp - seccomp.c:do_resolve_add_rule:228 - This syscall will NOT be blacklisted
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:318 - processing: .delete_module errno 1.
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:410 - Adding native rule for delete_module action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:413 - Adding compat rule for delete_module action 327681
      lxc-start 1445965506.965 INFO     lxc_seccomp - seccomp.c:parse_config_v2:420 - Merging in the compat seccomp ctx into the main one
      lxc-start 1445965506.965 INFO     lxc_conf - conf.c:run_script_argv:356 - Executing script '/usr/share/lxc/hooks/lxc-pve-prestart-hook' for container '103', config section 'lxc'
      lxc-start 1445965507.273 DEBUG    lxc_start - start.c:setup_signal_fd:262 - sigchild handler set
      lxc-start 1445965507.274 DEBUG    lxc_console - console.c:lxc_console_peer_default:500 - opening /dev/tty for console peer
      lxc-start 1445965507.274 DEBUG    lxc_console - console.c:lxc_console_peer_default:506 - using '/dev/tty' as console
      lxc-start 1445965507.274 DEBUG    lxc_console - console.c:lxc_console_sigwinch_init:179 - 24196 got SIGWINCH fd 9
      lxc-start 1445965507.274 DEBUG    lxc_console - console.c:lxc_console_winsz:88 - set winsz dstfd:6 cols:146 rows:47
      lxc-start 1445965507.274 INFO     lxc_start - start.c:lxc_init:454 - '103' is initialized
      lxc-start 1445965507.274 DEBUG    lxc_start - start.c:__lxc_start:1145 - Not dropping cap_sys_boot or watching utmp
      lxc-start 1445965507.275 INFO     lxc_conf - conf.c:run_script:406 - Executing script '/usr/share/lxc/lxcnetaddbr' for container '103', config section 'net'
      lxc-start 1445965507.578 DEBUG    lxc_conf - conf.c:instantiate_veth:2702 - instantiated veth 'veth103i0/vethMM06XP', index is '88'
      lxc-start 1445965507.578 INFO     lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for 103
      lxc-start 1445965507.581 DEBUG    lxc_cgmanager - cgmanager.c:cgm_setup_limits:1393 - cgroup 'memory.limit_in_bytes' set to '2147483648'
      lxc-start 1445965507.582 DEBUG    lxc_cgmanager - cgmanager.c:cgm_setup_limits:1393 - cgroup 'memory.memsw.limit_in_bytes' set to '2684354560'
      lxc-start 1445965507.582 DEBUG    lxc_cgmanager - cgmanager.c:cgm_setup_limits:1393 - cgroup 'cpu.cfs_period_us' set to '100000'
      lxc-start 1445965507.582 DEBUG    lxc_cgmanager - cgmanager.c:cgm_setup_limits:1393 - cgroup 'cpu.cfs_quota_us' set to '200000'
      lxc-start 1445965507.582 DEBUG    lxc_cgmanager - cgmanager.c:cgm_setup_limits:1393 - cgroup 'cpu.shares' set to '1024'
      lxc-start 1445965507.582 INFO     lxc_cgmanager - cgmanager.c:cgm_setup_limits:1397 - cgroup limits have been setup
      lxc-start 1445965507.597 DEBUG    lxc_conf - conf.c:lxc_assign_network:3119 - move 'eth0' to '24222'
      lxc-start 1445965507.601 DEBUG    bdev - bdev.c:find_fstype_cb:151 - trying to mount '/dev/loop0'->'/usr/lib/x86_64-linux-gnu/lxc/rootfs' with fstype 'ext3'
      lxc-start 1445965507.603 DEBUG    bdev - bdev.c:find_fstype_cb:159 - mount failed with error: Invalid argument
      lxc-start 1445965507.603 DEBUG    bdev - bdev.c:find_fstype_cb:151 - trying to mount '/dev/loop0'->'/usr/lib/x86_64-linux-gnu/lxc/rootfs' with fstype 'ext2'
      lxc-start 1445965507.603 DEBUG    bdev - bdev.c:find_fstype_cb:159 - mount failed with error: Invalid argument
      lxc-start 1445965507.603 DEBUG    bdev - bdev.c:find_fstype_cb:151 - trying to mount '/dev/loop0'->'/usr/lib/x86_64-linux-gnu/lxc/rootfs' with fstype 'ext4'
      lxc-start 1445965507.606 INFO     bdev - bdev.c:find_fstype_cb:167 - mounted '/dev/loop0' on '/usr/lib/x86_64-linux-gnu/lxc/rootfs', with fstype 'ext4'
      lxc-start 1445965507.606 DEBUG    lxc_conf - conf.c:setup_rootfs:1284 - mounted 'loop:/media/clients/images/103/vm-103-disk-2.raw' on '/usr/lib/x86_64-linux-gnu/lxc/rootfs'
      lxc-start 1445965507.606 INFO     lxc_conf - conf.c:setup_utsname:919 - 'pmloikju.com' hostname has been setup
      lxc-start 1445965507.621 DEBUG    lxc_conf - conf.c:setup_hw_addr:2244 - mac address '02:00:00:21:55:c0' on 'eth0' has been setup
      lxc-start 1445965507.621 DEBUG    lxc_conf - conf.c:setup_netdev:2471 - 'eth0' has been setup
      lxc-start 1445965507.621 INFO     lxc_conf - conf.c:setup_network:2492 - network has been setup
      lxc-start 1445965507.621 INFO     lxc_conf - conf.c:mount_autodev:1148 - Mounting /dev under /usr/lib/x86_64-linux-gnu/lxc/rootfs
      lxc-start 1445965507.621 INFO     lxc_conf - conf.c:mount_autodev:1169 - Mounted tmpfs onto /usr/lib/x86_64-linux-gnu/lxc/rootfs/dev
      lxc-start 1445965507.621 INFO     lxc_conf - conf.c:mount_autodev:1187 - Mounted /dev under /usr/lib/x86_64-linux-gnu/lxc/rootfs
      lxc-start 1445965507.622 DEBUG    lxc_conf - conf.c:mount_entry:1727 - remounting /sys/fs/fuse/connections on /usr/lib/x86_64-linux-gnu/lxc/rootfs/sys/fs/fuse/connections to respect bind or remount options
      lxc-start 1445965507.622 DEBUG    lxc_conf - conf.c:mount_entry:1742 - (at remount) flags for /sys/fs/fuse/connections was 4096, required extra flags are 0
      lxc-start 1445965507.622 DEBUG    lxc_conf - conf.c:mount_entry:1751 - mountflags already was 4096, skipping remount
      lxc-start 1445965507.622 DEBUG    lxc_conf - conf.c:mount_entry:1777 - mounted '/sys/fs/fuse/connections' on '/usr/lib/x86_64-linux-gnu/lxc/rootfs/sys/fs/fuse/connections', type 'none'
      lxc-start 1445965507.622 INFO     lxc_conf - conf.c:mount_file_entries:2026 - mount points have been setup
      lxc-start 1445965507.622 INFO     lxc_conf - conf.c:run_script_argv:356 - Executing script '/usr/share/lxc/hooks/lxc-pve-mount-hook' for container '103', config section 'lxc'
      lxc-start 1445965507.930 ERROR    lxc_conf - conf.c:run_buffer:336 - Script exited with status 25
      lxc-start 1445965507.930 ERROR    lxc_conf - conf.c:lxc_setup:3827 - failed to run mount hooks for container '103'.
      lxc-start 1445965507.930 ERROR    lxc_start - start.c:do_start:702 - failed to setup the container
      lxc-start 1445965507.930 ERROR    lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 2
      lxc-start 1445965507.930 WARN     lxc_conf - conf.c:lxc_delete_network:2995 - failed to remove interface 'eth0'
      lxc-start 1445965507.950 ERROR    lxc_start - start.c:__lxc_start:1172 - failed to spawn '103'
      lxc-start 1445965507.950 INFO     lxc_conf - conf.c:run_script_argv:356 - Executing script '/usr/share/lxc/hooks/lxc-pve-poststop-hook' for container '103', config section 'lxc'
      lxc-start 1445965508.264 ERROR    lxc_start_ui - lxc_start.c:main:344 - The container failed to start.
      lxc-start 1445965508.264 ERROR    lxc_start_ui - lxc_start.c:main:348 - Additional information can be obtained by setting the --logfile and --logpriority options.

Am i the only one with this kind of bugs ?
 
I upgrade, and reboot CT, but it never go up. I try to restart host and made update on it.
 
When you start it first time after shutdown it will fail because the network interface is lingering (read your log) . If you try again it will start because the interface has been cleared.
If it did not start on 2nd attempt then you need to post the log again.
Oops, there are two errors there. One is interface lingering so it will not be able to start on the next startup.

There is another one in mount hooks. Is there anything special in config file?
Be careful that lxc-start uses /var/lib/lxc/ID/config and pct start uses /etc/pve/lxc/ID.conf
 
Last edited:

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!