Hi my container failed to start after snap refresh.
I recreate a new container, it works at first, I can finish apt update/upgrade, but after I add a path mapping the container won’t start.
#mapping dirs
while read line
do
lxc config device add $CONTAINER `basename $line` disk source=$line path=$line
done < ~/bin/lxc/lxcdirs.txt
contents of lxcdirs.txt
alvin@alvin-WS-E500:~/bin/lxc$ cat lxcdirs.txt
/home/alvin/repo
/home/alvin/repo2
/home/alvin/repo3
/home/alvin/OneDrive
logs:
lxc dev16 20220629081703.808 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc dev16 20220629081703.810 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc dev16 20220629081703.825 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc dev16 20220629081703.825 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc dev16 20220629081703.833 WARN cgfsng - ../src/src/lxc/cgroups/cgfsng.c:fchowmodat:1252 - No such file or directory - Failed to fchownat(42, memory.oom.group, 1000000000, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW )
lxc dev16 20220629081703.202 ERROR conf - ../src/src/lxc/conf.c:mount_entry:2459 - Operation not permitted - Failed to mount "/var/snap/lxd/common/lxd/devices/dev16/disk.OneDrive.home-alvin-OneDrive" on "/var/snap/lxd/common/lxc//home/alvin/OneDrive"
lxc dev16 20220629081703.203 ERROR conf - ../src/src/lxc/conf.c:lxc_setup:4375 - Failed to setup mount entries
lxc dev16 20220629081703.203 ERROR start - ../src/src/lxc/start.c:do_start:1275 - Failed to setup container "dev16"
lxc dev16 20220629081703.203 ERROR sync - ../src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 3)
lxc dev16 20220629081703.218 WARN network - ../src/src/lxc/network.c:lxc_delete_network_priv:3631 - Failed to rename interface with index 0 from "eth0" to its initial name "veth57b2e665"
lxc dev16 20220629081703.218 ERROR lxccontainer - ../src/src/lxc/lxccontainer.c:wait_on_daemonized_start:877 - Received container state "ABORTING" instead of "RUNNING"
lxc dev16 20220629081703.218 ERROR start - ../src/src/lxc/start.c:__lxc_start:2074 - Failed to spawn container "dev16"
lxc dev16 20220629081703.218 WARN start - ../src/src/lxc/start.c:lxc_abort:1039 - No such process - Failed to send SIGKILL via pidfd 43 for process 39685
lxc dev16 20220629081708.312 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc dev16 20220629081708.312 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc 20220629081708.345 ERROR af_unix - ../src/src/lxc/af_unix.c:lxc_abstract_unix_recv_fds_iov:218 - Connection reset by peer - Failed to receive response
lxc 20220629081708.345 ERROR commands - ../src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:127 - Failed to receive file descriptors for command "get_state"