2024-12-18, 05:17 AM
(This post was last modified: 2024-12-18, 05:21 AM by Pollo. Edited 1 time in total.)
(2024-12-18, 03:10 AM)theguymadmax Wrote: In the terminal, type: id
This will display your UID and GID, which you can then enter for the user. See the example below:
Code:services:
jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
user: 1000:1000
group_add:
- "992" #render
network_mode: 'host'
volumes:
- /home/max/docker/Jellyfin/Config:/config
- /home/max/docker/Jellyfin/Cache:/cache
- /media/Media:/Media
restart: 'unless-stopped'
devices:
- /dev/dri/renderD128:/dev/dri/renderD128
Thank you, that seemed to work! However I'm getting a new error now
Code:
jellyfin | Unhandled exception.
jellyfin | System.UnauthorizedAccessException: Access to the path '/config/log' is denied.
jellyfin | ---> System.IO.IOException: Permission denied
jellyfin | --- End of inner exception stack trace ---
jellyfin | at System.IO.FileSystem.CreateDirectory(String fullPath, UnixFileMode unixCreateMode)
jellyfin | at System.IO.Directory.CreateDirectory(String path)
jellyfin | at Jellyfin.Server.Helpers.StartupHelpers.CreateApplicationPaths(StartupOptions options)
jellyfin | at Jellyfin.Server.Program.StartApp(StartupOptions options)
jellyfin | at Jellyfin.Server.Program.<Main>(String[] args)
jellyfin exited with code 139
I tried changing the directories, creating them, and disable + re-enabling docker through snap, but I still get the same error. I'm not sure if this change is correct or if I need to make the /config/log directory.
Code:
volumes:
- /var/snap/docker/common/var-lib-docker/volumes/jellyfin-config:/var/log/docker/jellyfin/config
- /var/snap/docker/common/var-lib-docker/volumes/jellyfin-cache:/var/log/docker/jellyfin/cache