I noticed that my container is not starting properly since last week and I would like to seek some help to restore the use of the container and confirm the cause of the error.
I have tried these methods, but I still can’t get it back in use.snap refresh lxd
,sudo lxd shutdown
,
Here are some error messages:
- lxc info --show-log demo
lxc demo 20221007095217.286 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc demo 20221007095217.287 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc demo 20221007095217.288 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc demo 20221007095217.288 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc demo 20221007095217.289 WARN cgfsng - ../src/src/lxc/cgroups/cgfsng.c:fchowmodat:1611 - No such file or directory - Failed to fchownat(40, memory.oom.group, 1000000000, 0, AT_EMPTY_PATH | AT_SYMLINK_NOFOLLOW )
lxc demo 20221007095217.533 ERROR conf - ../src/src/lxc/conf.c:run_buffer:321 - Script exited with status 1
lxc demo 20221007095217.533 ERROR conf - ../src/src/lxc/conf.c:lxc_setup:4400 - Failed to run mount hooks
lxc demo 20221007095217.533 ERROR start - ../src/src/lxc/start.c:do_start:1272 - Failed to setup container "demo"
lxc demo 20221007095217.533 ERROR sync - ../src/src/lxc/sync.c:sync_wait:34 - An error occurred in another process (expected sequence number 4)
lxc demo 20221007095217.544 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 "vethdaa95fd8"
lxc demo 20221007095217.544 ERROR lxccontainer - ../src/src/lxc/lxccontainer.c:wait_on_daemonized_start:877 - Received container state "ABORTING" instead of "RUNNING"
lxc demo 20221007095217.544 ERROR start - ../src/src/lxc/start.c:__lxc_start:2107 - Failed to spawn container "demo"
lxc demo 20221007095217.544 WARN start - ../src/src/lxc/start.c:lxc_abort:1036 - No such process - Failed to send SIGKILL via pidfd 41 for process 3003947
lxc demo 20221007095222.674 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3592 - newuidmap binary is missing
lxc demo 20221007095222.674 WARN conf - ../src/src/lxc/conf.c:lxc_map_ids:3598 - newgidmap binary is missing
lxc 20221007095222.704 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 20221007095222.704 ERROR commands - ../src/src/lxc/commands.c:lxc_cmd_rsp_recv_fds:128 - Failed to receive file descriptors for command "get_state"
- sudo lxd
ERROR [2022-10-07T18:03:38+08:00] Failed to start the daemon err="LXD is already running"
Error: LXD is already running
- lxc config demo --expanded
architecture: x86_64
config:
boot.autostart: "true"
image.architecture: amd64
image.description: Ubuntu focal amd64 (20200725_07:42)
image.os: Ubuntu
image.release: focal
image.serial: "20200725_07:42"
image.type: squashfs
limits.cpu: "36"
nvidia.runtime: "true"
security.privileged: "false"
volatile.base_image: 1ceb329739f7ea344c01584511f47faedb298b93ae899222aac2c6a7e699a6ce
volatile.eth0.hwaddr: 00:16:3e:a9:b8:d4
volatile.idmap.base: "0"
volatile.idmap.current: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.idmap.next: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.idmap: '[{"Isuid":true,"Isgid":false,"Hostid":1000000,"Nsid":0,"Maprange":1000000000},{"Isuid":false,"Isgid":true,"Hostid":1000000,"Nsid":0,"Maprange":1000000000}]'
volatile.last_state.power: STOPPED
volatile.last_state.ready: "false"
volatile.uuid: ba587c68-0606-4495-96fb-f2c4e6b31395
devices:
eth0:
name: eth0
network: lxdbr0
type: nic
gpu:
id: "1"
type: gpu
proxy0:
bind: host
connect: tcp:10.22.28.250:22
listen: tcp:X:60601
type: proxy
root:
path: /
pool: lxd_pool
type: disk
share_folder:
path: /usr/share_lxd
source: /usr/share_lxd
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: ""