Backup failed reason EACCESS: Permission denied

PurpleCloud

New Member
Dec 3, 2023
9
1
3
Hi,
Sometimes backup failed with a similar message :

ERROR: backup write data failed: command error: write_data upload error: pipelined request failed: inserting chunk on store 'ds_01' failed for c878381da568759df2de9b6bfc4edc4b16fb7567d7fc61ddfd90ab74aa7134bc - mkstemp "/mnt/ds_01/.chunks/c878/c878381da568759df2de9b6bfc4edc4b16fb7567d7fc61ddfd90ab74aa7134bc.tmp_XXXXXX" failed: EACCES: Permission denied
INFO: aborting backup job

ds_01 is a NFS Datastore.
proxmoxbackup and pve nodes are granted to have all access to this datastore.

Where can i find more information about this error ?

Thanks for your help
 
First guess out of the blue:

My .chunks folders are owned by
Code:
/pbspool/pbs0/.chunks# ls -al | head -n2
total 6340737
drwxr-x--- 65538 backup backup 65538 Aug 27  2023 .

The user with the name "backup" must have write access. It is not sufficient if "root" can write data.
 
First guess out of the blue:

My .chunks folders are owned by
Code:
/pbspool/pbs0/.chunks# ls -al | head -n2
total 6340737
drwxr-x--- 65538 backup backup 65538 Aug 27  2023 .

The user with the name "backup" must have write access. It is not sufficient if "root" can write data.

Thank you. I reviewed my share configuration, and i had set the read-write access to the proxmox backup server host. The controler is a netapp filer.
 
I reviewed my share configuration,
Did you verify that "backup" can write data?

and i had set the read-write access to the proxmox backup server host.

The host is not the problem, the user "backup" (possibly) is.

Does this work, run inside your .chunks folder:
Code:
root@...:/pbspool/pbs0/.chunks# su  -p backup -c  "touch testfile"

root@...:/pbspool/pbs0/.chunks# ls -al testfile
-rw-r--r-- 1 backup backup 0 Apr 21 11:37 testfile
 
Did you verify that "backup" can write data?



The host is not the problem, the user "backup" (possibly) is.

Does this work, run inside your .chunks folder:
Code:
root@...:/pbspool/pbs0/.chunks# su  -p backup -c  "touch testfile"

root@...:/pbspool/pbs0/.chunks# ls -al testfile
-rw-r--r-- 1 backup backup 0 Apr 21 11:37 testfile
yes, it's ok

1745236167764.png
 
  • Like
Reactions: UdoB
Well, so my guess was wrong, sorry...
 
sounds like an NFS issue, could you check the system logs around that time on the PBS and NFS side?
 
Additionally the complete mount-options might be interesting:
```
mount |grep nfs
```
 
Additionally the complete mount-options might be interesting:
```
mount |grep nfs
```
I checked both log on the server (dmesg) and the controler side, but i don't find any bug.
Here is the mount options :

ipaddr://ds_01 on /mnt/ds_01 type nfs (rw,noatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=ipaddr,mountvers=3,mountport=635,mountproto=udp,local_lock=all,addr=ipaddr)
 
I checked both log on the server (dmesg) and the controler side, but i don't find any bug.
Here is the mount options :

ipaddr://ds_01 on /mnt/ds_01 type nfs (rw,noatime,vers=3,rsize=65536,wsize=65536,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=ipaddr,mountvers=3,mountport=635,mountproto=udp,local_lock=all,addr=ipaddr)
Just check the access rights on your NAS.
 
Just check the access rights on your NAS.
Thank you for the reply.

I already checked the rights on the netapp side. I cannot give more rights...
I have found a topic on the netapp kb library (https://kb.netapp.com/Cloud/BlueXP/...fer_fails_with_Error_EACCES_permission_denied). It seems it could be a lock. That is why the backup is success after i manually retry. The workaround could be an automatic retry on the proxmox backup job side. But i don't think this exists. to be continued...