I am running the last version of Nextcloudpi. It’s using an external hd as data directory. I often encounter the following error when calling my URL:
Your data directory is not writable Permissions can usually be fixed by giving the webserver write access to the root directory
A temporary solution is to reboot the raspberry pi. After a few hours, the error message reappears. Running nc-fix-permissions
did not help.
This is the output of nc-info
in “error state”, i.e. before rebooting:
Running nc-info
Gathering information…
{“reqId”:“JnNJtJUojxlMO2H8JuG5”,“level”:2,“time”:“2020-09-23T18:13:52+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“no app in context”,“method”:“”,“url”:“–”,“message”:“Temporary directory /media/nc_data/ncdata/tmp is not present or writable”,“userAgent”:“–”,“version”:“19.0.2.2”}
{“reqId”:“JnNJtJUojxlMO2H8JuG5”,“level”:3,“time”:“2020-09-23T18:13:54+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“fopen(/media/nc_data/ncdata/data_dir_writability_test_5f6b9062ed14a.tmp): failed to open stream: Read-only file system at /var/www/nextcloud/lib/private/legacy/OC_Util.php#790”,“userAgent”:“–”,“version”:“19.0.2.2”}
{“reqId”:“JnNJtJUojxlMO2H8JuG5”,“level”:3,“time”:“2020-09-23T18:13:54+00:00”,“remoteAddr”:“”,“user”:“–”,“app”:“PHP”,“method”:“”,“url”:“–”,“message”:“fopen(/media/nc_data/ncdata/nextcloud.log): failed to open stream: Read-only file system at /var/www/nextcloud/lib/private/Log/File.php#84”,“userAgent”:“–”,“version”:“19.0.2.2”}
NextCloudPi version v1.30.0
NextCloudPi image NextCloudPi_09-05-20
distribution Raspbian GNU/Linux 10 \n \l
automount yes
USB devices sda
datadir /media/nc_data/ncdata
data in SD no
data filesystem ext2/ext3
data disk usage 2.3G/293G
rootfs usage 2.2G/15G
swapfile /var/swap
dbdir /var/lib/mysql
Nextcloud check error
HTTPD service up
PHP service up
MariaDB service up
Redis service up
Postfix service up
internet check ok
port check 80 closed
port check 443 closed
IP 192.168.178.20
gateway 192.168.178.1
interface eth0
certificates xxxx
NAT loopback yes
uptime 1day
Any idea on a remedy?