Backup not possible

brnogu

Member
Dec 13, 2020
18
1
23
28
Hello everyone.

I hope you are doing well.
I'm trying to backup a VM so I can restore it on a new Proxmox server, however after waiting an hour to copy, after 100% I got the following error:

Code:
INFO: starting new backup job: vzdump 105 --remove 0 --storage NAS --mode stop --notes-template '{{guestname}}' --compress zstd --notification-mode auto --node proxmox
INFO: Starting Backup of VM 105 (qemu)
INFO: Backup started at 2025-05-30 10:08:54
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: VM Name: VM1
INFO: include disk 'scsi0' 'Samsung_250GB_SSD:vm-105-disk-2' 232G
INFO: exclude disk 'scsi1' 'Seagate_1TB_HDD:vm-105-disk-0' (backup=no)
INFO: include disk 'efidisk0' 'Samsung_250GB_SSD:vm-105-disk-1' 4M
INFO: include disk 'tpmstate0' 'Samsung_250GB_SSD:vm-105-disk-0' 4M
INFO: creating vzdump archive '/mnt/pve/NAS/dump/vzdump-qemu-105-2025_05_30-10_08_54.vma.zst'
INFO: starting kvm to execute backup task
swtpm_setup: Not overwriting existing state file.
INFO: attaching TPM drive to QEMU for backup
INFO: started backup task '1e784897-222b-44e8-b014-912983507381'
INFO:   0% (703.2 MiB of 232.0 GiB) in 3s, read: 234.4 MiB/s, write: 217.2 MiB/s
INFO:   1% (2.4 GiB of 232.0 GiB) in 11s, read: 216.1 MiB/s, write: 214.7 MiB/s
[...]
INFO:  99% (229.7 GiB of 232.0 GiB) in 30m 35s, read: 105.5 MiB/s, write: 105.2 MiB/s
INFO: 100% (232.0 GiB of 232.0 GiB) in 30m 57s, read: 106.3 MiB/s, write: 104.6 MiB/s
INFO: backup is sparse: 1.74 GiB (0%) total zero data
INFO: transferred 232.00 GiB in 1857 seconds (127.9 MiB/s)
zstd: /*stdout*\: Permission denied
INFO: stopping kvm after backup task
VM quit/powerdown failed - terminating now with SIGTERM
ERROR: Backup of VM 105 failed - zstd --threads=1 failed - wrong exit status 1
INFO: Failed at 2025-05-30 10:42:03
INFO: Backup job finished with errors
TASK ERROR: job errors

So I've tried to not selected any compression when doing the update, but I fail with:

Code:
INFO: 100% (441.0 GiB of 441.0 GiB) in 1h 35m 35s, read: 26.4 MiB/s, write: 26.1 MiB/s
ERROR: vma_writer_close: close failed - Permission denied
INFO: aborting backup job
INFO: stopping kvm after backup task
VM quit/powerdown failed - terminating now with SIGTERM
ERROR: Backup of VM 105 failed - vma_writer_close: close failed - Permission denied
INFO: Failed at 2025-05-30 12:49:27
INFO: Backup job finished with errors
TASK ERROR: job errors

I don't know what else to do :(

It works well when I try to backup another VM to the same SMB. I'm using Proxmox 8.3.4

Thank you in advance
 
Last edited:
  • Like
Reactions: KORG
Hello there,

as mentioned here: https://forum.proxmox.com/threads/g...when-running-a-backup-job.149015/#post-674361
your errors seem to come from permission issues on the SMB share.
All the output you provided points to this as well.
It also mentiones that the backup process runs as a specific user.
It's likely that Post #2 in the same thread already contains the answer to your issue, so i would ask you to verify that.


If that doesn't work it would be good to know:
Are you using the same commands for mounting the SMB share on both machines?
Are you using mount options to set the UID and GID for permissions on the share?
 
Last edited:
@brnogu a few questions:

Is VM1 (VMID 105) that is failing to backup to /mnt/pve/NAS on the same node as the other VM that successfully backed up to that share?

If they are on the same PVE node, please provide the following:
  • pvesm status
  • cat /etc/pve/qemu-server/105.conf
  • cat /etc/pve/qemu-server/XXXX.conf where XXXX is the VMID of the VM that was successful
If they are not on the same PVE node, please run the following on the node with the failing backup and report the output:

touch /mnt/pve/NAS/dump/test_file.txt