• 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 Media Scanning & Identification SOLVED: Database Lock prevents new media from being scanned in

     
    • 0 Vote(s) - 0 Average

    SOLVED: Database Lock prevents new media from being scanned in

    Over 200+ missing movies and tv show episodes missing due to database lock
    Ellermw
    Offline

    Junior Member

    Posts: 7
    Threads: 2
    Joined: 2025 Jun
    Reputation: 0
    #4
    2025-12-19, 10:33 PM
    Bug report generated by Claude:

    Bug Report: Library scan not discovering new symlinked folders

    Jellyfin Version: 10.11.5

    Environment:
    - Ubuntu 22.04.5 LTS
    - x64 architecture
    - SQLite database with Optimistic locking
    - Media stored on network storage (Ceph), accessed via symlinks on local ext4 filesystem

    Problem Description:

    Library scans are not discovering new symlinked folders. The scan only refreshes existing database entries but does not enumerate the filesystem to find new content.

    Timeline:
    - Last successfully added series: November 27, 2025
    - 95+ symlinks created after this date exist on disk but are NOT in the database
    - All scans since then have failed to discover these new folders

    What I've verified:
    - All symlinks are valid and accessible
    - The jellyfin user has read permissions to all symlinks and their targets
    - sudo -u jellyfin ls "/path/to/symlinked/folder/" works correctly
    - inotify limits are sufficient (max_user_watches: 4194304)
    - Library configuration is correct with single path entry
    - EnableRealtimeMonitor is true

    Reproduction steps:
    1. Have a TV library pointing to a directory containing symlinks to network storage
    2. Create new symlinks in that directory
    3. Run a library scan
    4. New symlinks are not discovered or added to the database

    Additional observation:

    When I manually insert database entries for the missing symlinked series using SQL, Jellyfin removes them during the "Validating media library" phase at startup. The log shows:

    [INF] Validating media library
    [INF] Removing item, Type: Series, Name: [Series Name], Path: /path/to/symlink, Id: [uuid]

    This suggests the validation code also cannot "see" the symlinks, even though they are valid and readable.

    Expected behavior:
    Library scan should enumerate all folders (including symlinks) in the library path and add new ones to the database.

    Actual behavior:
    Library scan only iterates over existing database entries. New symlinked folders are never discovered, and manually-added entries are removed during validation.

    Logs showing the issue:

    During scan, I see "Running enqueue of items in library [Library Name]" but no new series are added. The scan proceeds to refresh existing items only.

    At startup, "Validating media library" removes entries for valid symlinks:
    [INF] Stopping directory watching for path /media/TV
    [INF] Validating media library
    [INF] Removing item, Type: Series, Name: [Show1], Path: /media/TV/[Show1]
    [INF] Removing item, Type: Series, Name: [Show2], Path: /media/TV/[Show2]
    ...

    Workarounds attempted:
    - Creating a new library pointing to the same path - shares same folder entry, doesn't help
    - Multiple server restarts
    - Multiple library scans
    - Manual SQL insertion (entries get removed by validation)
    « Next Oldest | Next Newest »

    Users browsing this thread:


    Messages In This Thread
    Database Lock prevents new media from being scanned in - by Ellermw - 2025-12-19, 09:09 PM
    RE: Database Lock prevents new media from being scanned in - by Ellermw - 2025-12-19, 09:18 PM
    RE: Database Lock prevents new media from being scanned in - by Ellermw - 2025-12-19, 09:48 PM
    RE: Database Lock prevents new media from being scanned in - by Ellermw - 2025-12-19, 10:33 PM
    RE: Database Lock prevents new media from being scanned in - by Ellermw - 2025-12-20, 05:33 AM

    • 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