• 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
    #2
    2025-12-19, 09:18 PM (This post was last modified: 2025-12-19, 11:13 PM by Ellermw. Edited 1 time in total.)
    Ok so Pessimistic wasn't the move. It then causes query congestion, meaning if a library scan is in process, it locks/blocks UI queries... so you can't even load Jellyfin's home page.

    Some of the errors from the logs when it was set to NoLock

    Bash(journalctl -u jellyfin --since "2 minutes ago" 2>/dev/null | tail -30)
    ⎿ Dec 19 21:12:43 LXCJellyfin jellyfin[833181]: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserDat
    a.ItemId, UserData.UserId, UserData.CustomDataKey'.
    Dec 19 21:12:43 LXCJellyfin jellyfin[833181]: at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()

    Going to try Optimistic now instead of Pessimistic for the DB Locking behavior

    Also like to note that I have my parallel tasks limited to 2 for both.
    « 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