Proxmox, OMV, NFS, permissions

Hi,
I created NFS folder under OMV. I created user who is owner of this folder UID= 1002,GID = 100.
In Proxmox I installed Debian, Docker, Portainer. Im trying install Linuxserver/nextcloud:latest.
No matter I do I get always Permission denied during instalation on the NFS folder.

Could anyone help please with the correct setting of the NFS folder to be able install NextCloud?

There is no “one setting”. It depends on the various pieces you’ve opted to use.

At a minimum, I’m guessing you’ll want to start the LSIO image with the PUID and PGID parameters. See their docs.

Hi,

thank you for your help, but the quide is not working or not clear. I created NFS folder owner with PUID=1000, PGID=100. When I use this during instalation I get the permission error. Is here anyone who is able to investigate where is the problem?

These PUID and PGID variables, are, afaik, a linuxserver.io specific thing, and questions about how they work, are probrably better asked in their forums: https://discourse.linuxserver.io/

Your setup involves quite a few moving parts (none of which are directly related to Nextcloud, by the way), and one would need to know in much greater detail how all the components are set up in order to provide more than a few educated guesses.

My guess would be, that you probably need to export and mount the NFS share with the exact same user and group that is assigned to the corresponding uid and gid on the Debian server.

So I would try to create a user ncdata on OMV (or any name you like) and then export an NFS share owned by this user.

Then also create the ncdata user on the Debian server, and mount the NFS share to a folder that is owned by the ncdata user, and then use the uid and gid of the ncdata user in Debian as PUID and PGID when starting the container.

1 Like