Jellyfin Forum
SOLVED: permission problem - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: SOLVED: permission problem (/t-solved-permission-problem)



permission problem - zeftoony - 2023-06-28

I get this error when I use linuxserver.io image
Code:
s6-mkdir: warning: unable to mkdir /run/s6: Permission denied
jellyfin  |  s6-mkdir: warning: unable to mkdir /run/service: Permission denied
jellyfin  |  s6-overlay-suexec: fatal: child failed with exit code 111
jellyfin  |  s6-overlay-suexec: warning: unable to gain root privileges (is the suid bit set?)

And, when I use official one I get this:
Code:
---> System.IO.IOException: Permission denied
jellyfin  | 2023-06-28T05:24:43.577199081Z    --- End of inner exception stack trace ---
jellyfin  | 2023-06-28T05:24:43.577205208Z    at System.IO.FileSystem.CreateDirectory(String fullPath)
jellyfin  | 2023-06-28T05:24:43.577218922Z    at System.IO.Directory.CreateDirectory(String path)
jellyfin  | 2023-06-28T05:24:43.577226246Z    at Jellyfin.Server.Program.CreateApplicationPaths(StartupOptions options)
jellyfin  | 2023-06-28T05:24:43.577232268Z    at Jellyfin.Server.Program.StartApp(StartupOptions options)
jellyfin  | 2023-06-28T05:24:43.577238626Z    at Jellyfin.Server.Program.<Main>(String[] args)

My docker compose conf.
Code:
 
version: "3.9"
jellyfin:
    image: jellyfin/jellyfin:latest
    container_name: jellyfin
    networks:
      - t2_proxy
    security_opt:
      - no-new-privileges:true
    restart: unless-stopped
    user: $PUID:$PGID
    devices:
      - /dev/dri:/dev/dri # for harware transcoding
    ports:
      - "8096:8096"
      # - "8920:8920" # Emby also uses same port if running both
    environment:
      UMASK_SET: 022
      PUID: $PUID
      PGID: $PGID
      TZ: $TZ
      #DOCKER_MODS=linuxserver/mods:jellyfin-amd|linuxserver/mods:jellyfin-opencl-intel
    volumes:
      - $DOCKERDIR/appdata/jellyfin:/config
      - /data/medias/media:/data/media
      - /data/vmedia/media:/data/vmedia
      #- $EXTDIR/ssd/home-server/downloads:/data/downloads
      - /dev/shm:/data/transcode # Offload transcoding to RAM if you have enough RAM

PUID=1000
PGID=1000

Docker root folder permissions
Code:
drwxrwxr-x+ 10 root          root          4096 Jun 28 05:03 appdata
-rwxrwxr-x+  1 root          root            862 Jun 28 07:38 docker-compose-jellyfin.yml
-rwxrwxr-x+  1 administrator administrator  6953 Jun 28 07:56 docker-compose-start.yml
-rwxrwxr-x+  1 root          root          29006 Jun 27 23:47 docker-compose-t2.yml
-rw-------+  1 root          root            478 Jun 28 07:51 .env
-rwxrwxr-x+  1 root          root          3115 Jun 28 01:30 i
drwxrwxr-x+  2 root          root          4096 Jun 27 18:09 logs
drwxrwxr-x+  2 root          root          4096 Jun 27 18:09 scripts
drw-------+  2 root          root          4096 Jun 28 03:20 secrets
drwxrwxr-x+  2 root          root          4096 Jun 27 18:09 shared

pls, help
I'm new to Linux in genral.
I was following smarthomebeginner.com guides

Edit: forgot to add "version: "3.9""
Edit 2: docker root folder permissions


RE: permission problem - zeftoony - 2023-06-28

Used
Code:
sudo chown -R user:user docker/appdata

This solved it

why was this folder created with root owner in the first place?!