Hi,
this is a thread that I already started on github, but open it here again. ovpc was helping me there already. The original error was:
I wanted to upgrade to Buster, downloaded the recently updated Docker container, stopped my old container, pulled the new one and started it with the same parameters as the previous one.
The container starts, I can go in (bash) and ncp-config
works as well, but the nextcloud is not reachable.
I ran ncp-update
and got this:
ncp-update
Downloading updates
Performing updates
Hit:1 http://deb.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://deb.debian.org/debian buster-updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
exfat-utils is already the newest version (1.3.0-1).
exfat-fuse is already the newest version (1.3.0-1).
php-smbclient is already the newest version (0.9.0-3+b1).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
lsb-release is already the newest version (10.2019051400).
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
NextCloudPi updated to version v1.15.3
So far so good, but it still doesnât work, fixing permissions got me this error:
Running nc-fix-permissions
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"OUC9h4lV91mp62DVNwle","level":3,"time":"2019-07-30T06:19:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/pubShare_737add2d.publicKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"OUC9h4lV91mp62DVNwle","level":3,"time":"2019-07-30T06:19:34+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/pubShare_737add2d.privateKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"OUC9h4lV91mp62DVNwle","level":3,"time":"2019-07-30T06:19:44+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/master_737add2d.publicKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"OUC9h4lV91mp62DVNwle","level":3,"time":"2019-07-30T06:19:44+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/master_737add2d.privateKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"OUC9h4lV91mp62DVNwle","level":3,"time":"2019-07-30T06:19:44+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fileperms(): stat failed for \/media\/USBdrive\/ncdata\/nextcloud.log at \/data\/nextcloud\/lib\/private\/Log\/File.php#140","userAgent":"--","version":"15.0.8.1"}
{"reqId":"OUC9h4lV91mp62DVNwle","level":3,"time":"2019-07-30T06:19:44+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"chmod(): No such file or directory at \/data\/nextcloud\/lib\/private\/Log\/File.php#141","userAgent":"--","version":"15.0.8.1"}
data directory not found
Done. Press any key...
Well, as I said before, I started it with the same parameters, -v /media/data/nextcloud:/data
, which worked before. Now both (the stopped container) and the new have wrong location settings, it seemsâŚ
Is that a known bug and is it easily fixable?
Last but not least the nc-info (the ports are supposed to be closed!):
Running nc-info
Gathering information...
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"Mp5SfaLVMvEflkCqPjB1","level":3,"time":"2019-07-30T06:22:08+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/pubShare_737add2d.publicKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"Mp5SfaLVMvEflkCqPjB1","level":3,"time":"2019-07-30T06:22:08+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/pubShare_737add2d.privateKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"Mp5SfaLVMvEflkCqPjB1","level":3,"time":"2019-07-30T06:22:13+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/master_737add2d.publicKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"Mp5SfaLVMvEflkCqPjB1","level":3,"time":"2019-07-30T06:22:14+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/media\/USBdrive\/ncdata\/files_encryption\/OC_DEFAULT_MODULE\/master_737add2d.privateKey): failed to open stream: No such file or directory at \/data\/nextcloud\/lib\/private\/Files\/Storage\/Local.php#284","userAgent":"--","version":"15.0.8.1"}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /data/nextcloud/lib/private/Log/File.php on line 140
{"reqId":"Mp5SfaLVMvEflkCqPjB1","level":3,"time":"2019-07-30T06:22:14+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fileperms(): stat failed for \/media\/USBdrive\/ncdata\/nextcloud.log at \/data\/nextcloud\/lib\/private\/Log\/File.php#140","userAgent":"--","version":"15.0.8.1"}
{"reqId":"Mp5SfaLVMvEflkCqPjB1","level":3,"time":"2019-07-30T06:22:14+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"chmod(): No such file or directory at \/data\/nextcloud\/lib\/private\/Log\/File.php#141","userAgent":"--","version":"15.0.8.1"}
NextCloudPi version v1.15.3
NextCloudPi image NextCloudPi_docker_07-20-19
distribution Debian GNU/Linux 10 \n \l
automount no
USB devices sda
datadir /media/USBdrive/ncdata (doesn't exist)
rootfs usage 4.2G/59G
swapfile none
dbdir /data/database
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 172.17.0.2
gateway 172.17.0.1
interface eth0
certificates none
NAT loopback no
uptime 35days
A bit of history here: I created the nextcloudpi before I knew Docker and on that instance the datadir was /media/USBdrive
. After switching to Docker I didnât want to change too much and imported a backup of the NCP instance from before, which resulted in a Nextcloud that had the datadir in USBdrive.
All worked fine and even though it doesnât look so nice to have the datadir in /media/USBdrive, it was working.
Now I changed my docker command:
This was my previous docker command, used it several times with the old docker container:
sudo docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /media/data/nextcloud:/data -v /media/data/backup:/media/backup --name nextcloudpi_ag5 ownyourbits/nextcloudpi-armhf
Now I used after finding the nc-data-dir:
sudo docker run -d -p 4443:4443 -p 443:443 -p 80:80 -v /media/data/nextcloud:/data -v /media/data/backup:/media/backup -v /media/data/files/ncdata:/media/USBdrive --name nextcloudpi_ag7 ownyourbits/nextcloudpi-armhf
I get no errors anymore, but a 503 Service Unavailable when I want to open NC.
Iâm a bit lost, tried to work on the config.php, but no real success on that side either.
Iâd be really glad for help!