Hello
Recently i had to do a disaster recover of my lxd installation, i don’t have individual backups of the containers i only have the folder (/var/snap/lxd/common/lxd) content.
The previous and the current installation version of lxd is 3.0.0
After restoring the folder when i try to start a container i ged this error:
ivan@ti:~$ sudo lxc start ha
Error: Failed to run: /snap/lxd/current/bin/lxd forkstart ha /var/snap/lxd/common/lxd/containers /var/snap/lxd/common/lxd/logs/ha/lxc.conf:
Try lxc info --show-log ha
for more info
ivan@ti:~$ sudo lxc info --show-log ha
Name: ha
Remote: unix://
Architecture: x86_64
Created: 2017/09/19 21:58 UTC
Status: Stopped
Type: persistent
Profiles: default
Log:
lxc 20180517120411.382 WARN lxc_conf - conf.c:lxc_map_ids:2831 - newuidmap binary is missing
lxc 20180517120411.382 WARN lxc_conf - conf.c:lxc_map_ids:2837 - newgidmap binary is missing
lxc 20180517120411.384 WARN lxc_conf - conf.c:lxc_map_ids:2831 - newuidmap binary is missing
lxc 20180517120411.384 WARN lxc_conf - conf.c:lxc_map_ids:2837 - newgidmap binary is missing
lxc 20180517120411.409 ERROR dir - storage/dir.c:dir_mount:189 - No such file or directory - Failed to mount “/var/snap/lxd/common/lxd/containers/ha/rootfs” on "/var/snap/lxd/common/lxc/"
lxc 20180517120411.409 ERROR lxc_conf - conf.c:lxc_setup_rootfs:1341 - Failed to mount rootfs “/var/snap/lxd/common/lxd/containers/ha/rootfs” onto “/var/snap/lxd/common/lxc/” with options "(null)"
lxc 20180517120411.409 ERROR lxc_conf - conf.c:do_rootfs_setup:3275 - Failed to setup rootfs for
lxc 20180517120411.409 ERROR lxc_conf - conf.c:lxc_setup:3320 - Failed to setup rootfs
lxc 20180517120411.409 ERROR lxc_start - start.c:do_start:1198 - Failed to setup container "ha"
lxc 20180517120411.409 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 5)
lxc 20180517120411.409 ERROR lxc_container - lxccontainer.c:wait_on_daemonized_start:824 - Received container state “ABORTING” instead of "RUNNING"
lxc 20180517120411.410 ERROR lxc_start - start.c:__lxc_start:1866 - Failed to spawn container "ha"
lxc 20180517120411.411 WARN lxc_conf - conf.c:lxc_map_ids:2831 - newuidmap binary is missing
lxc 20180517120411.411 WARN lxc_conf - conf.c:lxc_map_ids:2837 - newgidmap binary is missing
lxc 20180517120411.415 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:130 - Connection reset by peer - Failed to receive response for command “get_cgroup”
After viewing this link: https://github.com/lxc/lxd/blob/master/doc/backup.md , i’m assuming that the folder restoration was enough.
Does anyone have any ideia how do correctly restore the lxd setup,.
Best regards.