Container fails with the sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 7)


(Ugesh) #1

Error Logs:
lxc-start p2 20181023045654.161 ERROR lxc_utils - utils.c:safe_mount:1707 - No such file or directory - Failed to mount /dev/tty0 onto /usr/lib/lxc/rootfs/dev/tty0
lxc-start p2 20181023045654.164 ERROR lxc_utils - utils.c:safe_mount:1707 - No such file or directory - Failed to mount /dev/tty1 onto /usr/lib/lxc/rootfs/dev/tty1
lxc-start p2 20181023045654.253 ERROR lxc_start - start.c:start:1535 - No such file or directory - Failed to exec “/sbin/init”.
lxc-start p2 20181023045654.253 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 7)
lxc-start p2 20181023045654.254 ERROR lxc_start - start.c:__lxc_start:1459 - Failed to spawn container “p2”.
lxc-start p2 20181023045654.255 ERROR lxc_cgfs - cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - Failed to delete /sys/fs/cgroup/memory/lxc/p2
lxc-start p2 20181023045654.258 ERROR lxc_cgfs - cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - Failed to delete /sys/fs/cgroup/cpu,cpuacct/lxc/p2
lxc-start p2 20181023045654.261 ERROR lxc_cgfs - cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - Failed to delete /sys/fs/cgroup/cpuset/lxc/p2
lxc-start p2 20181023045654.263 ERROR lxc_cgfs - cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - Failed to delete /sys/fs/cgroup/devices/lxc/p2
lxc-start p2 20181023045654.265 ERROR lxc_cgfs - cgroups/cgfs.c:cgroup_rmdir:209 - Device or resource busy - Failed to delete /sys/fs/cgroup/systemd/system.slice/system-sshd.slice/sshd@1-192.168.1.40:22-192.168.1.51:64294.service/lxc/p2
lxc-start p2 20181023045654.267 ERROR lxc_start_ui - tools/lxc_start.c:main:371 - The container failed to start.
lxc-start p2 20181023045654.268 ERROR lxc_start_ui - tools/lxc_start.c:main:375 - Additional information can be obtained by setting the --logfile and --logpriority options.


Bad address - failed to exec /usr/sbin/init.lxc
(Stéphane Graber) #2
lxc-start p2 20181023045654.161 ERROR lxc_utils - utils.c:safe_mount:1707 - No such file or directory - Failed to mount /dev/tty0 onto /usr/lib/lxc/rootfs/dev/tty0
lxc-start p2 20181023045654.164 ERROR lxc_utils - utils.c:safe_mount:1707 - No such file or directory - Failed to mount /dev/tty1 onto /usr/lib/lxc/rootfs/dev/tty1
lxc-start p2 20181023045654.253 ERROR lxc_start - start.c:start:1535 - No such file or directory - Failed to exec “/sbin/init”.

Those are the problems, it looks like your container’s rootfs is missing a dev directory AND also a /sbin/init file.


(Ugesh) #3

Hello Stéphan,
My intention is to run the app container not the OS container and I have corrected the above error and struck with the another error

09.480 NOTICE lxc_utils - utils.c:lxc_switch_uid_gid:2079 - Switched to uid 0.
lxc 20181109044709.480 NOTICE lxc_execute - execute.c:execute_start:90 - exec’ing ‘/usr/bin/isoinit’
lxc 20181109044709.489 NOTICE lxc_execute - execute.c:execute_post_start:104 - ‘/usr/bin/isoinit’ started with pid ‘2160’
lxc 20181109044709.489 ERROR lxc_start - start.c:lxc_serve_state_socket_pair:441 - Broken pipe - Failed to send state to 6
lxc 20181109044709.489 ERROR lxc_start - start.c:lxc_set_state:462 - Failed to synchronize via anonymous pair of unix sockets
lxc 20181109044709.489 ERROR lxc_start - start.c:lxc_spawn:1386 - Failed to set state for container “p2” to “RUNNING”.
lxc 20181109044709.489 ERROR lxc_start - start.c:lxc_serve_state_socket_pair:441 - Broken pipe - Failed to send state to 6
lxc 20181109044709.489 ERROR lxc_start - start.c:lxc_set_state:462 - Failed to synchronize via anonymous pair of unix sockets
lxc 20181109044709.492 ERROR lxc_start - start.c:__lxc_start:1459 - Failed to spawn container “p2”.
lxc 20181109044709.492 ERROR lxc_start - start.c:lxc_serve_state_socket_pair:441 - Broken pipe - Failed to send state to 6
lxc 20181109044709.492 ERROR lxc_start - start.c:lxc_set_state:462 - Failed to synchronize via anonymous pair of unix sockets
lxc 20181109044709.521 ERROR lxc_start - start.c:lxc_serve_state_socket_pair:441 - Broken pipe - Failed to send state to 6
lxc 20181109044709.521 ERROR lxc_start - start.c:lxc_set_state:462 - Failed to synchronize via anonymous pair of unix sockets


(Ugesh) #4

I had deeper look but What I am missing is not know