linuxserver/docker-grocy

[BUG] config.php not found

CumpsD opened this issue · 4 comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have started the container mounted to a local directory. It has created a data subdirectory with a config.php present. However when I browse to the page I get:

Unable to run grocy: config.php in data directory (/app/www/public/../data) not found. Have you copied config-dist.php to the data directory and renamed it to config.php?

There are no error logs in log

Expected Behavior

No response

Steps To Reproduce

Configured in Docker on Synology with these settings:

image

Environment

- OS: Synology

CPU architecture

x86-64

Docker creation

![image](https://user-images.githubusercontent.com/1201644/210475061-9dd4db2a-32c5-4340-8897-c17b15c0e622.png)

Container logs

2023-01-04T02:43:59.668074105Z	stdout	[04-Jan-2023 03:43:59] NOTICE: ready to handle connections
2023-01-04T02:43:59.667178964Z	stdout	[04-Jan-2023 03:43:59] NOTICE: fpm is running, pid 177
2023-01-04T02:43:59.615628907Z	stdout	s6-rc: info: service 99-ci-service-check successfully started
2023-01-04T02:43:59.615018910Z	stdout	[ls.io-init] done.
2023-01-04T02:43:59.613579161Z	stdout	crond[174]: crond (busybox 1.34.1) started, log level 5
2023-01-04T02:43:59.608159837Z	stdout	s6-rc: info: service 99-ci-service-check: starting
2023-01-04T02:43:59.607801534Z	stdout	s6-rc: info: service legacy-services successfully started
2023-01-04T02:43:59.602218901Z	stdout	services-up: info: copying legacy longrun php-fpm (no readiness notification)
2023-01-04T02:43:59.601089609Z	stdout	services-up: info: copying legacy longrun nginx (no readiness notification)
2023-01-04T02:43:59.599482576Z	stdout	services-up: info: copying legacy longrun cron (no readiness notification)
2023-01-04T02:43:59.593753258Z	stdout	s6-rc: info: service legacy-services: starting
2023-01-04T02:43:59.593498648Z	stdout	s6-rc: info: service init-services successfully started
2023-01-04T02:43:59.591745431Z	stdout	s6-rc: info: service init-services: starting
2023-01-04T02:43:59.591484850Z	stdout	s6-rc: info: service init-mods-end successfully started
2023-01-04T02:43:59.589831194Z	stdout	s6-rc: info: service init-mods-end: starting
2023-01-04T02:43:59.589504842Z	stdout	s6-rc: info: service init-mods-package-install successfully started
2023-01-04T02:43:59.582296768Z	stdout	s6-rc: info: service init-mods-package-install: starting
2023-01-04T02:43:59.581969107Z	stdout	s6-rc: info: service init-mods successfully started
2023-01-04T02:43:59.579462234Z	stdout	s6-rc: info: service init-mods: starting
2023-01-04T02:43:59.579280139Z	stdout	s6-rc: info: service legacy-cont-init successfully started
2023-01-04T02:43:59.577046158Z	stdout	cont-init: info: /etc/cont-init.d/99-custom-files exited 0
2023-01-04T02:43:59.570693775Z	stdout	[custom-init] No custom files found, skipping...
2023-01-04T02:43:59.564840760Z	stdout	cont-init: info: running /etc/cont-init.d/99-custom-files
2023-01-04T02:43:59.564355854Z	stdout	cont-init: info: /etc/cont-init.d/85-version-checks exited 0
2023-01-04T02:43:59.547623625Z	stdout	cont-init: info: running /etc/cont-init.d/85-version-checks
2023-01-04T02:43:59.547474290Z	stdout	cont-init: info: /etc/cont-init.d/50-config exited 0
2023-01-04T02:43:59.268519835Z	stdout	cont-init: info: running /etc/cont-init.d/50-config
2023-01-04T02:43:59.268363511Z	stdout	cont-init: info: /etc/cont-init.d/20-permissions exited 0
2023-01-04T02:43:59.255590322Z	stdout	cont-init: info: running /etc/cont-init.d/20-permissions
2023-01-04T02:43:59.255530747Z	stdout	cont-init: info: /etc/cont-init.d/15-keygen exited 0
2023-01-04T02:43:59.255198831Z	stdout	using keys found in /config/keys
2023-01-04T02:43:59.248974700Z	stdout	cont-init: info: running /etc/cont-init.d/15-keygen
2023-01-04T02:43:59.248796661Z	stdout	cont-init: info: /etc/cont-init.d/14-php exited 0
2023-01-04T02:43:59.240062218Z	stdout	cont-init: info: running /etc/cont-init.d/14-php
2023-01-04T02:43:59.239875110Z	stdout	cont-init: info: /etc/cont-init.d/13-nginx exited 0
2023-01-04T02:43:59.227467672Z	stdout	cont-init: info: running /etc/cont-init.d/13-nginx
2023-01-04T02:43:59.227310767Z	stdout	cont-init: info: /etc/cont-init.d/12-samples exited 0
2023-01-04T02:43:59.215344609Z	stdout	cont-init: info: running /etc/cont-init.d/12-samples
2023-01-04T02:43:59.215191360Z	stdout	cont-init: info: /etc/cont-init.d/11-folders exited 0
2023-01-04T02:43:59.207332457Z	stdout	cont-init: info: running /etc/cont-init.d/11-folders
2023-01-04T02:43:59.207183153Z	stdout	cont-init: info: /etc/cont-init.d/10-adduser exited 0
2023-01-04T02:43:59.198872408Z	stdout	
2023-01-04T02:43:59.198831320Z	stdout	-------------------------------------
2023-01-04T02:43:59.198788104Z	stdout	User gid:    1000
2023-01-04T02:43:59.198724814Z	stdout	User uid:    1000
2023-01-04T02:43:59.198610262Z	stdout	
2023-01-04T02:43:59.195068748Z	stdout	-------------------------------------
2023-01-04T02:43:59.195026042Z	stdout	GID/UID
2023-01-04T02:43:59.194986044Z	stdout	-------------------------------------
2023-01-04T02:43:59.194937494Z	stdout	https://www.linuxserver.io/donate/
2023-01-04T02:43:59.194877282Z	stdout	To support LSIO projects visit:
2023-01-04T02:43:59.194820833Z	stdout	
2023-01-04T02:43:59.194622551Z	stdout	-------------------------------------
2023-01-04T02:43:59.194475839Z	stdout	Brought to you by linuxserver.io
2023-01-04T02:43:59.194423356Z	stdout	
2023-01-04T02:43:59.194384436Z	stdout	
2023-01-04T02:43:59.194343785Z	stdout	         |_| |___/ |_|  \__/
2023-01-04T02:43:59.194303356Z	stdout	         | | \__ \ | | | () |
2023-01-04T02:43:59.194261610Z	stdout	         | | / __| | |  /  \
2023-01-04T02:43:59.194215027Z	stdout	         | |  ___   _    __
2023-01-04T02:43:59.194167424Z	stdout	          _         ()
2023-01-04T02:43:59.194110667Z	stdout	-------------------------------------
2023-01-04T02:43:59.193979912Z	stdout	
2023-01-04T02:43:59.193666137Z	stdout	usermod: no changes
2023-01-04T02:43:59.165478792Z	stdout	cont-init: info: running /etc/cont-init.d/10-adduser
2023-01-04T02:43:59.165384849Z	stdout	cont-init: info: /etc/cont-init.d/01-migrations exited 0
2023-01-04T02:43:59.165227485Z	stdout	[migrations] done
2023-01-04T02:43:59.164949386Z	stdout	[migrations] 02-default-location: skipped
2023-01-04T02:43:59.160772958Z	stdout	[migrations] 01-nginx-site-confs-default: skipped
2023-01-04T02:43:59.148704925Z	stdout	[migrations] started
2023-01-04T02:43:59.142689696Z	stdout	cont-init: info: running /etc/cont-init.d/01-migrations
2023-01-04T02:43:59.141397943Z	stdout	cont-init: info: /etc/cont-init.d/01-envfile exited 0
2023-01-04T02:43:59.110747285Z	stdout	cont-init: info: running /etc/cont-init.d/01-envfile
2023-01-04T02:43:59.105640561Z	stdout	s6-rc: info: service legacy-cont-init: starting
2023-01-04T02:43:59.105302528Z	stdout	s6-rc: info: service fix-attrs successfully started
2023-01-04T02:43:59.104662562Z	stdout	s6-rc: info: service 00-legacy successfully started
2023-01-04T02:43:59.100870383Z	stdout	s6-rc: info: service 00-legacy: starting
2023-01-04T02:43:59.100244783Z	stdout	s6-rc: info: service fix-attrs: starting
2023-01-04T02:43:59.099959469Z	stdout	s6-rc: info: service s6rc-oneshot-runner successfully started
2023-01-04T02:43:59.091356583Z	stdout	s6-rc: info: service s6rc-oneshot-runner: starting
2023-01-04T02:43:59.050133426Z	stdout	[custom-init] No custom services found, skipping...

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

Double checked it is present:

image

I also checked the source, and verified with ls the file is there, but PHP doesn't see it?

image

Nevermind, turns out config did not have any permissions...