I have a weird issue that I’m not sure how to do about. I’m moving my old web server vm into an LXC container. The image is ubuntu 22.04. The data directory on this vm was an NFS share connected to the NAS for more storage. Since moving to proxmox, I attempted to follow guides that said to mount the share to the host, then pass that through to the container. I have this NFS share setup to use www-data (ID:33) as the owner:group on the host, but on the container it shows up as nobody:nogroup. It seems to still work, but when I ran the updater through command line, I get a ton of "php warning rename() operation not permitted. Am I doing something wrong? The update is still successful, but I never had this error. Maybe I missed a PHP plugin during the setup or something isn’t configured right. Anybody with better insight to Proxmox and LXC, or if there’s a better way to accomplish what I’m doing, I’m all in for suggestions.
Hi,
i am using Proxmox but NC is a VM not an LXC.
The data dir is “local” on the cloud server but other data folders like some of the groupfolders are mounted to a NFS share.
In some threads of the proxmox forum, concerning v8 proxmox, you have easily the choice to get NFS shares without setting a mountpoiunt in Ressources but setting an option like the following tags
(depends if you have a so called unprivileged or privileged container!)
more see: https://forum.proxmox.com/threads/tutorial-mounting-nfs-share-to-an-unprivileged-lxc.138506/
In Nextcloud you can set the datadirectory different from updatedirectory
https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html
during updates so many files have to be downloaded and unpacked - IMHO a NFS share is maybe a little bit too slow for performing well here.
datadir: Configuration Parameters — Nextcloud latest Administration Manual latest documentation
updatedir: Configuration Parameters — Nextcloud latest Administration Manual latest documentation
The reights setting to www-data:www-data (ID:33) i have set on host AND LXC as well (proxmox is debian - but also uses ID 33 for www-data usually) same as ubuntu does.
about using the same UID across host ↔ lxc this post is helpful as well