- Two separate web servers that each have the same NFS mount point
- One server works without issue while the second server complains about not having write permissions to the config directory and to the data directory
Both web servers should report the same way. Both servers have the same users/groups and see the same permissions on the NFS mount.
The second server complains about not having write permission to the config and data directories.
Operating system: Centos 7 (server 1) / Centos 9 Stream (server 2)
Web server: Apache
Database: MySQL / MariaDB
PHP version: 7.3.33 (server 1) / 7.4.28 (server 2)
ownCloud version: 10.9.1
Updated from an older ownCloud or fresh install: NA
Where did you install ownCloud from: NA
Signing status (ownCloud 9.0 and above): NA
Research has led to a number of issues in the NextCloud software from 2017-2020 where the results of the function is_writable appears to be invalid and should not be relied upon. Commenting out lines 754-765 and 785-793 in /lib/private/legacy/util.php resolved the problem and Owncloud works as expected on both servers.
The resolution for NextCloud was to augment the is_writable call with an actual file write and then removal as a check for write permissions. Is this an update that could be put into Owncloud?