SQLite Error 19: 'UNIQUE constraint failed #7845

Open
opened 2026-02-07 05:26:27 +03:00 by OVERLORD · 16 comments
Owner

Originally created by @lukasjanra30 on GitHub (Nov 28, 2025).

Description of the bug

I wanted to remove one series which Ive done watching but after doing it I found out my library no more refreshes. Then I found out issue is with that remove series. I readded it and now everything works. When I remove it again, there are again issues. Im using Podman with autoupdate image latest

Reproduction steps

I dont really know, Im doing deletion of some series normally. Only this is causing issue.

What is the current bug behavior?

I wanted to remove one series which Ive done watching but after doing it I found out my library no more refreshes. Then I found out issue is with that remove series. I readded it and now everything works. When I remove it again, there are again issues. Im using Podman with autoupdate image latest

What is the expected correct behavior?

To be able to remove what I want without breaking library refresh

Jellyfin Server version

10.11.3

Specify commit id

No response

Specify unstable release number

No response

Specify version number

No response

Specify the build version

10.11.3

Environment

- OS: Ubuntu 24.04
- Linux Kernel: 6.8.0-88-generic
- Virtualization: Podman
- Clients: MAC, iOS, Browser, AndroidTV, Infuse
- Browser: Chrome
- FFmpeg Version: Shipped with Jellyfin
- Playback Method: Direct Stream, Direct
- Hardware Acceleration: Intel VAAPI
- GPU Model: Intel Iris Plus Graphic 655
- Plugins: Jellyfin Playback Stats
- Reverse Proxy: NPM Plus
- Base URL: none
- Networking: Bridge
- Jellyfin Data Storage: local NVME SSD
- Media Storage: local SATA SSD
- External Integrations: Jellystat

Jellyfin logs

