• 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 "Too many open files in system error" during library scan

     
    • 0 Vote(s) - 0 Average

    "Too many open files in system error" during library scan

    Some media missing after scan, many errors in logs, SMB mounted store
    gnattu
    Offline

    Team Member

    Posts: 342
    Threads: 0
    Joined: 2024 Feb
    Reputation: 17
    #5
    2025-01-31, 07:48 PM
    I don't recommend using docker on macOS unless you are fine giving up all hardware acceleration capabilities. Also the way you are checking the max open files on macOS is not right. You should do launchctl limit and the default is only 256 open files.

    To make a persistent change to increase this limit you need to paste the following, save as limit.maxfiles.plist, and put it under /Library/LaunchDaemons/, then reboot your Mac. Upon next boot, the maxfiles should show 524288 for launchctl limit.

    Bind mount for remote network share on docker was never stable especially on macOS/Windows where such mount has to go across a VM boundary. If you have to use docker I recommend to use  docker volume with CIFS backend instead of hacking with mount points in the container. It is easier and works more reliable. 

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
      <dict>
        <key>Label</key>
          <string>limit.maxfiles</string>
        <key>ProgramArguments</key>
          <array>
            <string>launchctl</string>
            <string>limit</string>
            <string>maxfiles</string>
            <string>524288</string>
            <string>524288</string>
          </array>
        <key>RunAtLoad</key>
          <true/>
      </dict>
    </plist>
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    "Too many open files in system error" during library scan - by awkward-gopher - 2025-01-29, 03:07 PM
    RE: "Too many open files in system error" during library scan - by TheDreadPirate - 2025-01-29, 04:13 PM
    RE: "Too many open files in system error" during library scan - by awkward-gopher - 2025-01-30, 05:04 AM
    RE: "Too many open files in system error" during library scan - by awkward-gopher - 2025-01-31, 04:19 PM
    RE: "Too many open files in system error" during library scan - by gnattu - 2025-01-31, 07:48 PM

    • 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