• 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 SOLVED: Migrated to Docker: can't scan libraries?

     
    • 0 Vote(s) - 0 Average

    SOLVED: Migrated to Docker: can't scan libraries?

    dataprolet
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Aug
    Reputation: 0
    #1
    2023-08-09, 05:24 PM (This post was last modified: 2023-08-09, 10:30 PM by dataprolet. Edited 1 time in total.)
    I migrated my Jellyfin installation on Arch Linux to a Docker container on Debian according to the official instructions. I created a colume for /config and one for /cache as well as bind mounted my media drive to /config/data/media. Everything seemed to work out-of-the-box. My user accounts, plugins and library were all showing up. I can watch all my latest media as if nothing ever happened.
    But I can't scan my libraries! The scheduled task failed and when I try to manually scan my existing libraries the window seems to break and simply shows a black screen and the top menu bar.
    When I right-click my library listed under "My Media" and select "Edit metadata" it shows a wrong path (/var/lib/jellyfin/root/default/media). I already tried to edit this in the library.db, but then all my media disappeared from the Dashboard.
    What am I missing or doing wrong? How come I can play my media but not scan the library?
    I also get constant error logs like the following:
    Code:
    [17:24:20] [INF] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: CustomAuthentication was not authenticated. Failure message: Invalid token.
    [17:24:20] [INF] [8] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was challenged.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-08-09, 05:30 PM
    Switch the bind mount for your media to a volume. I'm not expert enough to explain why, but bind mounts introduce some complications that require extra configuration to get everything to work correctly. Its easier to just mount your media as a volume.

    Those token errors may be related to your migration. Your clients may be using cached tokens for authentication that may not be valid anymore. Or something like that.
    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]
    dataprolet
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Aug
    Reputation: 0
    #3
    2023-08-09, 07:45 PM
    Thank, but how do I add existing data to a Docker container using a volume? I have several TB of media files, that I really don't want to copy into a volume.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-08-09, 07:59 PM
    Volumes don't get copied. You are mapping a host directory to a directory in the container.

    Code:
    --volume /path/to/media/on/host:/media

    Or, if using docker compose

    Code:
    volumes:
          - /path/to/media/on/host:/media

    Within the container /media is mapped to wherever you have your media on the host. No copying is done.
    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]
    dataprolet
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Aug
    Reputation: 0
    #5
    2023-08-09, 08:50 PM
    That does seem to work, but only when I re-add the libraries in Jellyfin. But then Jellyfin is also scanning everything again..
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2023-08-09, 09:15 PM (This post was last modified: 2023-08-09, 09:15 PM by TheDreadPirate.)
    If you mounted it to the same path as before it should have been transparent. /media was just an example. Well, as long as it works now...
    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]
    dataprolet
    Offline

    Junior Member

    Posts: 9
    Threads: 4
    Joined: 2023 Aug
    Reputation: 0
    #7
    2023-08-09, 10:30 PM
    I did the re-scan and everything looks and feels as before. Thanks a lot, easier than I thought.
    The auth error apparently also disappeared.
    « 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