Hi
I have issues getting Nextcloud from linuxserver to work.
Problem:
When using the first run Wizard I always get the message that it “can’t create or write into the data directory”.
Yes, there are quite a few threads on the internet on that topic. I’ve been trying to solve that problem for 3 hours now.
Setup:
System:
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:48:52 2018
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:19:08 2018
OS/Arch: linux/amd64
Experimental: false
Startup and settings:
I start nextcloud with docker-compose
according to the link above with adaptations to my system:
version: "2"
...
environment:
- PUID=48
- PGID=100
...
volumes:
- /var/hda/files/nextcloud/config:/config
- /var/hda/files/nextcloud/data:/data
...
Permissions:
PUID=48 is the user apache
(as it is the “webuser”) on my server and PGID=100 is the group users
. /var/hda/files/nextcloud/
and its subfolder have chown apache:users
set. I even did chmod -R 777 /var/hda/files/nextcloud/data
. Still no luck!
open_basedir:
I also read about the “open_basedir”-problem e.g. here. With docker exec -it nextcloud bash
I can find /etc/php7/php.ini
which would have to be modified in order to add the path do my data-directory. Yet, I have no idea how to modify a file in a running container. The help on the net was too complicated for my level of expertise.
On the other hand the /var/hda/files/nextcloud/conig/php/php-local.ini
is probably meant to provide a possibility to edit the file in the container - at least is says so: “edit this file to override php.ini directives and restart the container”.
Yet when i apend open_basedir = "var/hda/files/nextcloud/data"
nextcloud won’t start. Again I may be doing something wrong here.
Question:
Can anyone point me at something I’m doing wrong or has some hints on how to proceed?
Thanks a lot!!