LXC Container will not backup

Cronus89

Well-Known Member
Nov 22, 2017
37
3
48
35
I get the below error message when trying to backup an lxc container. its a tiny one. I have 2 other lxc that backup fine, and 3 other KVM Vm's that backup fine. Some guidance is appreciated. The permission died error makes no sense as its writing the log files to it fine.

Task viewer: Backup

OutputStatus

Stop
INFO: starting new backup job: vzdump 105 --mode snapshot --node prox1 --compress lzo --remove 0 --storage Synology
INFO: Starting Backup of VM 105 (lxc)
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: ansible
INFO: creating archive '/mnt/pve/Synology/dump/vzdump-lxc-105-2018_10_10-21_09_54.tar.lzo'
INFO: tar: /mnt/pve/Synology/dump/vzdump-lxc-105-2018_10_10-21_09_54.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
ERROR: Backup of VM 105 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/Synology/dump/vzdump-lxc-105-2018_10_10-21_09_54.tmp' ./etc/vzdump/pct.conf '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | lzop >/mnt/pve/Synology/dump/vzdump-lxc-105-2018_10_10-21_09_54.tar.dat' failed: exit code 2
INFO: Backup job finished with errors
TASK ERROR: job errors
 
The permission died error makes no sense as its writing the log files to it fine.

...
INFO: tar: /mnt/pve/Synology/dump/vzdump-lxc-105-2018_10_10-21_09_54.tmp: Cannot open: Permission denied


Does it main promox host writes logfiles to /mnt/pve/Synology/ ?

For better understanding post /etc/pve/storage.cfg
 
proxmox hosts does write logfiles to there.

root@prox1:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,images,rootdir,backup,vztmpl

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

nfs: Synology
export /volume1/backups-Proxmox
path /mnt/pve/Synology
server 10.0.0.105
content backup,vztmpl,iso
maxfiles 15
options vers=3
 
proxmox hosts does write logfiles to there.

root@prox1:~# cat /etc/pve/storage.cfg
dir: local
path /var/lib/vz
content iso,images,rootdir,backup,vztmpl

lvmthin: local-lvm
thinpool data
vgname pve
content images,rootdir

nfs: Synology
export /volume1/backups-Proxmox
path /mnt/pve/Synology
server 10.0.0.105
content backup,vztmpl,iso
maxfiles 15
options vers=3

Does it work if you backup to local storage and move the created backup files then to /mnt/pve/Synology/dump ?
 

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!