[SOLVED] Nfs share bind mounted issues.

icemox

Active Member
Aug 23, 2018
5
3
43
47
Here's a headscratcher for me.

I have a web application that reads files from a folder. Those files are bind-mounted to the LXC container in /path/folder

If the files are in the proxmox host storage pool everything works fine.

BUT if I move those files to a NAS, mount the nfs share to the proxmox host and bind mount said share inside the container apache returns a blank page (without any erros even with LogLevel debug)! I checked and all files are still accessible inside container (I read them one by one including sudo-ed as the www user)

I'm puzzled ...

TL;DR bind mount from host works, bind mounted nfs share doesn't work for apache even if files are still there and readable
 
You can read the files as the www-user? And this is the same user that should read those files. Have you tried to chmod 777 those files to test if it is really not a permission problem?
 
I was looking for errors in the wrong place, I should have checked the nfs server. It was a matter of enabling:

systemctl enable rpc-statd
systemctl start rpc-statd

on the NAS machine.

Weirdly enough the web application didn't timeout, it would load blank and didn't complain about anything. Weird but solved.