Restore from backup failure (conversion from privileged to unprivileged container)

copec

Member
Jun 24, 2023
22
3
8
I am attempting to convert some containers that were privileged, to unprivileged containers after getting rid of the NFS mounts that they needed inside of the containers. After backing up and attempting to restore I get this error:

Code:
Error: error extracting archive - encountered unexpected error during extraction: error at entry "random": failed to extract device: failed to create device node: Operation not permitted (os error 1)                                                             
TASK ERROR: unable to restore CT 105 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=encrypt' '--keyfd=12' ct/105/2024-03-07T20:54:34Z root.pxar /var/lib/lxc/105/rootfs --allow-existing\
-dirs --repository pbsbackup@pbs@10.0.73.60:backup' failed: exit code 255

Any ideas on how to make it work?
 
use "pct restore ... --ignore-unpack-errors"
 
  • Like
Reactions: copec
use "pct restore ... --ignore-unpack-errors"
Could this become some advanced option in GUI when restoring CTs? It is annoying having to find out what is the right command full command to run and default debian lxc images have postfix installed with creates 'random' file nodes in /var/spool with make restores fail.