-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Getting the error when loading up a default instance of cops using 3.1.2-ls223 (latest as of writing)
Error loading local.php
Failed opening required '/app/www/public/config/local.php' (include_path='.:/usr/share/php83') in /app/www/public/config/config.php line 15
Checking the file permissions on /app/www/public/config/local.php it's owned by root and the permissions are rwx for root user only. Since the app runs with the user and group abc, the file cannot be read:
~#/docker exec -t -i cops /bin/bash
root@d790c89eb80f:/# cd /app/www/public/config
root@d790c89eb80f:/app/www/public/config# ls -la
total 48
drwxrwxr-x 1 root root 150 Sep 10 15:28 .
drwxr-xr-x 1 root root 1128 Sep 9 10:36 ..
-rw-rw-r-- 1 root root 22 Sep 9 05:11 .gitignore
-rw-rw-r-- 1 root root 1857 Sep 9 05:11 config.php
-rw-rw-r-- 1 root root 21928 Sep 9 05:11 default.php
-rw-rw-r-- 1 root root 2445 Sep 9 05:11 loader.php
-rwx------ 1 root root 3993 Sep 10 15:28 local.php
-rw-rw-r-- 1 root root 2476 Sep 9 05:11 local.php.example
-rw-rw-r-- 1 root root 679 Sep 9 05:11 test.php
Changing the permissions to match the other files in the directory with chmod 664 local.php, the error goes away and cops loads as expected in the browser.
Compose file used:
services:
cops:
container_name: cops
environment:
- PUID=666
- PGID=1337
- TZ=America/Los_Angeles
ports:
- '127.0.0.1:5230:80'
volumes:
- '/docker/cops:/config'
- '/ebooks:/books'
restart: unless-stopped
image: lscr.io/linuxserver/cops:version-3.1.2-ls223
Expected Behavior
Cops should load correctly.
Steps To Reproduce
Just run the container from scratch with the above compose file.
Environment
- OS: n/a
- How docker service was installed: portainer stack/docker composeCPU architecture
x86-64
Docker creation
services:
cops:
container_name: cops
environment:
- PUID=666
- PGID=1337
- TZ=America/Los_Angeles
ports:
- '127.0.0.1:5230:80'
volumes:
- '/docker/cops:/config'
- '/ebooks:/books'
restart: unless-stopped
image: lscr.io/linuxserver/cops:version-3.1.2-ls223Container logs
n/aReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done