• 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 Database is locked - Jellyfin 10.9.8

     
    • 0 Vote(s) - 0 Average

    Database is locked - Jellyfin 10.9.8

    Jellyfin stops working every few hours.
    Ammer Ashraf Emon
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2023 Sep
    Reputation: 0
    #1
    2024-08-02, 12:11 PM
    I am facing this issue every few hours "SQLite Error 5: 'database is locked'." When this happens I have to restart the jellyfin service. My media libraries are shared from a NAS and mounted to the VM. I tried to increase the values of ulimit in Linux, but nothing solved this issue. Any help would be appreciated. Thanks.

    OS: Ubuntu 22.04 LTS
    Jellyfin Version: 10.9.8

    Logs:
    [2024-08-02 18:01:57.700 +06:00] [ERR] [3675] Microsoft.EntityFrameworkCore.Update: An exception occurred in the database while saving changes for context type '"Jellyfin.Server.Implementations.JellyfinDbContext"'."
    ""Microsoft.EntityFrameworkCore.DbUpdateException: An error occurred while saving the entity changes. See the inner exception for details.
    ---> Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.
      at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
      at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
      at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
      at Microsoft.Data.Sqlite.SqliteCommand.ExecuteDbDataReaderAsync(CommandBehavior behavior, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteReaderAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
      --- End of inner exception stack trace ---
      at Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
      at Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.ExecuteAsync(IEnumerable
    1 commandBatches, IRelationalConnection connection, CancellationToken cancellationToken)
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    Messages In This Thread
    Database is locked - Jellyfin 10.9.8 - by Ammer Ashraf Emon - 2024-08-02, 12:11 PM
    RE: Database is locked - Jellyfin 10.9.8 - by Efficient_Good_5784 - 2024-08-02, 01:46 PM
    RE: Database is locked - Jellyfin 10.9.8 - by Ammer Ashraf Emon - 2024-08-02, 03:17 PM
    RE: Database is locked - Jellyfin 10.9.8 - by TheDreadPirate - 2024-08-02, 03:59 PM
    RE: Database is locked - Jellyfin 10.9.8 - by Ammer Ashraf Emon - 2024-08-02, 04:52 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