SyncJob to mounted USB drive fails (directory not empty)

virtualfund

New Member
Mar 19, 2024
25
2
3
I run a daily sync to a USB drive that is mounted on a VM on a Proxmox host. Every day the sync fails, but the VM/CT that fails can vary. Last week it was CT102 and today it is VM100. The error message complains about the Directory not being empty. Manually deleting the folder and running the sync job solves the problem, temporarily anyways.
Any idea how to prevent these errors from occurring?

Code:
2024-06-03T00:00:36-06:00: re-sync snapshot vm/100/2024-06-02T03:00:02Z
2024-06-03T00:00:36-06:00: percentage done: 27.78% (2/9 groups, 1/2 snapshots in group #3)
2024-06-03T00:00:36-06:00: sync snapshot vm/100/2024-06-03T03:00:01Z
2024-06-03T00:00:36-06:00: sync archive qemu-server.conf.blob
2024-06-03T00:00:36-06:00: sync archive drive-scsi0.img.fidx
2024-06-03T00:10:28-06:00: downloaded 1.767 GiB (3.056 MiB/s)
2024-06-03T00:10:28-06:00: sync snapshot vm/100/2024-06-03T03:00:01Z done
2024-06-03T00:10:28-06:00: percentage done: 33.33% (3/9 groups)
2024-06-03T00:10:28-06:00: delete vanished snapshot vm/100/2024-05-20T03:00:02Z
2024-06-03T00:10:28-06:00: sync group vm/100 failed - removing backup snapshot "/mnt/backup_usb/vm/100/2024-05-20T03:00:02Z" failed - Directory not empty (os error 39)
2024-06-03T00:10:28-06:00: skipped: 6 snapshot(s) (2024-05-27T03:01:04Z .. 2024-06-01T03:00:56Z) - older than the newest local snapshot
 

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!