Cannot restore CT from backup

zyghom

Member
Mar 9, 2023
25
17
8
Hi,
So I have all my VMs and CTs backed up to PBS.
Today I tried to restore 1 specific CT and the outcome is bad:

Code:
recovering backed-up configuration from 'pbs-nfs-ssd:backup/ct/1225/2024-02-05T17:08:47Z'
restoring 'pbs-nfs-ssd:backup/ct/1225/2024-02-05T17:08:47Z' now..
Error: error extracting archive - encountered unexpected error during extraction: error at entry "pct.fw": failed to extract file: failed to set ownership: Invalid argument (os error 22)
TASK ERROR: unable to restore CT 100 - command 'lxc-usernsexec -m u:0:100000:3004 -m g:0:100000:100 -m u:3004:3004:1 -m g:100:100:1 -m u:3005:103005:62529 -m g:101:100101:65434 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=none' ct/1225/2024-02-05T17:08:47Z root.pxar /var/lib/lxc/100/rootfs --allow-existing-dirs --repository root@pam@192.168.1.8:pbs-nfs-ssd' failed: exit code 255

what can I do to restore it?
btw I deleted the orginal CT... ;-(
 
OK, so I narrowed it down that:
1- these lines in conf are making backup/restore not working:
Code:
lxc.idmap: u 0 100000 3004
lxc.idmap: g 0 100000 100
lxc.idmap: u 3004 3004 1
lxc.idmap: g 100 100 1
lxc.idmap: u 3005 103005 62529
lxc.idmap: g 101 100101 65434

and these lines are as per guide about mapping into CT:
https://pve.proxmox.com/wiki/Unprivileged_LXC_containers

on top I set (also as per guide above) these 2 files accordingly:
Code:
root@gorilla:/etc/pve/lxc# cat /etc/subuid
root:3004:1
root:100000:65536
pi:165536:65536
root@gorilla:/etc/pve/lxc# cat /etc/subgid
root:100:1
root:100000:65536
pi:165536:65536
root@gorilla:/etc/pve/lxc#

so, in short: not restorable container with such config ;-(
unless I am doing something wrong