[2025-11-28 00:00:00.019 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: Playback Reporting Data Trim
[2025-11-28 00:00:00.022 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: MaxDataAge : 3
[2025-11-28 00:00:00.030 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: DeleteOldData : "delete from PlaybackActivity where DateCreated < '2025-08-28 00:00:00.0222835'"
[2025-11-28 00:00:00.031 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Default journal_mode for "/config/data/data/playback_reporting.db" is "delete"
[2025-11-28 00:00:00.036 +01:00] [INF] [35] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Playback Reporting Trim Db" Completed after 0 minute(s) and 0 seconds
[2025-11-28 00:00:01.003 +01:00] [INF] [44] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Playback Reporting Trim Db" set to fire at 2025-11-29 00:00:00.000 +01:00, which is 23:59:58.9967259 from now.
[2025-11-28 02:00:00.159 +01:00] [INF] [15] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Extract Chapter Images" Completed after 0 minute(s) and 0 seconds
[2025-11-28 02:00:01.000 +01:00] [INF] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2025-11-29 02:00:00.000 +01:00, which is 23:59:58.9993176 from now.
[2025-11-28 03:00:00.336 +01:00] [INF] [9] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Generate Trickplay Images" Completed after 0 minute(s) and 0 seconds
[2025-11-28 03:00:01.000 +01:00] [INF] [29] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2025-11-29 03:00:00.000 +01:00, which is 23:59:58.9996672 from now.
[2025-11-28 03:33:10.851 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/shows"
[2025-11-28 03:33:10.854 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/evashows"
[2025-11-28 03:33:10.854 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/recordings"
[2025-11-28 03:33:10.855 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/movies"
[2025-11-28 03:33:10.863 +01:00] [INF] [3] Emby.Server.Implementations.Library.LibraryManager: Validating media library
[2025-11-28 03:33:11.012 +01:00] [WRN] [3] MediaBrowser.Controller.Entities.BaseItem: Library folder "/config/data/data/playlists" is inaccessible or empty, skipping
[2025-11-28 03:33:11.034 +01:00] [WRN] [26] MediaBrowser.Controller.Entities.BaseItem: Library folder "/config/data/data/playlists" is inaccessible or empty, skipping
[2025-11-28 03:33:11.079 +01:00] [INF] [42] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Media Segment Scan" Completed after 0 minute(s) and 0 seconds
[2025-11-28 03:33:18.621 +01:00] [INF] [3] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 7 seconds
[2025-11-28 03:33:18.621 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/evashows"
[2025-11-28 03:33:18.667 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/movies"
[2025-11-28 03:33:18.668 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/recordings"
[2025-11-28 03:33:18.668 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/shows"
[2025-11-28 03:34:11.838 +01:00] [INF] [25] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db...
[2025-11-28 03:34:12.069 +01:00] [INF] [25] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: jellyfin.db optimized successfully!
[2025-11-28 03:34:12.069 +01:00] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Optimize database" Completed after 0 minute(s) and 0 seconds
[2025-11-28 08:18:58.329 +01:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.2" request
[2025-11-28 08:19:30.947 +01:00] [WRN] [43] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "10.13.14.2" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake."
[2025-11-28 08:19:30.948 +01:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.2" closed
[2025-11-28 09:35:12.839 +01:00] [INF] [33] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db...
[2025-11-28 09:35:13.092 +01:00] [INF] [33] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: jellyfin.db optimized successfully!
[2025-11-28 09:35:13.092 +01:00] [INF] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Optimize database" Completed after 0 minute(s) and 0 seconds
[2025-11-28 13:05:29.502 +01:00] [INF] [43] Emby.Server.Implementations.IO.LibraryMonitor: "shows" ("/data/shows") will be refreshed.
[2025-11-28 13:05:29.532 +01:00] [INF] [43] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Series", Name: "FUBAR", Path: "/data/shows/fubar", Id: 3488c4f8-71c9-cab8-bf35-f5f936b72395
[2025-11-28 13:05:29.594 +01:00] [ERR] [43] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("2"ms) [Parameters=["@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 820)"], CommandType='Text', CommandTimeout='30']"
""UPDATE \"UserData\" AS \"u\"
SET \"ItemId\" = '00000000-0000-0000-0000-000000000001',
    \"RetentionDate\" = @__date_1
WHERE \"u\".\"ItemId\" IN (
    SELECT \"p\".\"value\"
    FROM json_each(@__p_0) AS \"p\"
)"
[2025-11-28 13:05:29.602 +01:00] [ERR] [43] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids)
   at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
[2025-11-28 13:05:29.605 +01:00] [ERR] [43] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids)
   at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()
[2025-11-28 13:07:30.797 +01:00] [INF] [15] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" request
[2025-11-28 13:07:31.520 +01:00] [ERR] [15] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/poster.jpg'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Primary".
[2025-11-28 13:07:46.927 +01:00] [INF] [20] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Series", Name: "FUBAR", Path: "/data/shows/fubar", Id: 3488c4f8-71c9-cab8-bf35-f5f936b72395
[2025-11-28 13:07:46.953 +01:00] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("1"ms) [Parameters=["@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 820)"], CommandType='Text', CommandTimeout='30']"
""UPDATE \"UserData\" AS \"u\"
SET \"ItemId\" = '00000000-0000-0000-0000-000000000001',
    \"RetentionDate\" = @__date_1
WHERE \"u\".\"ItemId\" IN (
    SELECT \"p\".\"value\"
    FROM json_each(@__p_0) AS \"p\"
)"
[2025-11-28 13:07:46.954 +01:00] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids)
   at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
[2025-11-28 13:07:46.955 +01:00] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids)
   at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()
[2025-11-28 13:09:23.817 +01:00] [INF] [51] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" closed
[2025-11-28 13:09:24.519 +01:00] [INF] [51] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" request
[2025-11-28 13:09:28.964 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/logo.png'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Logo".
[2025-11-28 13:09:28.965 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/backdrop.jpg'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Backdrop/0".
[2025-11-28 13:09:28.968 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/poster.jpg'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Primary".
[2025-11-28 13:09:28.994 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/ff/ff1f0e4d1eddf713097e5ade55ed615a/poster.jpg'". URL "GET" "/Items/ff1f0e4d1eddf713097e5ade55ed615a/Images/Primary".
[2025-11-28 13:09:29.027 +01:00] [ERR] [51] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/4e/4edb9ac643b2a4a5b59287d5d22134d4/poster.jpg'". URL "GET" "/Items/4edb9ac643b2a4a5b59287d5d22134d4/Images/Primary".
[2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/backdrop.jpg"
[2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/landscape.jpg"
[2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/banner.jpg"
[2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/logo.png"
[2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/poster.jpg"
[2025-11-28 13:10:48.339 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/78/787b846f3f99cde7840da668aae1c2bb/poster.jpg"
[2025-11-28 13:10:48.340 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/4b/4b23b3841c790e69a2fb3ca3b5201f75/poster.jpg"
[2025-11-28 13:10:48.494 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/28/28688020d7904f07917ac760d2139787/poster.jpg"
[2025-11-28 13:10:48.495 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/27/276045f2040570ecc6abbe7ce01e8776/poster.jpg"
[2025-11-28 13:10:48.496 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/4e/4edb9ac643b2a4a5b59287d5d22134d4/poster.jpg"
[2025-11-28 13:10:48.497 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/36/36804b84c76a64b5335612f7bbd8529c/poster.jpg"
[2025-11-28 13:10:48.497 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/aa/aa3c3548ddb79ef6469fab1d996e5f2a/poster.jpg"
[2025-11-28 13:10:48.498 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/df/df1669d9825472669e58667d849de106/poster.jpg"
[2025-11-28 13:10:48.499 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/a8/a87fa35c27c6a129a3287db3223eb82b/poster.jpg"
[2025-11-28 13:11:30.330 +01:00] [INF] [47] Emby.Server.Implementations.IO.LibraryMonitor: "FUBAR" ("/data/shows/fubar") will be refreshed.
[2025-11-28 13:12:56.219 +01:00] [INF] [46] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" closed
[2025-11-28 13:12:56.861 +01:00] [INF] [46] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" request
[2025-11-28 13:17:20.862 +01:00] [INF] [7] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2025-11-28 13:21:08.863 +01:00] [INF] [44] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.

FFmpeg logs


Client / Browser logs

No response

Relevant screenshots or videos

No response

Additional information

No response

Originally created by @lukasjanra30 on GitHub (Nov 28, 2025). ### Description of the bug I wanted to remove one series which Ive done watching but after doing it I found out my library no more refreshes. Then I found out issue is with that remove series. I readded it and now everything works. When I remove it again, there are again issues. Im using Podman with autoupdate image latest ### Reproduction steps I dont really know, Im doing deletion of some series normally. Only this is causing issue. ### What is the current _bug_ behavior? I wanted to remove one series which Ive done watching but after doing it I found out my library no more refreshes. Then I found out issue is with that remove series. I readded it and now everything works. When I remove it again, there are again issues. Im using Podman with autoupdate image latest ### What is the expected _correct_ behavior? To be able to remove what I want without breaking library refresh ### Jellyfin Server version 10.11.3 ### Specify commit id _No response_ ### Specify unstable release number _No response_ ### Specify version number _No response_ ### Specify the build version 10.11.3 ### Environment ```markdown - OS: Ubuntu 24.04 - Linux Kernel: 6.8.0-88-generic - Virtualization: Podman - Clients: MAC, iOS, Browser, AndroidTV, Infuse - Browser: Chrome - FFmpeg Version: Shipped with Jellyfin - Playback Method: Direct Stream, Direct - Hardware Acceleration: Intel VAAPI - GPU Model: Intel Iris Plus Graphic 655 - Plugins: Jellyfin Playback Stats - Reverse Proxy: NPM Plus - Base URL: none - Networking: Bridge - Jellyfin Data Storage: local NVME SSD - Media Storage: local SATA SSD - External Integrations: Jellystat ``` ### Jellyfin logs ```shell [2025-11-28 00:00:00.019 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: Playback Reporting Data Trim [2025-11-28 00:00:00.022 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.TaskCleanDb: MaxDataAge : 3 [2025-11-28 00:00:00.030 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: DeleteOldData : "delete from PlaybackActivity where DateCreated < '2025-08-28 00:00:00.0222835'" [2025-11-28 00:00:00.031 +01:00] [INF] [35] Jellyfin.Plugin.PlaybackReporting.Data.ActivityRepository: Default journal_mode for "/config/data/data/playback_reporting.db" is "delete" [2025-11-28 00:00:00.036 +01:00] [INF] [35] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Playback Reporting Trim Db" Completed after 0 minute(s) and 0 seconds [2025-11-28 00:00:01.003 +01:00] [INF] [44] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Playback Reporting Trim Db" set to fire at 2025-11-29 00:00:00.000 +01:00, which is 23:59:58.9967259 from now. [2025-11-28 02:00:00.159 +01:00] [INF] [15] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Extract Chapter Images" Completed after 0 minute(s) and 0 seconds [2025-11-28 02:00:01.000 +01:00] [INF] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2025-11-29 02:00:00.000 +01:00, which is 23:59:58.9993176 from now. [2025-11-28 03:00:00.336 +01:00] [INF] [9] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Generate Trickplay Images" Completed after 0 minute(s) and 0 seconds [2025-11-28 03:00:01.000 +01:00] [INF] [29] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2025-11-29 03:00:00.000 +01:00, which is 23:59:58.9996672 from now. [2025-11-28 03:33:10.851 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/shows" [2025-11-28 03:33:10.854 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/evashows" [2025-11-28 03:33:10.854 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/recordings" [2025-11-28 03:33:10.855 +01:00] [INF] [3] Emby.Server.Implementations.IO.LibraryMonitor: Stopping directory watching for path "/data/movies" [2025-11-28 03:33:10.863 +01:00] [INF] [3] Emby.Server.Implementations.Library.LibraryManager: Validating media library [2025-11-28 03:33:11.012 +01:00] [WRN] [3] MediaBrowser.Controller.Entities.BaseItem: Library folder "/config/data/data/playlists" is inaccessible or empty, skipping [2025-11-28 03:33:11.034 +01:00] [WRN] [26] MediaBrowser.Controller.Entities.BaseItem: Library folder "/config/data/data/playlists" is inaccessible or empty, skipping [2025-11-28 03:33:11.079 +01:00] [INF] [42] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Media Segment Scan" Completed after 0 minute(s) and 0 seconds [2025-11-28 03:33:18.621 +01:00] [INF] [3] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Scan Media Library" Completed after 0 minute(s) and 7 seconds [2025-11-28 03:33:18.621 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/evashows" [2025-11-28 03:33:18.667 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/movies" [2025-11-28 03:33:18.668 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/recordings" [2025-11-28 03:33:18.668 +01:00] [INF] [42] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "/data/shows" [2025-11-28 03:34:11.838 +01:00] [INF] [25] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db... [2025-11-28 03:34:12.069 +01:00] [INF] [25] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: jellyfin.db optimized successfully! [2025-11-28 03:34:12.069 +01:00] [INF] [25] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Optimize database" Completed after 0 minute(s) and 0 seconds [2025-11-28 08:18:58.329 +01:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.2" request [2025-11-28 08:19:30.947 +01:00] [WRN] [43] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "10.13.14.2" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake." [2025-11-28 08:19:30.948 +01:00] [INF] [43] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.2" closed [2025-11-28 09:35:12.839 +01:00] [INF] [33] Emby.Server.Implementations.ScheduledTasks.Tasks.OptimizeDatabaseTask: Optimizing and vacuuming jellyfin.db... [2025-11-28 09:35:13.092 +01:00] [INF] [33] Jellyfin.Database.Providers.Sqlite.SqliteDatabaseProvider: jellyfin.db optimized successfully! [2025-11-28 09:35:13.092 +01:00] [INF] [33] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Optimize database" Completed after 0 minute(s) and 0 seconds [2025-11-28 13:05:29.502 +01:00] [INF] [43] Emby.Server.Implementations.IO.LibraryMonitor: "shows" ("/data/shows") will be refreshed. [2025-11-28 13:05:29.532 +01:00] [INF] [43] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Series", Name: "FUBAR", Path: "/data/shows/fubar", Id: 3488c4f8-71c9-cab8-bf35-f5f936b72395 [2025-11-28 13:05:29.594 +01:00] [ERR] [43] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("2"ms) [Parameters=["@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 820)"], CommandType='Text', CommandTimeout='30']" ""UPDATE \"UserData\" AS \"u\" SET \"ItemId\" = '00000000-0000-0000-0000-000000000001', \"RetentionDate\" = @__date_1 WHERE \"u\".\"ItemId\" IN ( SELECT \"p\".\"value\" FROM json_each(@__p_0) AS \"p\" )" [2025-11-28 13:05:29.602 +01:00] [ERR] [43] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls) at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) [2025-11-28 13:05:29.605 +01:00] [ERR] [43] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls) at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue() [2025-11-28 13:07:30.797 +01:00] [INF] [15] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" request [2025-11-28 13:07:31.520 +01:00] [ERR] [15] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/poster.jpg'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Primary". [2025-11-28 13:07:46.927 +01:00] [INF] [20] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: "Series", Name: "FUBAR", Path: "/data/shows/fubar", Id: 3488c4f8-71c9-cab8-bf35-f5f936b72395 [2025-11-28 13:07:46.953 +01:00] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("1"ms) [Parameters=["@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 820)"], CommandType='Text', CommandTimeout='30']" ""UPDATE \"UserData\" AS \"u\" SET \"ItemId\" = '00000000-0000-0000-0000-000000000001', \"RetentionDate\" = @__date_1 WHERE \"u\".\"ItemId\" IN ( SELECT \"p\".\"value\" FROM json_each(@__p_0) AS \"p\" )" [2025-11-28 13:07:46.954 +01:00] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls) at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) [2025-11-28 13:07:46.955 +01:00] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls) at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue() [2025-11-28 13:09:23.817 +01:00] [INF] [51] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" closed [2025-11-28 13:09:24.519 +01:00] [INF] [51] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" request [2025-11-28 13:09:28.964 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/logo.png'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Logo". [2025-11-28 13:09:28.965 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/backdrop.jpg'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Backdrop/0". [2025-11-28 13:09:28.968 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/poster.jpg'". URL "GET" "/Items/3488c4f871c9cab8bf35f5f936b72395/Images/Primary". [2025-11-28 13:09:28.994 +01:00] [ERR] [46] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/ff/ff1f0e4d1eddf713097e5ade55ed615a/poster.jpg'". URL "GET" "/Items/ff1f0e4d1eddf713097e5ade55ed615a/Images/Primary". [2025-11-28 13:09:29.027 +01:00] [ERR] [51] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/data/metadata/library/4e/4edb9ac643b2a4a5b59287d5d22134d4/poster.jpg'". URL "GET" "/Items/4edb9ac643b2a4a5b59287d5d22134d4/Images/Primary". [2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/backdrop.jpg" [2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/landscape.jpg" [2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/banner.jpg" [2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/logo.png" [2025-11-28 13:10:48.326 +01:00] [WRN] [47] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/34/3488c4f871c9cab8bf35f5f936b72395/poster.jpg" [2025-11-28 13:10:48.339 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/78/787b846f3f99cde7840da668aae1c2bb/poster.jpg" [2025-11-28 13:10:48.340 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/4b/4b23b3841c790e69a2fb3ca3b5201f75/poster.jpg" [2025-11-28 13:10:48.494 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/28/28688020d7904f07917ac760d2139787/poster.jpg" [2025-11-28 13:10:48.495 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/27/276045f2040570ecc6abbe7ce01e8776/poster.jpg" [2025-11-28 13:10:48.496 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/4e/4edb9ac643b2a4a5b59287d5d22134d4/poster.jpg" [2025-11-28 13:10:48.497 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/36/36804b84c76a64b5335612f7bbd8529c/poster.jpg" [2025-11-28 13:10:48.497 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/aa/aa3c3548ddb79ef6469fab1d996e5f2a/poster.jpg" [2025-11-28 13:10:48.498 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/df/df1669d9825472669e58667d849de106/poster.jpg" [2025-11-28 13:10:48.499 +01:00] [WRN] [26] Emby.Server.Implementations.Library.LibraryManager: Image not found at "/config/data/metadata/library/a8/a87fa35c27c6a129a3287db3223eb82b/poster.jpg" [2025-11-28 13:11:30.330 +01:00] [INF] [47] Emby.Server.Implementations.IO.LibraryMonitor: "FUBAR" ("/data/shows/fubar") will be refreshed. [2025-11-28 13:12:56.219 +01:00] [INF] [46] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" closed [2025-11-28 13:12:56.861 +01:00] [INF] [46] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "10.13.14.3" request [2025-11-28 13:17:20.862 +01:00] [INF] [7] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets. [2025-11-28 13:21:08.863 +01:00] [INF] [44] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets. ``` ### FFmpeg logs ```shell ``` ### Client / Browser logs _No response_ ### Relevant screenshots or videos _No response_ ### Additional information _No response_
OVERLORD added the bug label 2026-02-07 05:26:27 +03:00
Author
Owner

@RrOoSsSsOo commented on GitHub (Dec 1, 2025):

With this bug, the media library can "only grow".
The real problem is that the error occurs before the newly found titles are added...

@RrOoSsSsOo commented on GitHub (Dec 1, 2025): With this bug, the media library can "only grow". The real problem is that the error occurs before the newly found titles are added...
Author
Owner

@RrOoSsSsOo commented on GitHub (Dec 1, 2025):

But shouldn't such a debilitating bug be included among those to be fixed as 0-day? With the utmost attention from as many developers as possible.

@RrOoSsSsOo commented on GitHub (Dec 1, 2025): But shouldn't such a **debilitating bug** be included among those to be fixed as 0-day? With the utmost attention from as many developers as possible.
Author
Owner

@QuentinJones commented on GitHub (Dec 2, 2025):

Having the same issue with my library but not sure what started it. I had renamed a bunch of files which got removed from the library, but this is breaking now before it can add the new ones. When I'm refreshing meta data with the scan for new files option now I get this error and the process fails prematurely.
2025-12-02 10:49:12.703 | [10:49:12] [INF] [7] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Folder, Name: Smile 2022 BluRay 1080p DTS AC3 x264-MgB, Path: /media/video/Movies/<redacted>, Id: f69791d9-f141-fc20-024e-85eaf2206262 2025-12-02 10:49:12.768 | [10:49:12] [ERR] [7] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (5ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 469)], CommandType='Text', CommandTimeout='30'] 2025-12-02 10:49:12.768 | UPDATE "UserData" AS "u" 2025-12-02 10:49:12.768 | SET "ItemId" = '00000000-0000-0000-0000-000000000001', 2025-12-02 10:49:12.768 | "RetentionDate" = @__date_1 2025-12-02 10:49:12.768 | WHERE "u"."ItemId" IN ( 2025-12-02 10:49:12.768 | SELECT "p"."value" 2025-12-02 10:49:12.768 | FROM json_each(@__p_0) AS "p" 2025-12-02 10:49:12.768 | ) 2025-12-02 10:49:12.803 | [10:49:12] [ERR] [7] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. 2025-12-02 10:49:12.803 | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. 2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() 2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple3 state)
2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
2025-12-02 10:49:12.803 | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.b__31_0(DbContext _, ValueTuple3 state) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) 2025-12-02 10:49:12.806 | [10:49:12] [ERR] [7] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item 2025-12-02 10:49:12.806 | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. 2025-12-02 10:49:12.806 | at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() 2025-12-02 10:49:12.806 | at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple3 state)
2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
2025-12-02 10:49:12.806 | at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList1 ids) 2025-12-02 10:49:12.806 | at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) 2025-12-02 10:49:12.806 | at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
2025-12-02 10:49:12.806 | at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()

@QuentinJones commented on GitHub (Dec 2, 2025): Having the same issue with my library but not sure what started it. I had renamed a bunch of files which got removed from the library, but this is breaking now before it can add the new ones. When I'm refreshing meta data with the scan for new files option now I get this error and the process fails prematurely. ` 2025-12-02 10:49:12.703 | [10:49:12] [INF] [7] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Folder, Name: Smile 2022 BluRay 1080p DTS AC3 x264-MgB, Path: /media/video/Movies/<redacted>, Id: f69791d9-f141-fc20-024e-85eaf2206262 2025-12-02 10:49:12.768 | [10:49:12] [ERR] [7] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (5ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 469)], CommandType='Text', CommandTimeout='30'] 2025-12-02 10:49:12.768 | UPDATE "UserData" AS "u" 2025-12-02 10:49:12.768 | SET "ItemId" = '00000000-0000-0000-0000-000000000001', 2025-12-02 10:49:12.768 | "RetentionDate" = @__date_1 2025-12-02 10:49:12.768 | WHERE "u"."ItemId" IN ( 2025-12-02 10:49:12.768 | SELECT "p"."value" 2025-12-02 10:49:12.768 | FROM json_each(@__p_0) AS "p" 2025-12-02 10:49:12.768 | ) 2025-12-02 10:49:12.803 | [10:49:12] [ERR] [7] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. 2025-12-02 10:49:12.803 | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. 2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() 2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) 2025-12-02 10:49:12.803 | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. 2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() 2025-12-02 10:49:12.803 | at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) 2025-12-02 10:49:12.803 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) 2025-12-02 10:49:12.806 | [10:49:12] [ERR] [7] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item 2025-12-02 10:49:12.806 | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. 2025-12-02 10:49:12.806 | at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() 2025-12-02 10:49:12.806 | at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) 2025-12-02 10:49:12.806 | at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) 2025-12-02 10:49:12.806 | at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) 2025-12-02 10:49:12.806 | at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken) 2025-12-02 10:49:12.806 | at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue() `
Author
Owner

@RrOoSsSsOo commented on GitHub (Dec 3, 2025):

To reproduce the error:

  • delete a folder from your (video) media library
  • launch a scan of all libraries

[≤ v10.11.4]

@RrOoSsSsOo commented on GitHub (Dec 3, 2025): To reproduce the error: - delete a folder from your (video) media library - launch a scan of all libraries [≤ v10.11.4]
Author
Owner

@v3DJG6GL commented on GitHub (Dec 5, 2025):

I have the same error with the series that caused the issues described in https://github.com/jellyfin/jellyfin/issues/15628

Setup:

Jellyfin Server version

10.11.4

Specify the build version

10.11.4

Environment

- OS: TrueNAS SCALE
- Linux Kernel: 6.1.74
- Virtualization: Docker
- Clients: N/A
- Browser: N/A
- FFmpeg Version: v7.1.2
- Playback Method: N/A
- Hardware Acceleration: CUDA
- GPU Model: NVIDIA RTX 4000 SFF Ada
- RAM (allocated for Jellyfin): 64GB
- CPU Cores (allocated for Jellyfin): 40
- DB Lock Settings: Optimistic
- Plugins:
  - Cover Art Archive 9.0.0.0
  - Disable User Data 0.2.1.1
  - Discogs 2.0.0.0
  - File Transformation 2.5.1.0
  - JavaScript Injector 3.1.0.0
  - Jellyfin Enhanced 9.6.2.0
  - Local Intros 4.0.0.0
  - LrcLib Lyrics 3.0.0.0
  - Playback Reporting 17.0.0.0
  - Reports 18.0.0.0
  - Session Cleaner 5.0.0.0
  - SSO-Auth 4.0.0.3
  - Subtitle Extract 7.0.0.0
  - TheTVDB 20.0.0.0
  - TMDb Box Sets 12.0.0.0
  - TVmaze 13.0.0.0
  - Webhook 18.0.0.0
  - TMDb 10.11.4.0
  - Studio Images 10.11.4.0
  - OMDb 10.11.4.0
  - MusicBrainz 10.11.4.0
  - AudioDB 10.11.4.0


- Reverse Proxy: Traefik

- Base URL: None
- Networking: Reverse Proxy
- Jellyfin Data Storage: NVMe SSD
- Media Storage: HDD
- External Integrations: N/A

Description of the bug

  • Due to ongoing transcoding issues described at https://github.com/jellyfin/jellyfin/issues/15628 I moved an affected series to a different library path to see if the problem was related to the path/DB entry for the series.
    When I scanned the library again (Scan for new and updated files), I received the following error messages (see below for complete logs):
[12:59:25] [ERR] [145] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.

The series was now displayed twice: once at the old, no longer existing path and once at the new location.

  • I then moved the series completely out off all library paths, restarted Jellyfin, and scanned the library again.
    Now the new location has been deleted correctly, but the old one still appears when I search for the series.
  • Manually deleting the series from within Jellyfin does not seem to work either: The series entry still exists.
  • I tried the same with onother series: First, I moved the series to another path inside my library and manually deleted the (old) series entry from within jellyfin. That worked:
[14:06:15] [INF] [153] MediaBrowser.Providers.TV.SeriesMetadataService: Removing virtual season null in series Heated Rivalry
[14:06:15] [INF] [153] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Season, Name: Season Unknown, Path: , Id: e23659cb-e242-4f78-cac3-09e27ecf1c51

  • Then, I rescanned the library with Scan for new and updated files method. Jellyfin immediately found the new location and added the series.
  • After that, I also moved this series out of the library: Then, after another library scan, the series was not found anymore, Jellyfin successfully deleted this none-existing series entry:
[14:08:34] [INF] [153] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Series, Name: Heated Rivalry, Path: /media/<REDACTED>/series/Heated Rivalry (2025) [imdbid-tt35495073], Id: bed1f40e-240a-6fbd-67e5-18f1e0ea1888

Notes:

  • Series Valeria was added shortly before I did the upgrade from Jellyfin v10.10.7 -> v10.11.3
  • Series Heated Rivalry was AFTER I did the upgrade to Jellyfin v10.11.3
  • I disabled all Disable User Data options from plugin Disable User Data for doing these tests. However, I got a lot of these DB OptimisticLockBehaviour lockings when I tried to search for the deleted series Valeria and/or tried to see Media Info for individual episodes of this series. I finally was able to see search results and metadata for these episodes, but Jellyfin got almost unusable due to DB Locking Behaviour:
[13:58:17] [WRN] [130] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[13:58:17] [WRN] [114] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[13:58:18] [WRN] [111] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[13:58:18] [WRN] [120] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[13:58:20] [WRN] [50] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[13:58:21] [WRN] [58] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[13:58:21] [WRN] [39] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[13:58:21] [WRN] [33] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[13:58:24] [WRN] [44] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[13:58:24] [WRN] [47] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[13:58:24] [WRN] [54] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[13:58:24] [WRN] [59] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[13:58:24] [WRN] [27] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[13:58:24] [WRN] [110] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[13:58:24] [WRN] [23] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[13:58:25] [WRN] [142] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[13:58:29] [WRN] [119] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[13:58:29] [WRN] [121] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[13:58:29] [WRN] [57] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[13:58:29] [WRN] [45] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[13:58:29] [WRN] [35] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[13:58:32] [WRN] [132] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9

Jellyfin was usable again after enabling all Disable User Data options from plugin Disable User Data: Also searching for series Valeria/showing Media Info for individual episodes worked again.

Jellyfin logs

  • Scanning the library after moving out of library paths:
[12:57:37] [WRN] [122] Jellyfin.Plugin.Tvdb.Providers.TvdbMissingEpisodeProvider: Unable to get episodes from TVDB: Episode Query returned null for TVDB Id: 152831
[12:58:05] [INF] [122] MediaBrowser.Providers.TV.SeriesMetadataService: Removing virtual season 1 in series The Beatles Anthology
[12:58:05] [INF] [122] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Season, Name: Season 1, Path: , Id: aa21af8d-5dea-867d-6934-8a5518bbb439
[12:58:07] [INF] [145] MediaBrowser.Providers.TV.SeriesMetadataService: Removing virtual season 1 in series The Beatles Anthology
[12:58:07] [INF] [145] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Season, Name: Season 1, Path: , Id: aa21af8d-5dea-867d-6934-8a5518bbb439
[12:58:18] [INF] [152] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Added Notifier Completed after 0 minute(s) and 0 seconds
[12:58:18] [INF] [142] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Deleted Notifier Completed after 0 minute(s) and 0 seconds
[12:59:24] [INF] [145] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Series, Name: Valeria, Path: /media/<REDACTED>/series/Valeria (2020) [imdbid-tt9731288], Id: 881f81ca-cbc7-f6b6-cd31-54c9c4efe725
[12:59:25] [ERR] [145] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (9ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 3979)], CommandType='Text', CommandTimeout='30']
UPDATE "UserData" AS "u"
SET "ItemId" = '00000000-0000-0000-0000-000000000001',
    "RetentionDate" = @__date_1
WHERE "u"."ItemId" IN (
    SELECT "p"."value"
    FROM json_each(@__p_0) AS "p"
)
[12:59:25] [ERR] [145] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
[12:59:25] [ERR] [145] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids)
   at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue()
[12:59:49] [INF] [122] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Deleted Notifier Completed after 0 minute(s) and 0 seconds
[12:59:49] [INF] [145] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Added Notifier Completed after 0 minute(s) and 0 seconds

  • Trying to manually deleting the series:
[2025-12-05 12:07:59.273 +01:00] [ERR] [125] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/metadata/library/0b/0b09249883c9bd3738c7a3fb2866213a/poster.jpg'". URL "GET" "/Items/0b09249883c9bd3738c7a3fb2866213a/Images/Primary".
[2025-12-05 12:08:13.629 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[2025-12-05 12:08:32.338 +01:00] [INF] [135] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:08:32.338 +01:00] [INF] [142] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:08:44.673 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2
[2025-12-05 12:08:44.801 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[2025-12-05 12:09:14.873 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[2025-12-05 12:09:14.874 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3
[2025-12-05 12:09:16.485 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2
[2025-12-05 12:09:47.033 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4
[2025-12-05 12:09:47.033 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2
[2025-12-05 12:09:50.175 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3
[2025-12-05 12:09:51.777 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[2025-12-05 12:10:03.345 +01:00] [INF] [62] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:10:03.681 +01:00] [INF] [61] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:10:23.255 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4
[2025-12-05 12:10:23.255 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[2025-12-05 12:10:23.255 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[2025-12-05 12:10:23.255 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3
[2025-12-05 12:10:26.384 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2
[2025-12-05 12:10:50.603 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1
[2025-12-05 12:10:55.262 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4
[2025-12-05 12:10:55.262 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[2025-12-05 12:10:55.262 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2
[2025-12-05 12:10:55.262 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[2025-12-05 12:11:00.021 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3
[2025-12-05 12:11:22.225 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2
[2025-12-05 12:11:28.466 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[2025-12-05 12:11:28.466 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[2025-12-05 12:11:28.466 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[2025-12-05 12:11:28.466 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3
[2025-12-05 12:11:34.343 +01:00] [INF] [119] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:11:34.571 +01:00] [INF] [119] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:11:34.730 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4
[2025-12-05 12:11:55.214 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3
[2025-12-05 12:12:00.440 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[2025-12-05 12:12:00.440 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[2025-12-05 12:12:00.441 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[2025-12-05 12:12:00.444 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4
[2025-12-05 12:12:07.106 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[2025-12-05 12:12:29.120 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4
[2025-12-05 12:12:32.194 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[2025-12-05 12:12:32.194 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[2025-12-05 12:12:32.195 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[2025-12-05 12:12:32.195 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[2025-12-05 12:12:39.698 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[2025-12-05 12:13:01.119 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5
[2025-12-05 12:13:02.958 +01:00] [INF] [116] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.10.33" closed
[2025-12-05 12:13:03.373 +01:00] [INF] [123] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.10.33" request
[2025-12-05 12:13:04.044 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[2025-12-05 12:13:04.044 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[2025-12-05 12:13:04.044 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[2025-12-05 12:13:04.046 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[2025-12-05 12:13:05.343 +01:00] [INF] [123] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:13:05.628 +01:00] [INF] [123] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:13:13.644 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[2025-12-05 12:13:33.669 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6
[2025-12-05 12:13:35.325 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[2025-12-05 12:13:36.814 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11
[2025-12-05 12:13:36.821 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[2025-12-05 12:13:36.830 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[2025-12-05 12:13:48.208 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[2025-12-05 12:14:01.896 +01:00] [INF] [116] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.10.33" request
[2025-12-05 12:14:08.059 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11
[2025-12-05 12:14:08.059 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7
[2025-12-05 12:14:09.201 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[2025-12-05 12:14:13.919 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[2025-12-05 12:14:13.919 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12
[2025-12-05 12:14:19.695 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[2025-12-05 12:14:36.343 +01:00] [INF] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:14:36.661 +01:00] [INF] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:14:40.158 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12
[2025-12-05 12:14:40.158 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8
[2025-12-05 12:14:44.498 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11
[2025-12-05 12:14:48.899 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[2025-12-05 12:14:48.901 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13
[2025-12-05 12:14:54.473 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[2025-12-05 12:15:13.083 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13
[2025-12-05 12:15:13.084 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9
[2025-12-05 12:15:16.729 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12
[2025-12-05 12:15:21.748 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[2025-12-05 12:15:25.065 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[2025-12-05 12:15:26.634 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11
[2025-12-05 12:15:48.402 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10
[2025-12-05 12:15:48.402 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[2025-12-05 12:15:51.988 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13
[2025-12-05 12:15:57.002 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11
[2025-12-05 12:16:00.134 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12
[2025-12-05 12:16:00.148 +01:00] [ERR] [150] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("496,907"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']"
""DELETE FROM \"BaseItemImageInfos\" AS \"b\"
WHERE \"b\".\"ItemId\" = @__item_Id_0"
[2025-12-05 12:16:00.162 +01:00] [ERR] [150] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2025-12-05 12:16:00.164 +01:00] [ERR] [150] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817".
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
   at lambda_method1042(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2025-12-05 12:16:07.343 +01:00] [INF] [150] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:16:08.359 +01:00] [INF] [150] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:16:21.257 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11
[2025-12-05 12:16:27.405 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[2025-12-05 12:16:27.406 +01:00] [ERR] [137] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("492,741"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']"
""DELETE FROM \"BaseItemImageInfos\" AS \"b\"
WHERE \"b\".\"ItemId\" = @__item_Id_0"
[2025-12-05 12:16:27.407 +01:00] [ERR] [137] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
[2025-12-05 12:16:27.407 +01:00] [ERR] [137] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817".
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
   at lambda_method1042(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2025-12-05 12:16:28.939 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12
[2025-12-05 12:16:33.320 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13
[2025-12-05 12:16:54.419 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12
[2025-12-05 12:17:04.297 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13
[2025-12-05 12:17:04.299 +01:00] [ERR] [115] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("499,491"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']"
""DELETE FROM \"BaseItemImageInfos\" AS \"b\"
WHERE \"b\".\"ItemId\" = @__item_Id_0"
[2025-12-05 12:17:04.300 +01:00] [ERR] [115] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
[2025-12-05 12:17:04.301 +01:00] [ERR] [115] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817".
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
   at lambda_method1042(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2025-12-05 12:17:05.668 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[2025-12-05 12:17:25.979 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13
[2025-12-05 12:17:38.145 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[2025-12-05 12:17:38.343 +01:00] [INF] [43] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:17:39.359 +01:00] [INF] [43] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:17:46.769 +01:00] [ERR] [136] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("506,091"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']"
""DELETE FROM \"BaseItemImageInfos\" AS \"b\"
WHERE \"b\".\"ItemId\" = @__item_Id_0"
[2025-12-05 12:17:46.770 +01:00] [ERR] [136] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
[2025-12-05 12:17:46.771 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817".
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
   at lambda_method1042(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2025-12-05 12:18:01.168 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14
[2025-12-05 12:18:15.062 +01:00] [ERR] [131] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("503,281"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']"
""DELETE FROM \"BaseItemImageInfos\" AS \"b\"
WHERE \"b\".\"ItemId\" = @__item_Id_0"
[2025-12-05 12:18:15.063 +01:00] [ERR] [131] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
[2025-12-05 12:18:15.065 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817".
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
   at lambda_method1042(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2025-12-05 12:18:35.751 +01:00] [ERR] [122] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("495,478"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']"
""DELETE FROM \"BaseItemImageInfos\" AS \"b\"
WHERE \"b\".\"ItemId\" = @__item_Id_0"
[2025-12-05 12:18:35.752 +01:00] [ERR] [122] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'."
""System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)"
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
[2025-12-05 12:18:35.753 +01:00] [ERR] [122] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817".
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx)
   at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider)
   at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken)
   at Polly.Policy.Execute[TResult](Func`1 action)
   at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result)
   at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate)
   at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason)
   at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken)
   at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
   at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item)
   at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId)
   at lambda_method1042(Closure, Object)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
   at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
   at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
   at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
   at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
   at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
   at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
   at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
   at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
   at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
   at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
   at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[2025-12-05 12:19:09.343 +01:00] [INF] [136] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:19:10.359 +01:00] [INF] [43] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:20:40.343 +01:00] [INF] [47] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:20:41.359 +01:00] [INF] [47] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:22:11.343 +01:00] [INF] [126] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds
[2025-12-05 12:22:12.358 +01:00] [INF] [126] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds
@v3DJG6GL commented on GitHub (Dec 5, 2025): I have the same error with the series that caused the issues described in https://github.com/jellyfin/jellyfin/issues/15628 ## Setup: ### Jellyfin Server version 10.11.4 ### Specify the build version 10.11.4 ### Environment ```markdown - OS: TrueNAS SCALE - Linux Kernel: 6.1.74 - Virtualization: Docker - Clients: N/A - Browser: N/A - FFmpeg Version: v7.1.2 - Playback Method: N/A - Hardware Acceleration: CUDA - GPU Model: NVIDIA RTX 4000 SFF Ada - RAM (allocated for Jellyfin): 64GB - CPU Cores (allocated for Jellyfin): 40 - DB Lock Settings: Optimistic - Plugins: - Cover Art Archive 9.0.0.0 - Disable User Data 0.2.1.1 - Discogs 2.0.0.0 - File Transformation 2.5.1.0 - JavaScript Injector 3.1.0.0 - Jellyfin Enhanced 9.6.2.0 - Local Intros 4.0.0.0 - LrcLib Lyrics 3.0.0.0 - Playback Reporting 17.0.0.0 - Reports 18.0.0.0 - Session Cleaner 5.0.0.0 - SSO-Auth 4.0.0.3 - Subtitle Extract 7.0.0.0 - TheTVDB 20.0.0.0 - TMDb Box Sets 12.0.0.0 - TVmaze 13.0.0.0 - Webhook 18.0.0.0 - TMDb 10.11.4.0 - Studio Images 10.11.4.0 - OMDb 10.11.4.0 - MusicBrainz 10.11.4.0 - AudioDB 10.11.4.0 - Reverse Proxy: Traefik - Base URL: None - Networking: Reverse Proxy - Jellyfin Data Storage: NVMe SSD - Media Storage: HDD - External Integrations: N/A ``` ### Description of the bug - Due to ongoing transcoding issues described at https://github.com/jellyfin/jellyfin/issues/15628 I moved an affected series to a different library path to see if the problem was related to the path/DB entry for the series. When I scanned the library again (_Scan for new and updated files_), I received the following error messages (see below for complete logs): ``` [12:59:25] [ERR] [145] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. ``` The series was now displayed twice: once at the old, no longer existing path and once at the new location. - I then moved the series completely out off all library paths, restarted Jellyfin, and scanned the library again. Now the new location has been deleted correctly, but the old one still appears when I search for the series. - Manually deleting the series from within Jellyfin does not seem to work either: The series entry still exists. - I tried the same with onother series: First, I moved the series to another path inside my library and manually deleted the (old) series entry from within jellyfin. That worked: ``` [14:06:15] [INF] [153] MediaBrowser.Providers.TV.SeriesMetadataService: Removing virtual season null in series Heated Rivalry [14:06:15] [INF] [153] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Season, Name: Season Unknown, Path: , Id: e23659cb-e242-4f78-cac3-09e27ecf1c51 ``` - Then, I rescanned the library with _Scan for new and updated files_ method. Jellyfin immediately found the new location and added the series. - After that, I also moved this series out of the library: Then, after another library scan, the series was not found anymore, Jellyfin successfully deleted this none-existing series entry: ``` [14:08:34] [INF] [153] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Series, Name: Heated Rivalry, Path: /media/<REDACTED>/series/Heated Rivalry (2025) [imdbid-tt35495073], Id: bed1f40e-240a-6fbd-67e5-18f1e0ea1888 ``` ### Notes: - Series _Valeria_ was added shortly _before_ I did the upgrade from Jellyfin _v10.10.7_ -> _v10.11.3_ - Series _Heated Rivalry_ was _AFTER_ I did the upgrade to Jellyfin _v10.11.3_ - I disabled all _Disable User Data_ options from plugin _Disable User Data_ for doing these tests. However, I got a lot of these DB OptimisticLockBehaviour lockings when I tried to search for the deleted series _Valeria_ and/or tried to see _Media Info_ for individual episodes of this series. I finally was able to see search results and metadata for these episodes, but Jellyfin got almost unusable due to DB Locking Behaviour: ``` [13:58:17] [WRN] [130] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [13:58:17] [WRN] [114] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [13:58:18] [WRN] [111] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [13:58:18] [WRN] [120] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [13:58:20] [WRN] [50] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [13:58:21] [WRN] [58] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [13:58:21] [WRN] [39] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [13:58:21] [WRN] [33] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [13:58:24] [WRN] [44] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [13:58:24] [WRN] [47] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [13:58:24] [WRN] [54] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [13:58:24] [WRN] [59] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [13:58:24] [WRN] [27] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [13:58:24] [WRN] [110] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [13:58:24] [WRN] [23] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [13:58:25] [WRN] [142] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [13:58:29] [WRN] [119] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [13:58:29] [WRN] [121] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [13:58:29] [WRN] [57] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [13:58:29] [WRN] [45] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [13:58:29] [WRN] [35] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [13:58:32] [WRN] [132] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 ``` Jellyfin was usable again after enabling all _Disable User Data_ options from plugin _Disable User Data_: Also searching for series Valeria/showing Media Info for individual episodes worked again. ### Jellyfin logs - Scanning the library after moving out of library paths: ``` [12:57:37] [WRN] [122] Jellyfin.Plugin.Tvdb.Providers.TvdbMissingEpisodeProvider: Unable to get episodes from TVDB: Episode Query returned null for TVDB Id: 152831 [12:58:05] [INF] [122] MediaBrowser.Providers.TV.SeriesMetadataService: Removing virtual season 1 in series The Beatles Anthology [12:58:05] [INF] [122] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Season, Name: Season 1, Path: , Id: aa21af8d-5dea-867d-6934-8a5518bbb439 [12:58:07] [INF] [145] MediaBrowser.Providers.TV.SeriesMetadataService: Removing virtual season 1 in series The Beatles Anthology [12:58:07] [INF] [145] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Season, Name: Season 1, Path: , Id: aa21af8d-5dea-867d-6934-8a5518bbb439 [12:58:18] [INF] [152] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Added Notifier Completed after 0 minute(s) and 0 seconds [12:58:18] [INF] [142] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Deleted Notifier Completed after 0 minute(s) and 0 seconds [12:59:24] [INF] [145] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Series, Name: Valeria, Path: /media/<REDACTED>/series/Valeria (2020) [imdbid-tt9731288], Id: 881f81ca-cbc7-f6b6-cd31-54c9c4efe725 [12:59:25] [ERR] [145] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (9ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 3979)], CommandType='Text', CommandTimeout='30'] UPDATE "UserData" AS "u" SET "ItemId" = '00000000-0000-0000-0000-000000000001', "RetentionDate" = @__date_1 WHERE "u"."ItemId" IN ( SELECT "p"."value" FROM json_each(@__p_0) AS "p" ) [12:59:25] [ERR] [145] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) [12:59:25] [ERR] [145] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteUpdate[TSource](IQueryable`1 source, Expression`1 setPropertyCalls) at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.RefreshCollectionFolderChildren(MetadataRefreshOptions options, CollectionFolder collectionFolder, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.RefreshItem(BaseItem item, MetadataRefreshOptions options, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.ProviderManager.StartProcessingRefreshQueue() [12:59:49] [INF] [122] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Deleted Notifier Completed after 0 minute(s) and 0 seconds [12:59:49] [INF] [145] Emby.Server.Implementations.ScheduledTasks.TaskManager: Webhook Item Added Notifier Completed after 0 minute(s) and 0 seconds ``` - Trying to manually deleting the series: ``` [2025-12-05 12:07:59.273 +01:00] [ERR] [125] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request: "Could not find file '/config/metadata/library/0b/0b09249883c9bd3738c7a3fb2866213a/poster.jpg'". URL "GET" "/Items/0b09249883c9bd3738c7a3fb2866213a/Images/Primary". [2025-12-05 12:08:13.629 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [2025-12-05 12:08:32.338 +01:00] [INF] [135] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:08:32.338 +01:00] [INF] [142] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:08:44.673 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2 [2025-12-05 12:08:44.801 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [2025-12-05 12:09:14.873 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [2025-12-05 12:09:14.874 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3 [2025-12-05 12:09:16.485 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2 [2025-12-05 12:09:47.033 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4 [2025-12-05 12:09:47.033 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2 [2025-12-05 12:09:50.175 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3 [2025-12-05 12:09:51.777 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [2025-12-05 12:10:03.345 +01:00] [INF] [62] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:10:03.681 +01:00] [INF] [61] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:10:23.255 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4 [2025-12-05 12:10:23.255 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [2025-12-05 12:10:23.255 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [2025-12-05 12:10:23.255 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3 [2025-12-05 12:10:26.384 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2 [2025-12-05 12:10:50.603 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 1 [2025-12-05 12:10:55.262 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4 [2025-12-05 12:10:55.262 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [2025-12-05 12:10:55.262 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2 [2025-12-05 12:10:55.262 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [2025-12-05 12:11:00.021 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3 [2025-12-05 12:11:22.225 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 2 [2025-12-05 12:11:28.466 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [2025-12-05 12:11:28.466 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [2025-12-05 12:11:28.466 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [2025-12-05 12:11:28.466 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3 [2025-12-05 12:11:34.343 +01:00] [INF] [119] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:11:34.571 +01:00] [INF] [119] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:11:34.730 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4 [2025-12-05 12:11:55.214 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 3 [2025-12-05 12:12:00.440 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [2025-12-05 12:12:00.440 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [2025-12-05 12:12:00.441 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [2025-12-05 12:12:00.444 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4 [2025-12-05 12:12:07.106 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [2025-12-05 12:12:29.120 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 4 [2025-12-05 12:12:32.194 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [2025-12-05 12:12:32.194 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [2025-12-05 12:12:32.195 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [2025-12-05 12:12:32.195 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [2025-12-05 12:12:39.698 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [2025-12-05 12:13:01.119 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 5 [2025-12-05 12:13:02.958 +01:00] [INF] [116] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.10.33" closed [2025-12-05 12:13:03.373 +01:00] [INF] [123] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.10.33" request [2025-12-05 12:13:04.044 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [2025-12-05 12:13:04.044 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [2025-12-05 12:13:04.044 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [2025-12-05 12:13:04.046 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [2025-12-05 12:13:05.343 +01:00] [INF] [123] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:13:05.628 +01:00] [INF] [123] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:13:13.644 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [2025-12-05 12:13:33.669 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 6 [2025-12-05 12:13:35.325 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [2025-12-05 12:13:36.814 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11 [2025-12-05 12:13:36.821 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [2025-12-05 12:13:36.830 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [2025-12-05 12:13:48.208 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [2025-12-05 12:14:01.896 +01:00] [INF] [116] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.10.33" request [2025-12-05 12:14:08.059 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11 [2025-12-05 12:14:08.059 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 7 [2025-12-05 12:14:09.201 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [2025-12-05 12:14:13.919 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [2025-12-05 12:14:13.919 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12 [2025-12-05 12:14:19.695 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [2025-12-05 12:14:36.343 +01:00] [INF] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:14:36.661 +01:00] [INF] [34] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:14:40.158 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12 [2025-12-05 12:14:40.158 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 8 [2025-12-05 12:14:44.498 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11 [2025-12-05 12:14:48.899 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [2025-12-05 12:14:48.901 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13 [2025-12-05 12:14:54.473 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [2025-12-05 12:15:13.083 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13 [2025-12-05 12:15:13.084 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 9 [2025-12-05 12:15:16.729 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12 [2025-12-05 12:15:21.748 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [2025-12-05 12:15:25.065 +01:00] [WRN] [150] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [2025-12-05 12:15:26.634 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11 [2025-12-05 12:15:48.402 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 10 [2025-12-05 12:15:48.402 +01:00] [WRN] [137] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [2025-12-05 12:15:51.988 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13 [2025-12-05 12:15:57.002 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11 [2025-12-05 12:16:00.134 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12 [2025-12-05 12:16:00.148 +01:00] [ERR] [150] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("496,907"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" ""DELETE FROM \"BaseItemImageInfos\" AS \"b\" WHERE \"b\".\"ItemId\" = @__item_Id_0" [2025-12-05 12:16:00.162 +01:00] [ERR] [150] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2025-12-05 12:16:00.164 +01:00] [ERR] [150] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817". System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) at lambda_method1042(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context) [2025-12-05 12:16:07.343 +01:00] [INF] [150] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:16:08.359 +01:00] [INF] [150] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:16:21.257 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 11 [2025-12-05 12:16:27.405 +01:00] [WRN] [115] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [2025-12-05 12:16:27.406 +01:00] [ERR] [137] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("492,741"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" ""DELETE FROM \"BaseItemImageInfos\" AS \"b\" WHERE \"b\".\"ItemId\" = @__item_Id_0" [2025-12-05 12:16:27.407 +01:00] [ERR] [137] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) [2025-12-05 12:16:27.407 +01:00] [ERR] [137] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817". System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) at lambda_method1042(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context) [2025-12-05 12:16:28.939 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12 [2025-12-05 12:16:33.320 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13 [2025-12-05 12:16:54.419 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 12 [2025-12-05 12:17:04.297 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13 [2025-12-05 12:17:04.299 +01:00] [ERR] [115] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("499,491"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" ""DELETE FROM \"BaseItemImageInfos\" AS \"b\" WHERE \"b\".\"ItemId\" = @__item_Id_0" [2025-12-05 12:17:04.300 +01:00] [ERR] [115] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) [2025-12-05 12:17:04.301 +01:00] [ERR] [115] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817". System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) at lambda_method1042(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context) [2025-12-05 12:17:05.668 +01:00] [WRN] [136] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [2025-12-05 12:17:25.979 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 13 [2025-12-05 12:17:38.145 +01:00] [WRN] [131] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [2025-12-05 12:17:38.343 +01:00] [INF] [43] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:17:39.359 +01:00] [INF] [43] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:17:46.769 +01:00] [ERR] [136] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("506,091"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" ""DELETE FROM \"BaseItemImageInfos\" AS \"b\" WHERE \"b\".\"ItemId\" = @__item_Id_0" [2025-12-05 12:17:46.770 +01:00] [ERR] [136] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) [2025-12-05 12:17:46.771 +01:00] [ERR] [136] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817". System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) at lambda_method1042(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context) [2025-12-05 12:18:01.168 +01:00] [WRN] [122] Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior: Operation failed retry 14 [2025-12-05 12:18:15.062 +01:00] [ERR] [131] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("503,281"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" ""DELETE FROM \"BaseItemImageInfos\" AS \"b\" WHERE \"b\".\"ItemId\" = @__item_Id_0" [2025-12-05 12:18:15.063 +01:00] [ERR] [131] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) [2025-12-05 12:18:15.065 +01:00] [ERR] [131] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817". System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) at lambda_method1042(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context) [2025-12-05 12:18:35.751 +01:00] [ERR] [122] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand ("495,478"ms) [Parameters=["@__item_Id_0='?' (DbType = Guid)"], CommandType='Text', CommandTimeout='30']" ""DELETE FROM \"BaseItemImageInfos\" AS \"b\" WHERE \"b\".\"ItemId\" = @__item_Id_0" [2025-12-05 12:18:35.752 +01:00] [ERR] [122] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteDelete' operation for context type '"Jellyfin.Database.Implementations.JellyfinDbContext"'." ""System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)" System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) [2025-12-05 12:18:35.753 +01:00] [ERR] [122] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "/Users/a7fec8eae7b84f0f825e4c62b7cb5800/Items/eb4f9d4fee115e818daf43b474c9c817". System.IndexOutOfRangeException: Index was outside the bounds of the array. at Polly.Retry.RetryPolicy.<Implementation>b__5_0[TResult](Int32 retryCount, DelegateResult`1 outcome, Context ctx) at Polly.Retry.RetryEngine.Implementation[TResult](Func`3 action, Context context, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Action`4 onRetry, CancellationToken cancellationToken, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider) at Polly.Retry.RetryPolicy.Implementation[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`3 action, Context context, CancellationToken cancellationToken) at Polly.Policy.Execute[TResult](Func`1 action) at Jellyfin.Database.Implementations.Locking.OptimisticLockBehavior.RetryInterceptor.NonQueryExecuting(DbCommand command, CommandEventData eventData, InterceptionResult`1 result) at Microsoft.EntityFrameworkCore.Diagnostics.Internal.RelationalCommandDiagnosticsLogger.CommandNonQueryExecuting(IRelationalConnection connection, DbCommand command, DbContext context, Guid commandId, Guid connectionId, DateTimeOffset startTime, CommandSource commandSource) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Storage.NonRetryingExecutionStrategy.Execute[TState,TResult](TState state, Func`3 operation, Func`3 verifySucceeded) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.EntityFrameworkQueryableExtensions.ExecuteDelete[TSource](IQueryable`1 source) at Jellyfin.Server.Implementations.Item.BaseItemRepository.SaveImages(BaseItem item) at Emby.Server.Implementations.Library.LibraryManager.UpdateImagesAsync(BaseItem item, Boolean forceUpdate) at Emby.Server.Implementations.Library.LibraryManager.RunMetadataSavers(BaseItem item, ItemUpdateType updateReason) at Emby.Server.Implementations.Library.LibraryManager.UpdateItemsAsync(IReadOnlyList`1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.SaveItemAsync(MetadataResult`1 result, ItemUpdateType reason, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>g__SaveInternal|36_0(BaseItem item, MetadataRefreshOptions refreshOptions, ItemUpdateType updateType, Boolean isFirstRefresh, Boolean requiresRefresh, MetadataResult`1 metadataResult, CancellationToken cancellationToken) at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken) at Jellyfin.Api.Controllers.UserLibraryController.RefreshItemOnDemandIfNeeded(BaseItem item) at Jellyfin.Api.Controllers.UserLibraryController.GetItem(Nullable`1 userId, Guid itemId) at lambda_method1042(Closure, Object) at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.InvokeFilterPipelineAsync() --- End of stack trace from previous location --- at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope) at Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager) at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager) at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager) at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Jellyfin.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext) at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context) at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager) at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context) [2025-12-05 12:19:09.343 +01:00] [INF] [136] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:19:10.359 +01:00] [INF] [43] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:20:40.343 +01:00] [INF] [47] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:20:41.359 +01:00] [INF] [47] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:22:11.343 +01:00] [INF] [126] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Deleted Notifier" Completed after 0 minute(s) and 0 seconds [2025-12-05 12:22:12.358 +01:00] [INF] [126] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Webhook Item Added Notifier" Completed after 0 minute(s) and 0 seconds ```
Author
Owner

@v3DJG6GL commented on GitHub (Dec 5, 2025):

Update: I extracted the affected DB entries from jellyfin.db:

Valeria.csv

After deleting these entries, I could manually delete the series from within Jellyfin.
Re-adding and moving the series to another library directory also seems to work now: New location gets recognized, old location gets deleted from Jellyfin :)

However, issue https://github.com/jellyfin/jellyfin/issues/15628 still persists: Transcoding is causing complete crash/lockup of Jellyfin after some minutes... (but that is a separate issue I suppose)

@v3DJG6GL commented on GitHub (Dec 5, 2025): Update: I extracted the affected DB entries from jellyfin.db: [Valeria.csv](https://github.com/user-attachments/files/23962546/Valeria.csv) After deleting these entries, I could manually delete the series from within Jellyfin. Re-adding and moving the series to another library directory also seems to work now: New location gets recognized, old location gets deleted from Jellyfin :) However, issue https://github.com/jellyfin/jellyfin/issues/15628 still persists: Transcoding is causing complete crash/lockup of Jellyfin after some minutes... (_but that is a separate issue I suppose_)
Author
Owner

@jpSimkins commented on GitHub (Dec 12, 2025):

I am having the same issue.

I was able to work around this by re-creating the folder that was missing for the series that was causing the issue. This allows scans to work again and for new content to still be processed.

After recreating the folder and having the scan run successfully, I am then able to delete the series as expected. No clue why this happens but this is how I got around it. This is not a permissions issue for my case.

@jpSimkins commented on GitHub (Dec 12, 2025): I am having the same issue. I was able to work around this by re-creating the folder that was missing for the series that was causing the issue. This allows scans to work again and for new content to still be processed. After recreating the folder and having the scan run successfully, I am then able to delete the series as expected. No clue why this happens but this is how I got around it. This is not a permissions issue for my case.
Author
Owner

@attilatdeak commented on GitHub (Jan 2, 2026):

Got the same again.

Im on 10.11.5 at the moment. Removing a series result in:

[2026-01-02 04:20:40.146 +01:00] [INF] Removing item, Type: "Series", Name: "The Daily Life of the Immortal King", Path: "/mnt/18TBEXOS/ANIME/The.Daily.Life.of.the.Immortal.King.(2020).[tmdb-98123]", Id: 0f415f23-701f-9dad-63db-2a30ac2889eb [2026-01-02 04:20:40.264 +01:00] [ERR] Failed executing DbCommand ("0"ms) [Parameters=["@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 7996)"], CommandType='Text', CommandTimeout='30']" ""UPDATE \"UserData\" AS \"u\" SET \"ItemId\" = '00000000-0000-0000-0000-000000000001', \"RetentionDate\" = @__date_1 WHERE \"u\".\"ItemId\" IN ( SELECT \"p\".\"value\" FROM json_each(@__p_0) AS \"p\" )"

SET "ItemId" = '00000000-0000-0000-0000-000000000001',

Id: 0f415f23-701f-9dad-63db-2a30ac2889eb

so its trying to update the userdata table, where the series itemid is with... set itemid to a hardcoded 0001 id? They wanna set to mark it if the series is still on the server, i believe, but they are setting the wrong column?

if you simply delete any row containing the ID from the UserData table, the issue is solved and the server can dump the rest of the relevant data from database without an issue.

@attilatdeak commented on GitHub (Jan 2, 2026): Got the same again. Im on 10.11.5 at the moment. Removing a series result in: `[2026-01-02 04:20:40.146 +01:00] [INF] Removing item, Type: "Series", Name: "The Daily Life of the Immortal King", Path: "/mnt/18TBEXOS/ANIME/The.Daily.Life.of.the.Immortal.King.(2020).[tmdb-98123]", Id: 0f415f23-701f-9dad-63db-2a30ac2889eb [2026-01-02 04:20:40.264 +01:00] [ERR] Failed executing DbCommand ("0"ms) [Parameters=["@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 7996)"], CommandType='Text', CommandTimeout='30']" ""UPDATE \"UserData\" AS \"u\" SET \"ItemId\" = '00000000-0000-0000-0000-000000000001', \"RetentionDate\" = @__date_1 WHERE \"u\".\"ItemId\" IN ( SELECT \"p\".\"value\" FROM json_each(@__p_0) AS \"p\" )"` SET \"ItemId\" = '00000000-0000-0000-0000-000000000001', Id: 0f415f23-701f-9dad-63db-2a30ac2889eb so its trying to update the userdata table, where the series itemid is with... set itemid to a hardcoded 0001 id? They wanna set to mark it if the series is still on the server, i believe, but they are setting the wrong column? if you simply delete any row containing the ID from the UserData table, the issue is solved and the server can dump the rest of the relevant data from database without an issue.
Author
Owner

@shikanime commented on GitHub (Jan 8, 2026):

As a workaround, assuming you don't care about the user data, I deleted the user to which the user data was related, so I could delete the shows, then re-create the user.

@shikanime commented on GitHub (Jan 8, 2026): As a workaround, assuming you don't care about the user data, I deleted the user to which the user data was related, so I could delete the shows, then re-create the user.
Author
Owner

@Drun555 commented on GitHub (Jan 9, 2026):

My library scan also fails with next output:

[01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (6ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 1912)], CommandType='Text', CommandTimeout='30']
UPDATE "UserData" AS "u"
SET "ItemId" = '00000000-0000-0000-0000-000000000001',
    "RetentionDate" = @__date_1
WHERE "u"."ItemId" IN (
    SELECT "p"."value"
    FROM json_each(@__p_0) AS "p"
)
[01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
[... I cut the traceback here for visibility]
[01:18:07] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item

Tried to manually delete all records from UserData with ItemID = '00000000-0000-0000-0000-000000000001' (without success, of course). I do have a quite big library with several users, so I am considering a wipe only as a last resort.

@Drun555 commented on GitHub (Jan 9, 2026): My library scan also fails with next output: ``` [01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (6ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 1912)], CommandType='Text', CommandTimeout='30'] UPDATE "UserData" AS "u" SET "ItemId" = '00000000-0000-0000-0000-000000000001', "RetentionDate" = @__date_1 WHERE "u"."ItemId" IN ( SELECT "p"."value" FROM json_each(@__p_0) AS "p" ) [01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. [... I cut the traceback here for visibility] [01:18:07] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item ``` Tried to manually delete all records from UserData with ItemID = '00000000-0000-0000-0000-000000000001' (without success, of course). I do have a quite big library with several users, so I am considering a wipe only as a last resort.
Author
Owner

@attilatdeak commented on GitHub (Jan 9, 2026):

My library scan also fails with next output:

[01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (6ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 1912)], CommandType='Text', CommandTimeout='30']
UPDATE "UserData" AS "u"
SET "ItemId" = '00000000-0000-0000-0000-000000000001',
    "RetentionDate" = @__date_1
WHERE "u"."ItemId" IN (
    SELECT "p"."value"
    FROM json_each(@__p_0) AS "p"
)
[01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
[... I cut the traceback here for visibility]
[01:18:07] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item

Tried to manually delete all records from UserData with ItemID = '00000000-0000-0000-0000-000000000001' (without success, of course). I do have a quite big library with several users, so I am considering a wipe only as a last resort.

The row before these entries contains the failing ID.

@attilatdeak commented on GitHub (Jan 9, 2026): > My library scan also fails with next output: > > ``` > [01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (6ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 1912)], CommandType='Text', CommandTimeout='30'] > UPDATE "UserData" AS "u" > SET "ItemId" = '00000000-0000-0000-0000-000000000001', > "RetentionDate" = @__date_1 > WHERE "u"."ItemId" IN ( > SELECT "p"."value" > FROM json_each(@__p_0) AS "p" > ) > [01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. > Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. > [... I cut the traceback here for visibility] > [01:18:07] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item > ``` > > Tried to manually delete all records from UserData with ItemID = '00000000-0000-0000-0000-000000000001' (without success, of course). I do have a quite big library with several users, so I am considering a wipe only as a last resort. The row before these entries contains the failing ID.
Author
Owner

@Drun555 commented on GitHub (Jan 9, 2026):

My library scan also fails with next output:

[01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (6ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 1912)], CommandType='Text', CommandTimeout='30']
UPDATE "UserData" AS "u"
SET "ItemId" = '00000000-0000-0000-0000-000000000001',
    "RetentionDate" = @__date_1
WHERE "u"."ItemId" IN (
    SELECT "p"."value"
    FROM json_each(@__p_0) AS "p"
)
[01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
[... I cut the traceback here for visibility]
[01:18:07] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item

Tried to manually delete all records from UserData with ItemID = '00000000-0000-0000-0000-000000000001' (without success, of course). I do have a quite big library with several users, so I am considering a wipe only as a last resort.

The row before these entries contains the failing ID.

Ah, just noticed that. Tried to shut it down / delete these records, but without luck - error just appears again after restart with the same ID.

@Drun555 commented on GitHub (Jan 9, 2026): > > My library scan also fails with next output: > > ``` > > [01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (6ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 1912)], CommandType='Text', CommandTimeout='30'] > > UPDATE "UserData" AS "u" > > SET "ItemId" = '00000000-0000-0000-0000-000000000001', > > "RetentionDate" = @__date_1 > > WHERE "u"."ItemId" IN ( > > SELECT "p"."value" > > FROM json_each(@__p_0) AS "p" > > ) > > [01:18:07] [ERR] [20] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. > > Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. > > [... I cut the traceback here for visibility] > > [01:18:07] [ERR] [20] MediaBrowser.Providers.Manager.ProviderManager: Error refreshing item > > ``` > > > > > > > > > > > > > > > > > > > > > > > > Tried to manually delete all records from UserData with ItemID = '00000000-0000-0000-0000-000000000001' (without success, of course). I do have a quite big library with several users, so I am considering a wipe only as a last resort. > > The row before these entries contains the failing ID. Ah, just noticed that. Tried to shut it down / delete these records, but without luck - error just appears again after restart with the same ID.
Author
Owner

@LinFor commented on GitHub (Jan 12, 2026):

I have the same issue:

[2026-01-12T21:27:00.7836078+03:00] [INF] [17] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Series, Name: Форт. Возвращение легенды, Path: /downloads/Series/Форт Боярд. Возвращение легенды.2025.WEB-DL 1080p.Files-x, Id: a99bfb40-4fd1-b204-bfa1-92eb3cf1b340
[2026-01-12T21:27:00.7903866+03:00] [ERR] [17] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (0ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 976)], CommandType='Text', CommandTimeout='30']
UPDATE "UserData" AS "u"
SET "ItemId" = '00000000-0000-0000-0000-000000000001',
    "RetentionDate" = @__date_1
WHERE "u"."ItemId" IN (
    SELECT "p"."value"
    FROM json_each(@__p_0) AS "p"
)
[2026-01-12T21:27:00.7904964+03:00] [ERR] [17] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'.
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
[2026-01-12T21:27:00.7906186+03:00] [DBG] [17] MediaBrowser.Providers.Manager.ProviderManager: OnRefreshComplete 6f675e62324c6c65511fbf0fbe1cbeb1
[2026-01-12T21:27:00.7907003+03:00] [ERR] [17] MediaBrowser.Controller.LibraryTaskScheduler.LimitedConcurrencyLibraryScheduler: Error while performing a library operation
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'.
   at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
   at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
   at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state)
   at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken)
   at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
   at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids)
   at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
   at MediaBrowser.Controller.LibraryTaskScheduler.LimitedConcurrencyLibraryScheduler.ProcessItem(TaskQueueItem item)

@LinFor commented on GitHub (Jan 12, 2026): I have the same issue: ``` [2026-01-12T21:27:00.7836078+03:00] [INF] [17] Emby.Server.Implementations.Library.LibraryManager: Removing item, Type: Series, Name: Форт. Возвращение легенды, Path: /downloads/Series/Форт Боярд. Возвращение легенды.2025.WEB-DL 1080p.Files-x, Id: a99bfb40-4fd1-b204-bfa1-92eb3cf1b340 [2026-01-12T21:27:00.7903866+03:00] [ERR] [17] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (0ms) [Parameters=[@__date_1='?' (DbType = DateTime), @__p_0='?' (Size = 976)], CommandType='Text', CommandTimeout='30'] UPDATE "UserData" AS "u" SET "ItemId" = '00000000-0000-0000-0000-000000000001', "RetentionDate" = @__date_1 WHERE "u"."ItemId" IN ( SELECT "p"."value" FROM json_each(@__p_0) AS "p" ) [2026-01-12T21:27:00.7904964+03:00] [ERR] [17] Microsoft.EntityFrameworkCore.Query: An exception occurred while executing an 'ExecuteUpdate' operation for context type 'Jellyfin.Database.Implementations.JellyfinDbContext'. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) [2026-01-12T21:27:00.7906186+03:00] [DBG] [17] MediaBrowser.Providers.Manager.ProviderManager: OnRefreshComplete 6f675e62324c6c65511fbf0fbe1cbeb1 [2026-01-12T21:27:00.7907003+03:00] [ERR] [17] MediaBrowser.Controller.LibraryTaskScheduler.LimitedConcurrencyLibraryScheduler: Error while performing a library operation Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'UNIQUE constraint failed: UserData.ItemId, UserData.UserId, UserData.CustomDataKey'. at Microsoft.Data.Sqlite.SqliteDataReader.NextResult() at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQuery(RelationalCommandParameterObject parameterObject) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.<>c.<NonQueryResult>b__31_0(DbContext _, ValueTuple`3 state) at Microsoft.EntityFrameworkCore.Query.RelationalShapedQueryCompilingExpressionVisitor.NonQueryResult(RelationalQueryContext relationalQueryContext, RelationalCommandResolver relationalCommandResolver, Type contextType, CommandSource commandSource, Boolean threadSafetyChecksEnabled) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.ExecuteCore[TResult](Expression query, Boolean async, CancellationToken cancellationToken) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Jellyfin.Server.Implementations.Item.BaseItemRepository.DeleteItem(IReadOnlyList`1 ids) at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken) at MediaBrowser.Controller.LibraryTaskScheduler.LimitedConcurrencyLibraryScheduler.ProcessItem(TaskQueueItem item) ```
Author
Owner

@solarflair commented on GitHub (Jan 18, 2026):

I'm also experiencing the same thing. Not going to post the logs unless someone specifically asks because they're no different from what has already been shared, with the same errors just with different filenames. I've tried removing the media named in the error with no effect. It's no longer updating the problem library with newly added material, presumably because of whatever is causing this.

@solarflair commented on GitHub (Jan 18, 2026): I'm also experiencing the same thing. Not going to post the logs unless someone specifically asks because they're no different from what has already been shared, with the same errors just with different filenames. I've tried removing the media named in the error with no effect. It's no longer updating the problem library with newly added material, presumably because of whatever is causing this.
Author
Owner

@Drun555 commented on GitHub (Jan 18, 2026):

I'm also experiencing the same thing. Not going to post the logs unless someone specifically asks because they're no different from what has already been shared, with the same errors just with different filenames. I've tried removing the media named in the error with no effect. It's no longer updating the problem library with newly added material, presumably because of whatever is causing this.

I ended up deleting everything from UserDatas. Better than non-working library at least.

(also tried upgrading to the latest nightly, but it didn’t resolved anything)

@Drun555 commented on GitHub (Jan 18, 2026): > I'm also experiencing the same thing. Not going to post the logs unless someone specifically asks because they're no different from what has already been shared, with the same errors just with different filenames. I've tried removing the media named in the error with no effect. It's no longer updating the problem library with newly added material, presumably because of whatever is causing this. I ended up deleting everything from UserDatas. Better than non-working library at least. (also tried upgrading to the latest nightly, but it didn’t resolved anything)
Author
Owner

@steamkittens commented on GitHub (Jan 25, 2026):

Same issue as https://github.com/jellyfin/jellyfin/issues/15343

@steamkittens commented on GitHub (Jan 25, 2026): Same issue as https://github.com/jellyfin/jellyfin/issues/15343
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#7845