• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Jellyfin container with custom user doesn't support web-plugins

     
    • 0 Vote(s) - 0 Average

    Jellyfin container with custom user doesn't support web-plugins

    Jellyfin in a container doesn't fully support plugins that inject JS to alter the player
    Eeeeelias
    Offline

    Junior Member

    Posts: 4
    Threads: 3
    Joined: 2024 Mar
    Reputation: 0
    Country:Germany
    #1
    2024-09-17, 08:10 PM
    Hey all,
    I am running Jellyfin (10.9.10) as a container with a custom UID & GID (here: 1000:1000) as described in this example: https://jellyfin.org/docs/general/instal...er-compose.
    So far so good, jellyfin itself works normally, things like image scrubbing also work as expected.
    I did notice, however, that plugins that edit the web-interface (e.g. add skip intro button) will not work any more. The button is not being displayed any more. The same thing happens to the button "In Player Episode Preview" adds - also gone. This is obviously due to some kind of permission error. In the logs, I get confirmation:
    Code:
    [2024-09-17 20:22:39.779 +02:00] [ERR] [4] Namo.Plugin.InPlayerEpisodePreview.InPlayerEpisodePreviewPlugin: Encountered exception while writing to "/jellyfin/jellyfin-web/index.html": "System.UnauthorizedAccessException: Access to the path '/jellyfin/jellyfin-web/index.html' is denied.
    I tried to attach logs but I'm not allowed to somehow?

    I did manage to find a solution:
    Code:
    docker exec -u 0 -it jellyfin bash
    and then
    Code:
    chown -R 1000:1000 /jellyfin/jellyfin-web

    This immediately restores the functionality of both plugins upon restart. It feels like it's not the right way of handling this issue, however, since I'm just brute-force changing the user to whatever I set (and will not survive docker-compose down).
    Thus, my question: Is there a more proper way to use a custom user with jellyfin? Or is this an issue with plugin-creators?

    I also tested this with a brand-new (debug) instance of jellyfin, it shows the same behaviour.

    Thanks for your help!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-09-17, 08:53 PM (This post was last modified: 2024-09-17, 08:53 PM by TheDreadPirate.)
    The "user" parameter only controls what user the container runs as. And that user only needs permissions to writeable portions of the container, /config and /cache. The rest of the container is, essentially, read-only to whatever user is defined.

    I tested with the Linuxserver image of Jellyfin, since it uses PUID and PGID environment variables, but I wasn't able to get the namo plugin to overwrite index.html.

    You could explore having docker run post startup scripts/commands. But I'm not certain when during the startup process those run. Whether they run when the container starts, but before Jellyfin finishes starting, etc.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode