Skip to content

how to get perms for bind mounts for prefs and such #10

@g13092

Description

@g13092

I'm running via compose with the following settings:
`version: "3.3"

services:
rompr:
image: chrll/rompr
container_name: rompr
restart: unless-stopped
ports:
- "80:80"
volumes:
- /srv/0c678f4d-ccb8-4aea-a90a-f8153588a6b9/appdata/rompr/prefs:/app/rompr/prefs
- /srv/0c678f4d-ccb8-4aea-a90a-f8153588a6b9/appdata/rompr/albumart:/app/rompr/albumart`

But, the log in the docker complains

rm: cannot remove '/var/run/nginx.pid': No such file or directory
Restarting PHP 7.4 FastCGI Process Manager: php-fpm7.4.

And when i go to the webpage for the interface, I get:
`
_Warning: fopen(prefs/prefs.lock): failed to open stream: Permission denied in /app/rompr/includes/prefs.class.php on line 356

Warning: fclose() expects parameter 1 to be resource, bool given in /app/rompr/includes/prefs.class.php on line 357

Warning: fopen(prefs/prefs.var): failed to open stream: Permission denied in /app/rompr/includes/prefs.class.php on line 416
Fatal Error - Could not open the preferences file

Warning: error_log() expects parameter 2 to be int, string given in /app/rompr/includes/prefs.class.php on line 437

Warning: unlink(prefs/prefs.lock): No such file or directory in /app/rompr/includes/prefs.class.php on line 361`

from reading at fatgerman's git, I get the impression I need to set a PID and GID in this compose file or do something on the server where those bind mounts live to get write access._ '

Any thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions