Backup of container to NAS fails

network_potato

New Member
Oct 23, 2022
2
0
1
Hello,

I have my Synology NAS attached as NFS storage. Backing up regular VMs to the NAS is no problem, but trying to back up a container I get the following error:

Code:
INFO: starting new backup job: vzdump 301 --compress zstd --node hyp1 --mode snapshot --storage nas1 --remove 0 --notes-template '{{guestname}}'
INFO: Starting Backup of VM 301 (lxc)
INFO: Backup started at 2022-10-23 11:04:08
INFO: status = running
INFO: CT Name: <removed>
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
INFO: creating vzdump archive '/mnt/pve/nas1/dump/vzdump-lxc-301-2022_10_23-11_04_08.tar.zst'
INFO: tar: /mnt/pve/nas1/dump/vzdump-lxc-301-2022_10_23-11_04_08.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: cleanup temporary 'vzdump' snapshot
ERROR: Backup of VM 301 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/nas1/dump/vzdump-lxc-301-2022_10_23-11_04_08.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' ./ | zstd --rsyncable '--threads=1' >/mnt/pve/nas1/dump/vzdump-lxc-301-2022_10_23-11_04_08.tar.dat' failed: exit code 2
INFO: Failed at 2022-10-23 11:04:09
INFO: Backup job finished with errors
TASK ERROR: job errors

Can someone help me figure out the problem?
 
For unprivileged LXCs the UID 100000 needs also write access to your NFS share. So you either need to modify your NFS server to allow that or alternatively you could change the "tmpdir" in "/etc/vzdump.conf" to some folder like "/tmp" with 777 rights.
 
For unprivileged LXCs the UID 100000 needs also write access to your NFS share. So you either need to modify your NFS server to allow that or alternatively you could change the "tmpdir" in "/etc/vzdump.conf" to some folder like "/tmp" with 777 rights.
Had the same problem, your hin fixed it :) Thx
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!