LXC failing to backup to Syno NFS share

trenetics

New Member
Dec 27, 2020
3
1
3
39
Hi all,

Wanted to change from CIFS to NFS, but now backups fail:

Code:
INFO: starting new backup job: vzdump 100 --storage LXC_Backups --compress zstd --mode snapshot --remove 0 --node 0v3rw4tch
INFO: Starting Backup of VM 100 (lxc)
INFO: Backup started at 2021-02-17 18:23:42
INFO: status = running
INFO: CT Name: Pi
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
  Logical volume "snap_vm-100-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/pve/LXC_Backups/dump/vzdump-lxc-100-2021_02_17-18_23_42.tar.zst'
INFO: tar: /mnt/pve/LXC_Backups/dump/vzdump-lxc-100-2021_02_17-18_23_42.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: cleanup temporary 'vzdump' snapshot
  Logical volume "snap_vm-100-disk-0_vzdump" successfully removed
ERROR: Backup of VM 100 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/LXC_Backups/dump/vzdump-lxc-100-2021_02_17-18_23_42.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/LXC_Backups/dump/vzdump-lxc-100-2021_02_17-18_23_42.tar.dat' failed: exit code 2
INFO: Failed at 2021-02-17 18:23:43
INFO: Backup job finished with errors
TASK ERROR: job errors

Funny thing is that out of 10 LXC's - 9 fail & one works:

Code:
()
INFO: starting new backup job: vzdump 102 --mode snapshot --remove 0 --node 0v3rw4tch --storage LXC_Backups --compress zstd
INFO: Starting Backup of VM 102 (lxc)
INFO: Backup started at 2021-02-17 19:03:55
INFO: status = running
INFO: CT Name: SentineL
INFO: including mount point rootfs ('/') in backup
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: create storage snapshot 'vzdump'
  Logical volume "snap_vm-102-disk-0_vzdump" created.
INFO: creating vzdump archive '/mnt/pve/LXC_Backups/dump/vzdump-lxc-102-2021_02_17-19_03_55.tar.zst'
INFO: Total bytes written: 4968529920 (4.7GiB, 117MiB/s)
INFO: archive file size: 927MB
INFO: cleanup temporary 'vzdump' snapshot
  Logical volume "snap_vm-102-disk-0_vzdump" successfully removed
INFO: Finished Backup of VM 102 (00:00:43)
INFO: Backup finished at 2021-02-17 19:04:38
INFO: Backup job finished successfully
TASK OK

The config for my LXC's are all the same:

Code:
()
arch: amd64
cores: 4
hostname: SentineL
memory: 512
net0: name=eth0,bridge=vmbr0,gw=192.168.1.1,hwaddr=F6:CA:9F:AE:09:40,ip=192.168.1.27/24,type=veth
onboot: 1
ostype: ubuntu
rootfs: VMdata:vm-102-disk-0,size=8G
swap: 256

Any ideas on what the heck is going on???
 
Last edited:
*Update*

Appears to have been an rights issue on the Syno, i SSH'd into it and gave the backup folder rights as folllows:

/bin/chmod 1777 /mydir

Now everything is working again!
 

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!