• 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 Library Scan Failing

    Pages (3): 1 2 3 Next »

     
    • 0 Vote(s) - 0 Average

    Library Scan Failing

    A library scan is failing and crashing Jellyfin
    adampdx
    Offline

    Junior Member

    Posts: 13
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #1
    2024-08-13, 03:04 PM
    I recently moved around some files on my drives and subsequently had to recreate two of my libraries. I recently noticed excessive hdd use, and after some investigation, realized it was Jellyfin trying repeatedly to scan one of the libraries and failing. It's throwing an out of memory error, and I think that Jellyfin is also filling up the swap memory.  That's speculation, but after a restart with the JF container stopped, the swap is clear until I start JF. Overall, the program is fine. It will play everything else without issue. I scanned the HDD that the library is on and found no issues. The other library is on another HDD. Any help would be great!  Thanks.

    Pastebin
    https://pastebin.com/J4eqQbjx
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-08-13, 04:32 PM
    Try limiting the number of threads jellyfin uses during a library scan.

    Dashboard > General, Parallel library scan tasks limit and Parallel image encoding limit. Set both to 1 for testing.
    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]
    adampdx
    Offline

    Junior Member

    Posts: 13
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #3
    2024-08-13, 07:08 PM
    That resulted in basically the same outcome, the only difference in the logs is that it seemed to crash a little sooner in the process.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-08-13, 07:37 PM
    Can you describe your server? Specs and OS?
    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]
    adampdx
    Offline

    Junior Member

    Posts: 13
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #5
    2024-08-13, 08:02 PM
    I'm running Jellyfin as a Docker container on Ubuntu 22.04 Desktop. My system is a a mini pc with a i5-1235u (6 core 12 thread), 32 gb RAM.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-08-13, 08:08 PM (This post was last modified: 2024-08-13, 08:08 PM by TheDreadPirate.)
    Are you restricting how much RAM the container can use? Which image are you using? The official jellyfin/jellyfin image or the Linuxserver image?

    Can you share your docker config for the container?
    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]
    adampdx
    Offline

    Junior Member

    Posts: 13
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #7
    2024-08-13, 08:16 PM
    No, I don't think I'm restricting the container, at least not intentionally. I just ran a scan again, and I can watch the RAM usage fill the phyiscal RAM and the Jellyfin crashes and the memory clears out. I'm using the jellyfin/jellyfin image.

    Do you want my compose file? Here it is.
    https://pastebin.com/AMwc5Hd8
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-08-13, 08:32 PM (This post was last modified: 2024-08-13, 08:35 PM by TheDreadPirate. Edited 1 time in total.)
    Check if this environment variable is set.

    Code:
    sudo docker exec jellyfin env

    Look for MALLOC_TRIM_THRESHOLD. If it isn't set, try adding this to the environment section.

    Code:
    - MALLOC_TRIM_THRESHOLD_=131072
    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]
    adampdx
    Offline

    Junior Member

    Posts: 13
    Threads: 2
    Joined: 2024 Aug
    Reputation: 0
    Country:United States
    #9
    2024-08-13, 08:36 PM
    That resulted in the same behavior.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-08-13, 09:15 PM
    Do you have any BDROMs in your library?
    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]
    Pages (3): 1 2 3 Next »

    « 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