Hi, I'm having trouble restoring an LXC container from my PBS, and I'm not sure how to interpret the errors. Hoping someone can take a look and either explain the error or suggest a fix. The key error seems to be
Details:
Error on restore attempt (through the PVE GUI):
Config file of the CT in question:
Syslog:
Appreciate any suggestions.
Thanks - Sam
Error: error extracting archive - error at entry "container-getty@1.service": failed to set ownership: Invalid argument (os error 22)
.Details:
- PVE 6.3-2 - recently updated
- PBS 1.0-5 - recently updated
- PBS is running in an LXC container on the main host, the datastore storage is a disk image located on my NAS.
- Backup jobs, prune, verification, etc. all occur normally.
- I restored a different CT in the same datastore to test restore functionality, and it restored correctly.
- I am attempting to restore an unencrypted CT running Ubuntu - the original has been deleted. The weekly backup images all verified OK.
- I can mount the archive using
proxmox-backup-client mount ct/130/2020-12-03T06:30:36Z root.pxar /mnt/ct130data --repository proxmoxbackupserver:ds2
and browse the files.
Error on restore attempt (through the PVE GUI):
Code:
Logical volume "vm-131-disk-0" created.
mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: 4096/8388608 done
Creating filesystem with 8388608 4k blocks and 2097152 inodes
Filesystem UUID: 09866d2c-430a-45f5-86dc-573355bc4fc2
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624
Allocating group tables: 0/256 done
Writing inode tables: 0/256 done
Creating journal (65536 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/256 done
Error: error extracting archive - error at entry "container-getty@1.service": failed to set ownership: Invalid argument (os error 22)
Logical volume "vm-131-disk-0" successfully removed
TASK ERROR: unable to restore CT 131 - command 'lxc-usernsexec -m u:0:100000:98 -m g:0:100000:98 -m u:98:98:1 -m g:98:98:1 -m u:99:100099:64530 -m g:99:100099:64530 -m g:65534:165534:1 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=none' ct/130/2020-12-03T06:30:36Z root.pxar /var/lib/lxc/131/rootfs --allow-existing-dirs --repository samley@pbs@proxmoxbackupserver.home:ds2' failed: exit code 255
Config file of the CT in question:
Code:
arch: amd64
cores: 3
hostname: nzbs
memory: 4096
mp0: /mnt/pve/MediaNAS,mp=/mnt/media
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=46:0F:C6:F4:0D:49,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: local-lvm:vm-130-disk-0,size=32G
swap: 1024
unprivileged: 1
lxc.idmap: u 0 100000 98
lxc.idmap: g 0 100000 98
lxc.idmap: u 98 98 1
lxc.idmap: g 98 98 1
lxc.idmap: u 99 100099 64530
lxc.idmap: g 99 100099 64530
lxc.idmap: g 65534 165534 1
Syslog:
Code:
Dec 03 21:19:05 proxmox1 pvedaemon[26400]: <root@pam> starting task UPID:proxmox1:00001294:001E66A4:5FC9B8B9:vzrestore:131:root@pam:
Dec 03 21:19:09 proxmox1 kernel: EXT4-fs (dm-9): mounted filesystem with ordered data mode. Opts: (null)
Dec 03 21:19:09 proxmox1 udisksd[705]: udisks_mount_get_mount_path: assertion 'mount->type == UDISKS_MOUNT_TYPE_FILESYSTEM' failed
Dec 03 21:19:09 proxmox1 systemd[27949]: var-lib-lxc-131-rootfs.mount: Succeeded.
Dec 03 21:19:09 proxmox1 systemd[1]: var-lib-lxc-131-rootfs.mount: Succeeded.
Dec 03 21:19:09 proxmox1 systemd[17094]: var-lib-lxc-131-rootfs.mount: Succeeded.
Dec 03 21:19:10 proxmox1 pvedaemon[4756]: unable to restore CT 131 - command 'lxc-usernsexec -m u:0:100000:98 -m g:0:100000:98 -m u:98:98:1 -m g:98:98:1 -m u:99:100099:64530 -m g:99:100099:64530 -m g:65534:165534:1 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=none' ct/130/2020-12-03T06:30:36Z root.pxar /var/lib/lxc/131/rootfs --allow-existing-dirs --repository samley@pbs@proxmoxbackupserver.home:ds2' failed: exit code 255
Dec 03 21:19:10 proxmox1 pvedaemon[26400]: <root@pam> end task UPID:proxmox1:00001294:001E66A4:5FC9B8B9:vzrestore:131:root@pam: unable to restore CT 131 - command 'lxc-usernsexec -m u:0:100000:98 -m g:0:100000:98 -m u:98:98:1 -m g:98:98:1 -m u:99:100099:64530 -m g:99:100099:64530 -m g:65534:165534:1 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=none' ct/130/2020-12-03T06:30:36Z root.pxar /var/lib/lxc/131/rootfs --allow-existing-dirs --repository samley@pbs@proxmoxbackupserver.home:ds2' failed: exit code 255
Appreciate any suggestions.
Thanks - Sam
Last edited: