Unable backup one out of six VM's

notaduck

Member
Nov 13, 2016
5
0
6
33
Hi.
I've a Proxmox host where I've mounted a NTFS share from my Qnap nas. I've been using this setup for a while now and everything has been working just fine, however I'm suddenly getting this error for a single container:


Code:
INFO: Starting Backup of VM 105 (lxc)
INFO: Backup started at 2019-11-04 11:47:36
INFO: status = running
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: MariaDB
INFO: stopping vm
INFO: creating archive '/mnt/pve/Backup/dump/vzdump-lxc-105-2019_11_04-11_47_36.tar.gz'
INFO: tar: /mnt/pve/Backup/dump/vzdump-lxc-105-2019_11_04-11_47_36.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: restarting vm
INFO: guest is online again after 7 seconds
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/Backup/dump/vzdump-lxc-105-2019_11_04-11_47_36.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' ./ | gzip --rsyncable >/mnt/pve/Backup/dump/vzdump-lxc-105-2019_11_04-11_47_36.tar.dat' failed: exit code 2
INFO: Failed at 2019-11-04 11:47:43

While the 5 other VM's and containers are backup up successfully for some odd reason I cannot figure out.

Full Backup Log: https://pastebin.com/5fV8nFWQ

Any one who have any idea what is going on here?
 
is that one container unprivileged, while the others that work are privileged?
 
can you double-check and/or post /etc/vzdump.conf and the container configs? do you have any special id mappings active?
 
can you double-check and/or post /etc/vzdump.conf and the container configs? do you have any special id mappings active?

I don't have any special id mappings ( as far as I know ). I've recently restored the 105 ( Mariadb ) container from a backup,. I don't know if that is what could cause the error I'm getting.

vzdump.conf:

Code:
# vzdump default settings

#tmpdir: DIR
#dumpdir: DIR
#storage: STORAGE_ID
#mode: snapshot|suspend|stop
#bwlimit: KBPS
#ionice: PRI
#lockwait: MINUTES
#stopwait: MINUTES
#size: MB
#stdexcludes: BOOLEAN
#mailto: ADDRESSLIST
#maxfiles: N
#script: FILENAME
#exclude-path: PATHLIST
#pigz: N

lxc container conf:


Code:
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: 100.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ arch: amd64
   2   │ cores: 1
   3   │ hostname: znc
   4   │ memory: 512
   5   │ net0: name=eth0,bridge=vmbr0,hwaddr=02:C2:72:EC:60:7D,ip=dhcp,type=veth
   6   │ onboot: 1
   7   │ ostype: centos
   8   │ rootfs: Zeuz:100/vm-100-disk-0.raw,size=10G
   9   │ swap: 512
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: 103.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ arch: amd64
   2   │ cores: 2
   3   │ hostname: ansible
   4   │ memory: 1024
   5   │ net0: name=eth0,bridge=vmbr0,hwaddr=AE:FA:5A:F6:D2:67,ip=dhcp,ip6=dhcp,type=veth
   6   │ onboot: 1
   7   │ ostype: centos
   8   │ rootfs: herkules:103/vm-103-disk-1.raw,size=8G
   9   │ swap: 512
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: 105.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ arch: amd64
   2   │ cores: 1
   3   │ hostname: MariaDB
   4   │ memory: 1024
   5   │ net0: name=eth0,bridge=vmbr0,hwaddr=2E:11:CC:5E:17:F6,ip=dhcp,type=veth
   6   │ onboot: 1
   7   │ ostype: centos
   8   │ rootfs: Zeuz:105/vm-105-disk-0.raw,size=20G
   9   │ startup: order=3
  10   │ swap: 512
  11   │ unprivileged: 1
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: 106.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ arch: amd64
   2   │ cores: 2
   3   │ hostname: graylog
   4   │ memory: 2048
   5   │ net0: name=eth0,bridge=vmbr0,hwaddr=8E:67:B0:39:A2:D5,ip=dhcp,type=veth
   6   │ onboot: 1
   7   │ ostype: centos
   8   │ rootfs: herkules:106/vm-106-disk-1.raw,size=20G
   9   │ swap: 512
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: 108.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ arch: amd64
   2   │ cores: 2
   3   │ hostname: Proxxy
   4   │ memory: 1024
   5   │ net0: name=eth0,bridge=vmbr0,hwaddr=D6:00:D0:79:33:20,ip=dhcp,ip6=dhcp,type=veth
   6   │ onboot: 1
   7   │ ostype: centos
   8   │ rootfs: herkules:108/vm-108-disk-2.raw,size=10G
   9   │ startup: order=2
  10   │ swap: 512
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: 112.conf
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
   1   │ arch: amd64
   2   │ cores: 1
   3   │ hostname: piHole
   4   │ memory: 512
   5   │ net0: name=eth0,bridge=vmbr0,hwaddr=3E:A5:A1:80:8E:D7,ip=dhcp,type=veth
   6   │ onboot: 1
   7   │ ostype: ubuntu
   8   │ rootfs: Zeuz:112/vm-112-disk-1.raw,size=4G
   9   │ startup: order=1
  10   │ swap: 512
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 
Last edited:
I just noticed that is in the matter of fact is indeed unprivileged..... so sry!

So I just gave vzdump.conf a tmp dir, and everything seems to be working now. Thanks!
 
Last edited:

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!