• 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: Real time monitoring not working on some libraries

     
    • 0 Vote(s) - 0 Average

    SOLVED: Real time monitoring not working on some libraries

    kandykarter
    Offline

    Member

    Posts: 146
    Threads: 21
    Joined: 2023 Jun
    Reputation: 3
    #1
    2024-12-02, 03:55 PM (This post was last modified: 2024-12-02, 07:56 PM by kandykarter. Edited 1 time in total.)
    I have a small issue with media scanning that doesn't make a lot of sense to me. In my primary three libraries (Music, TV, Movies) real-time monitoring works quite well, a couple minutes after my automation software moves something into the library it appears in Jellyfin.

    Recently however, I created two new libraries where my users can use Jellyseer to request things that I'm not interested in having in the primary/personal libraries. Those libraries are called "TV - Requests" and "Movies - Requests", and are set up to contain shows and movies respectively. Both libraries have real-time monitoring enabled, but when new movies or shows are added, I need to rescan the libraries manually to get them to show up. This makes very little sense to me as the request libraries are subdirectories of the same /media folder that the other libraries are in (for example, the correctly-working Movies library is /data/media/Movies and the dysfunctional "Movies - Requests" library is /data/media/Movies-Requests).

    Does Jellyfin glitch out if it has more than one of a specific type of library, or am I doing something wrong?

    Thanks for any help.
    Specifics:
    Jellyfin 10.10.7 (docker) on Debian 12.6 // N100 16GB
    Storage: Synology DS220+ CIFS mounts
    Clients: Jellyfin4Kodi (Addon Mode), Android, Android TV, Roku, Symfonium

    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-02, 10:41 PM
    Is that directory on a locally attached hard drive or on a network share?
    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]
    kandykarter
    Offline

    Member

    Posts: 146
    Threads: 21
    Joined: 2023 Jun
    Reputation: 3
    #3
    2024-12-03, 12:01 AM
    It's a network share, mounted in fstab by CIFS. Which I know is often janky, and maybe that's what this is and there's nothing I can do.

    But like, they're _all_ on that network share. Why does real time monitoring work on 3 of 5 subdirectories of the same folder? The Movies file does real-time monitoring perfectly, and Movies-requests which is literally right next to it doesn't?
    Specifics:
    Jellyfin 10.10.7 (docker) on Debian 12.6 // N100 16GB
    Storage: Synology DS220+ CIFS mounts
    Clients: Jellyfin4Kodi (Addon Mode), Android, Android TV, Roku, Symfonium

    schnappi
    Offline

    Junior Member

    Posts: 11
    Threads: 2
    Joined: 2024 Dec
    Reputation: 0
    #4
    2024-12-03, 12:14 AM (This post was last modified: 2024-12-03, 12:16 AM by schnappi. Edited 1 time in total.)
    inotify does not work with CIF mounted drives.

    https://lists.samba.org/archive/linux-ci...04319.html

    Below may be a workaround:

    https://github.com/clarabstract/watchntouch
    kandykarter
    Offline

    Member

    Posts: 146
    Threads: 21
    Joined: 2023 Jun
    Reputation: 3
    #5
    2024-12-03, 05:01 AM
    (2024-12-03, 12:14 AM)schnappi Wrote: inotify does not work with CIF mounted drives.

    But like.. it *does* work in my main three libraries? How does Jellyfin suddenly know there's new files in those folders if inotify isn't telling it?
    Specifics:
    Jellyfin 10.10.7 (docker) on Debian 12.6 // N100 16GB
    Storage: Synology DS220+ CIFS mounts
    Clients: Jellyfin4Kodi (Addon Mode), Android, Android TV, Roku, Symfonium

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-12-03, 02:38 PM
    Is it adding files in real time? There is a scheduled tasks to scan your libraries twice a day.

    I found some newer threads that appears to indicate that while inotify doesn't work the same on network shares, there is SOME level of real time monitoring for CIFS. But there are configurable limits.

    https://community.spiceworks.com/t/inoti...are/953436
    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]
    kandykarter
    Offline

    Member

    Posts: 146
    Threads: 21
    Joined: 2023 Jun
    Reputation: 3
    #7
    2024-12-03, 03:20 PM (This post was last modified: 2024-12-09, 11:06 PM by kandykarter. Edited 1 time in total.)
    It definitely does happen in real-time, generally within 2 minutes of adding files, my Music, TV, and Movies libraries all update. For some reason my secondary libraries don't, despite being subfolders of the same bind mount as the main libraries.

    If CIFS & real-time monitoring are just total witchcraft I can live with that, I was just wondering if I were doing something wrong.

    [EDIT: If anyone has this problem in the future, I found that my bind mounts were oddly the issue? I had a second bind mount in my docker compose for the "Requests" folder, and I've changed from that to mounting the parent folder and adjusting the path in Jellyfin, now it pays attention to all my libraries. Still not sure WHY inotify works on my CIFS mounts, but not gonna look a gift horse in the mouth]
    Specifics:
    Jellyfin 10.10.7 (docker) on Debian 12.6 // N100 16GB
    Storage: Synology DS220+ CIFS mounts
    Clients: Jellyfin4Kodi (Addon Mode), Android, Android TV, Roku, Symfonium

    « 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