Permission issues setting up NFS as a datastore for PBS

hobbybuild

New Member
Dec 24, 2024
2
0
1
I feel like I've tried everything I can think of or find on the internet, but this issue just won't go away.

My setup:
- one node proxmox ve
- synology nas
- attempting to set up pbs as lxc (debian 11) on the ve, using an nfs on the nas as the datastore

I have created the folder on the nas, configured it to allow the proxmox host to connect it, and successfully mounted it on the host. I then mount it on the pbs lxc using a mountpoint. At this point, both the host and pbs can successfully access (and write) on the nfs, and I can access the pbs web ui.

But when I attempt to add the folder as a datastore, I get permission issues.

This is the error on the cli

root@backup:/nas-backup# proxmox-backup-manager datastore create nas-backup /nas-backup/proxmox
TASK ERROR: unable to create chunk store 'nas-backup' at "/nas-backup/proxmox" - EPERM: Operation not permitted

It is actually successful in creating the subfolder but fails afterwards. Permissions show up as nobody / nogroup, which makes sense since synology is mapping those to the user 1024.

For the NFS share, I have tested mapping all to admin (on synology that seems to be the actual admin account 1024, not root), as well as mapping root to admin, and no mapping. Not much of change (though without mapping, I'm not able to write on the share).

What am I missing here? Should I instead run the pbs as priviledged so I could try mounting the nfs directly? Still not sure that would help given that the guest is still able to write as it is. Also the user `backup` is able to write to the nfs.
 
@hobbybuild I have the same problem... did you find the correct 'combination' to make it work?
@tcabernoch I have been through a lot of forum answers but not found one that does the trick :/

This one seems to solve it: https://forum.proxmox.com/threads/eperm-on-accessing-nfs-share-on-synology-nas.155979/ but I have been unable to do the same, because synology does not allow setting UID's to users and the forum link does not specify how.
Similar here https://forum.proxmox.com/threads/n...bs-cant-eperm-operation-not-permitted.148453/ but that is TrueNas and I guess different settings apply there.
 
@depechie unfortunately I haven't - though very recently I haven't had the time to try more things. I'm considering just installing PBS on the NAS instead, as a docker container, but haven't gotten to it yet. And exactly like you mentioned, I've been through a bunch of posts and tried a lot of things without getting it all to line up correctly :/
 
Unless you are using a privileged LXC container (bad idea) you cannot mount an NFS share directly in the container. You have to mount the NFS share on the host machine and do a bind mount from the container to the Proxmox host.
 
Unless you are using a privileged LXC container (bad idea) you cannot mount an NFS share directly in the container. You have to mount the NFS share on the host machine and do a bind mount from the container to the Proxmox host.
Hey @louie1961 that is what I'm doing but still getting an exception stating permission denied.