container backup failure

alfwro

Member
Jan 10, 2022
11
2
8
55
Hi,
Backups for one of my containers are failing:

Code:
INFO: starting new backup job: vzdump 174 --remove 0 --node pve --mode snapshot --storage diskstation-nfs --compress 0
INFO: Starting Backup of VM 174 (lxc)
INFO: Backup started at 2022-03-02 15:40:44
INFO: status = running
INFO: CT Name: AdGuard
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
  Logical volume "snap_vm-174-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/pve/diskstation-nfs/dump/vzdump-lxc-174-2022_03_02-15_40_44.tar'
INFO: tar: /mnt/pve/diskstation-nfs/dump/vzdump-lxc-174-2022_03_02-15_40_44.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: cleanup temporary 'vzdump' snapshot
  Logical volume "snap_vm-174-disk-0_vzdump" successfully removed
ERROR: Backup of VM 174 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' --one-file-system '--warning=no-file-ignored' '--directory=/mnt/pve/diskstation-nfs/dump/vzdump-lxc-174-2022_03_02-15_40_44.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ >/mnt/pve/diskstation-nfs/dump/vzdump-lxc-174-2022_03_02-15_40_44.dat' failed: exit code 2
INFO: Failed at 2022-03-02 15:40:45
INFO: Backup job finished with errors
TASK ERROR: job errors

I can see that the error message is Permission denied - that makes no sense as I have a couple more VMs in the same backup job that are backing up OK.
Any suggestions?
Thanks
 
hi,

I can see that the error message is Permission denied - that makes no sense as I have a couple more VMs in the same backup job that are backing up OK.
i see you're backing up to a NFS share.
when you make an (unprivileged) container backup, the files are copied over by the context of that unprivileged user (with uid 100000 by default), so you'll probably have to adjust the permissions on your share.
 
Hi Oguz,

I have the same problem too as I backup the container to a NFS share. What if I do it to a iscsi volume? Will there be any needs to adjust the permissions on volume too?

Thanks!
 
Hi Oguz,

I have the same problem too as I backup the container to a NFS share. What if I do it to a iscsi volume? Will there be any needs to adjust the permissions on volume too?

Thanks!
What will be a good alternative if there is no enough available free storage in a local disk/storage?
 
hi,


i see you're backing up to a NFS share.
when you make an (unprivileged) container backup, the files are copied over by the context of that unprivileged user (with uid 100000 by default), so you'll probably have to adjust the permissions on your share.
BTW, Oguz.

Can you share how to adjust the permissions on the NFS share?