Probleme beim Speichern auf promox 7.2-11: command 'set -o pipefail && lxc-usernsexec

clamm

Active Member
Jul 16, 2016
2
0
41
34
Ich benutze die Backup-Funktion von proxmox 7.2-11. Seit vier Tagen habe ich Fehler bei der Sicherung meiner Container. Ich habe dieses Problem nur bei den Versionen 10 und 11 von débian. Bei Version 9 tritt das Problem nicht auf.
Hier sind die Fehlermeldungen

With stop vm

INFO: starting new backup job: vzdump 116 --compress 0 --storage qnap-sauv --mode stop --notes-template '{{guestname}}' --mailnotification always --mailto clamm@bliwe.com --node pve --all 0
INFO: Starting Backup of VM 116 (lxc)
INFO: Backup started at 2023-09-16 10:37:16
INFO: status = running
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: ct-wordpress
INFO: including mount point rootfs ('/') in backup
INFO: stopping virtual guest
INFO: creating vzdump archive '/mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_37_16.tar'
INFO: tar: /mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_37_16.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
INFO: restarting vm
failed to connect to monitor socket: Connection refused
INFO: guest is online again after 3 seconds
ERROR: Backup of VM 116 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/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_37_16.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/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_37_16.dat' failed: exit code 2
INFO: Failed at 2023-09-16 10:37:19
INFO: Backup job finished with errors
TASK ERROR: job errors





With snapshot vm

INFO: starting new backup job: vzdump 116 --mailnotification always --notes-template '{{guestname}}' --all 0 --node pve --mailto clamm@bliwe.com --storage qnap-sauv --compress gzip --mode snapshot
INFO: Starting Backup of VM 116 (lxc)
INFO: Backup started at 2023-09-16 10:39:21
INFO: status = running
INFO: CT Name: ct-wordpress
INFO: including mount point rootfs ('/') in backup
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: ct-wordpress
INFO: including mount point rootfs ('/') in backup
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/877003/root/ to /mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tmp
INFO: first sync finished - transferred 3.33G bytes in 518s
INFO: suspending guest
INFO: starting final sync /proc/877003/root/ to /mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tmp
INFO: final sync finished - transferred 72.32M bytes in 19s
INFO: resuming guest
INFO: guest is online again after 19 seconds
INFO: creating vzdump archive '/mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tar.gz'
INFO: tar: /mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
ERROR: Backup of VM 116 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/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tmp' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' . | gzip --rsyncable >/mnt/pve/qnap-sauv/dump/vzdump-lxc-116-2023_09_16-10_39_21.tar.dat' failed: exit code 2
INFO: Failed at 2023-09-16 10:49:28
INFO: Backup job finished with errors
TASK ERROR: job errors
 
Hallo,
bitte deutsche posts ins deutsche forum, auch hat das problem nichts mit dem Proxmox Backup Server zu tun, es handelt sich um ein Permission Problem beim QNAP share.

Die Debian 9 LXCs sind vermutlich privileged container und haben daher das Recht auf den mount point zu schreiben, die anderen vermute ich mal sind unprivileged container und werden daher mit dem gemappten user geschrieben, der auf QNAP keine Schreibrechte hat.

Also entweder die permissions anpassen oder das backup via tmpdir generieren, siehe dazu https://pve.proxmox.com/pve-docs/pve-admin-guide.html#vzdump_configuration

Edit: Moved thread to correct forum.
 
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!