Permission errors on PBS

Mar 25, 2019
20
4
8
37
The Netherlands
Hello,
I'm getting permission errors when trying to run a new backup or do a manual garbage collect. I've compared the folder/file permissions with a different user that works but I don't see any difference.
Any advise?

Code:
Garbage collect log:

2022-06-09T16:43:08+02:00: starting garbage collection on store frits

2022-06-09T16:43:08+02:00: Start GC phase1 (mark used chunks)

2022-06-09T16:43:08+02:00: TASK ERROR: update atime failed for chunk/file "/export/zfs/frits/.chunks/004f/004f5e7894298907ce5d197c42805f31f8029f4f2e987343743e8fecf7a4de51" - EACCES: Permission denied

backup log from PVE:

Code:
INFO: starting new backup job: vzdump 100 --prune-backups 'keep-monthly=1,keep-weekly=1' --mode snapshot --all 0 --mailnotification failure --mailto  --node prox2 --storage XXXXX
INFO: Starting Backup of VM 100 (qemu)
INFO: Backup started at 2022-06-09 16:24:01
INFO: status = running
INFO: VM Name: frist-server
INFO: include disk 'virtio0' 'syps:vm-100-disk-0' 464G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: snapshots found (not included into backup)
INFO: creating Proxmox Backup Server archive 'vm/100/2022-06-09T14:24:01Z'
INFO: enabling encryption
INFO: started backup task 'fd901646-b196-4c00-9824-4aedc54247ef'
INFO: resuming VM again
INFO: virtio0: dirty-bitmap status: OK (74.2 GiB of 464.0 GiB dirty)
INFO: using fast incremental mode (dirty-bitmap), 74.2 GiB dirty of 464.0 GiB total
INFO:   0% (104.0 MiB of 74.2 GiB) in 3s, read: 34.7 MiB/s, write: 34.7 MiB/s
INFO:   1% (776.0 MiB of 74.2 GiB) in 1m 14s, read: 9.5 MiB/s, write: 9.1 MiB/s
INFO:   2% (1.5 GiB of 74.2 GiB) in 2m 31s, read: 9.7 MiB/s, write: 6.2 MiB/s
INFO:   3% (2.2 GiB of 74.2 GiB) in 5m 2s, read: 5.1 MiB/s, write: 5.1 MiB/s
INFO:   3% (2.5 GiB of 74.2 GiB) in 5m 44s, read: 6.0 MiB/s, write: 6.0 MiB/s
ERROR: backup write data failed: command error: write_data upload error: pipelined request failed: creating chunk on store 'frits' failed for 001ee40e5cdf4c921cf28aea4df225c9b1f362747ee050b00cc6aa1ec51c65d9 - Permission denied (os error 13)
INFO: aborting backup job
INFO: resuming VM again
ERROR: Backup of VM 100 failed - backup write data failed: command error: write_data upload error: pipelined request failed: creating chunk on store 'frits' failed for 001ee40e5cdf4c921cf28aea4df225c9b1f362747ee050b00cc6aa1ec51c65d9 - Permission denied (os error 13)
INFO: Failed at 2022-06-09 16:29:47
INFO: Backup job finished with errors
TASK ERROR: job errors
 
Hi,

can you post the permissions you checked as well? :)
Sure thing!
drwxr-xr-x 4 backup backup 6 Jun 2 00:28 frits

drwxr-xr-x 4 backup backup 6 Jun 2 00:28 .
drwxr-xr-x 10 root root 10 Jun 9 15:35 ..
drwxr-x--- 65538 backup backup 65K May 30 10:06 .chunks
-rw-r--r-- 1 backup backup 305 Jun 2 00:28 .gc-status
-rw-r--r-- 1 backup backup 0 May 30 10:06 .lock
drwxr-xr-x 3 backup backup 3 May 30 10:33 vm


Also looked at the other threads regarding this issue but I did not manually remove any chunk files or anything :)
 
Last edited:
Yeah as you said they look like mine too :).

Did you also check the folder .chunks for their permissions. Best both of the ones you posted errors for ls -ld .chunks/004f .chunks/001e, and also for the files in those folders.
 
  • Like
Reactions: wirdo02
Yeah as you said they look like mine too :).

Did you also check the folder .chunks for their permissions. Best both of the ones you posted errors for ls -ld .chunks/004f .chunks/001e, and also for the files in those folders.
Hey thanks!
The ownership of the files in 004f are from a completely different user. The strange thing is that this user doesn't even have access to this folder.
Time for some more digging. Thank-you for the pointer.
 
  • Like
Reactions: shrdlicka