-
-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Hello,
When I set a PUID / PGID (for use with a volume),
- all the file ownership are set to that PUID / PGID.
- Very good. 👍
But the nginx server still wants to run with user abc (911) and is not able to read the files.
- HTTP 500 error. 👎
If I set only the PGID:
- Ownership becomes "911" on the host system.
- Then nginx works, and because of the group 100, other users of the host system can access the files.
But this is very problematic.
- How can nginx be made to work properly and have read/write access when a PUID is set?
I suspect this is a bug; something not set properly in the docker image.
Thank you very much for your kind help!
Expected Behavior
The nginx server should be able to read the files to serve the wbeside even if the PUID PGID are set to something.
Right now this is a : HTTP ERROR 500
Steps To Reproduce
I take the docker compose proposed by default (in the doc), and set the PUID and GUID, and set the volume path.
---
services:
grav:
image: lscr.io/linuxserver/grav:latest
container_name: Grav-MyWebSite
environment:
- PUID=1038
- PGID=100
- TZ=America/New_York
volumes:
- /volume1/my_web_site:/config
ports:
- 47801:80
restart: unless-stopped
Environment
Synology NAS DMS 7.2.2
Portainer 2.21.4, using stacks for the docker compose.
I do not know which version of the docker image I use. But it is recent. As far as I know the nginx and site conf are the default ones. I attached the files.env:
root@c838b280e5dd:/# env
PUID=1038
HOSTNAME=c838b280e5dd
S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0
PWD=/
TZ=America/New_York
HOME=/root
LANG=C.UTF-8
PGID=100
VIRTUAL_ENV=/lsiopy
S6_VERBOSITY=1
S6_STAGE2_HOOK=/docker-mods
TERM=xterm-256color
SHLVL=1
PS1=$(whoami)@$(hostname):$(pwd)\$
LC_ALL=C.UTF-8
LSIO_FIRST_PARTY=true
PATH=/lsiopy/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
_=/usr/bin/env
CPU architecture
x86-64
Docker creation
Container logs
[migrations] started
[migrations] 01-nginx-site-confs-default: skipped
[migrations] 02-default-location: skipped
[migrations] done
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support the app dev(s) visit:
Grav: https://opencollective.com/grav/donate
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 1038
User GID: 100
───────────────────────────────────────
using keys found in /config/keys
[custom-init] No custom files found, skipping...
[ls.io-init] done.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Done