linuxserver / docker-jellyfin

GNU General Public License v3.0
600 stars 92 forks source link

[BUG] PGID is ignored #231

Closed ThePlexus closed 5 months ago

ThePlexus commented 5 months ago

Is there an existing issue for this?

Current Behavior

When setting -e PGID=500 the GID inside the container is set to 65534. Mounted host drives with GID permissions for 500 are denied permissions

Expected Behavior

The expected behavior is PGID sets the host group ID correctly

Steps To Reproduce

create docker container as per the provided script, check logs, GID is 65534

Environment

- OS:alpine 3.19
- How docker service was installed: OS installer APK. Using dockremap

CPU architecture

x86-64

Docker creation

docker run \
-d \
--name jellyfin \
-p 8096:8096/tcp \
-e TZ="Europe/London" \
-e PUID=500 \
-e PGID=500 \
-v /opt/jellyfin/config:/config \
-v /opt/Movies:/data/movies \
-v /opt/TV:/data/tvshows \
--device=/dev/dri:/dev/dri \
--restart unless-stopped \
  lscr.io/linuxserver/jellyfin:latest

Container logs

docker logs jellyfin
[migrations] started
[migrations] no migrations found
───────────────────────────────────────

      ██╗     ███████╗██╗ ██████╗ 
      ██║     ██╔════╝██║██╔═══██╗
      ██║     ███████╗██║██║   ██║
      ██║     ╚════██║██║██║   ██║
      ███████╗███████║██║╚██████╔╝
      ╚══════╝╚══════╝╚═╝ ╚═════╝ 

   Brought to you by linuxserver.io
───────────────────────────────────────

To support the app dev(s) visit:
Jellyfin: https://opencollective.com/jellyfin

To support LSIO projects visit:
https://www.linuxserver.io/donate/

───────────────────────────────────────
GID/UID
───────────────────────────────────────

User UID:    500
User GID:    65534
───────────────
[20:36:40] [ERR] [8] Emby.Server.Implementations.IO.LibraryMonitor: Error in Directory watcher for: /data/tvshows
System.UnauthorizedAccessException: Access to the path '/data/tvshows/News' is denied.
 ---> System.IO.IOException: Permission denied
   --- End of inner exception stack trace ---
github-actions[bot] commented 5 months ago

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

ThePlexus commented 5 months ago

ignore, dockremap issue