• 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 General Questions Library scanning disables connection to unRaid

     
    • 0 Vote(s) - 0 Average

    Library scanning disables connection to unRaid

    When activating library scanning, after a couple minutes I am unable to connect to my unRaid Server
    riisager
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #1
    2024-07-30, 10:19 AM
    Hello

    I am new to using Jellyfin, and I have encountered a problem. I have a unRaid server, where I have just installed the binhex Jellyfin docker.

    I opened up the webui, setup the server and activated the library scanning. It found some movies, but after a couple of minutes I completely lost contact to the server.

    I tried restarting the server and the library scan a couple of times, but it was the same result each time.

    Any of you experienced this situation before?

    BR Riisager
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-07-30, 01:18 PM
    Can you share your Jellyfin log via pastebin? Also, why the binhex docker and not the official docker?
    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]
    riisager
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #3
    2024-07-30, 06:10 PM
    See here: https://pastebin.com/t1m2y7TE

    This is just what I was able to get. It seems that at some point the ffprobe just crashes something, that makes me unable to connect to the server. I can however still ping the server.

    FYI, I changed the docker to the official one, but the problem still occurs
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-07-30, 06:32 PM
    Can you share the full log?  Also, can you look at the unRAID logs to see if there is anything going on in the OS to cause this?

       
    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]
    riisager
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #5
    2024-07-30, 07:56 PM
    i'll get back to you. I have an exam in a couple of days, so firstly need to focus on that. This problem has already taking to much of my study time
    riisager
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #6
    2024-08-04, 05:39 PM
    Update:

    I have realized what the problem is. Jellyfin is eating ALL the RAM. I was watching the resource windows and exactly as the RAM usage went to 100 % the server stopped responding.

    I can see from this post you are also answering "https://forum.jellyfin.org/t-excessive-ram-consumption" that it might be the ffmpeg probe which would make sense. I have 8 thread, so it would be running 16 ffmpeg probes. and with big 4K files sometimes at the 50-60 GB size I could imagine this would eat a lot of RAM.

    I've tried to add a "--memory: 20g" flag to limit RAM usage, but it did nothing. It keeps climbing to 90 percent, before I manually stop the docker.

    What is the correct way to solve this?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-08-04, 06:44 PM
    How much RAM does you have and how much RAM does the container have access to?  My jellyfin rarely goes about ~2.5GB of reserved memory.  When adding a lot of new content, ffmpeg threads can consume a lot of memory.  But playing back a file  the ffmpeg process should not consume more than a few hundred MB of memory.

       

    Can you ensure that this environment variable is set in the container?

    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]
    riisager
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #8
    2024-08-04, 06:56 PM
    I can see that the MALLOC_TRIM_THRESHOLD_=131072 enviroment variable is already set.

    My system has 32 GB of RAM. It is indeed because Jellyfin is in the process of adding my entire library, so it launches a lot of ffmpeg probes this ends up consuming all my memory.

    I tried limiting the container to 20 gb of memory with the enviroment variable "--memory=20g" (maybe it is not correct?). This did not work.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-08-04, 07:27 PM
    You can also limit the number of library scan threads in Dashboard > General: Parallel library scan tasks limit and Parallel image encoding limit
    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]
    riisager
    Offline

    Junior Member

    Posts: 6
    Threads: 1
    Joined: 2024 Jul
    Reputation: 0
    #10
    2024-08-05, 02:31 PM
    Thanks! That worked a treat!
    « 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