• 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 General Questions (SOLVED) Does 10.11.2 fix the slow database?

     
    • 0 Vote(s) - 0 Average

    (SOLVED) Does 10.11.2 fix the slow database?

    muddy
    Offline

    Junior Member

    Posts: 9
    Threads: 2
    Joined: 2023 Jun
    Reputation: 0
    #9
    7 hours ago (This post was last modified: 6 hours ago by muddy. Edited 1 time in total.)
    I think I found the issue (or a symptom..)
    When doing library scans the sqlite DB crashes out (or tosses constant errors)
    I'll tinker with it and see if I can sort something out

    Nov 05 19:19:59 jellyfin jellyfin[3388]: [19:19:59] [ERR] Failed executing DbCommand (30,486ms) [Parameters=[@__item_Id_0='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
    Nov 05 19:19:59 jellyfin jellyfin[3388]: DELETE FROM "BaseItemImageInfos" AS "b"
    Nov 05 19:19:59 jellyfin jellyfin[3388]: WHERE "b"."ItemId" = @__item_Id_0
    Nov 05 19:19:59 jellyfin jellyfin[3388]: [19:19:59] [ERR] An exception occurred while executing an 'ExecuteDelete' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
    Nov 05 19:19:59 jellyfin jellyfin[3388]: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 6: 'database table is locked: BaseItemImageInfos'.
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple
    3 state)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
    Nov 05 19:19:59 jellyfin jellyfin[3388]: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 6: 'database table is locked: BaseItemImageInfos'.
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple3 state)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
    Nov 05 19:19:59 jellyfin jellyfin[3388]: [19:19:59] [ERR] Error refreshing owned items for /storage/video/stuff/more-stuff
    Nov 05 19:19:59 jellyfin jellyfin[3388]: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 6: 'database table is locked: BaseItemImageInfos'.
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple
    3 state)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
    Nov 05 19:19:59 jellyfin jellyfin[3388]:    at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
    `

    I think it's fixed now after some digging found out about the option to adjust the DB setting :
    /etc/jellyfin/database.xml

    Changed NoLock to Optimistic and restarted Jellyfin, scanned the library that was having issues and it completed.

    Thanks all
    « Next Oldest | Next Newest »

    Users browsing this thread: 3 Guest(s)


    Messages In This Thread
    (SOLVED) Does 10.11.2 fix the slow database? - by muddy - 2025-11-04, 09:52 PM
    RE: Does 10.11.2 fix the slow database? - by 34626 - 2025-11-04, 10:29 PM
    RE: Does 10.11.2 fix the slow database? - by muddy - Yesterday, 03:10 AM
    RE: Does 10.11.2 fix the slow database? - by jellykrabbypatty - Yesterday, 07:03 AM
    RE: Does 10.11.2 fix the slow database? - by muddy - Yesterday, 04:18 PM
    RE: Does 10.11.2 fix the slow database? - by 34626 - Yesterday, 08:40 AM
    RE: Does 10.11.2 fix the slow database? - by muddy - Yesterday, 04:09 PM
    RE: Does 10.11.2 fix the slow database? - by T-10 - 7 hours ago
    RE: Does 10.11.2 fix the slow database? - by muddy - 7 hours ago
    RE: Does 10.11.2 fix the slow database? - by Sea Monkey - 6 hours ago

    • 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