Nextcloud version: 14.0.1
Operating system and version: Ubuntu 16.04, Raspbian 9
Apache or nginx version: Lighttpd lighttpd/1.4.35 (Ubuntu) and lighttpd/1.4.45 (Raspbian)
PHP version: 7.0.30-0+deb9u1 (Raspbian) and 7.0.32-0ubuntu0.16.04.1 (Ubuntu)
The issue you are facing: When trying to run the same Nextcloud instance from different servers mounting via NFS the one which mount the nextcloud
folder don’t work and report something like
Data folder isn't valid
Ensure that the ".ocdata" is present in the root of your data folder.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Install an instance on a server (srv1)
- Share it via NFS
- Mount it on another server (srvn)
- Try to access from srvn
- Error is reported
NFS export on srv1:
/var/www/html/nextcloud 10.2.14.0/24(rw,no_subtree_check,sync,nohide)
Mount on srvn (fstab):
srv1:/var/www/html/nextcloud /mnt/nextcloud nfs4 _netdev,bg,nofail,rw,relatime,fsc,rsize=65536,wsize=65536 0 0