2024-05-24, 01:41 PM
(This post was last modified: 2024-05-24, 01:41 PM by pcm. Edited 1 time in total.)
Hi,
I every time I am trying to do my library scans, it keeps failing.
Looking at the logs it seems like it fails because of SQLite DB keeps getting locked... The DB seems to keep getting locked while trying to update/save images ...
Anyone run into this problem before ? And any idea how to fix this easily ?
I every time I am trying to do my library scans, it keeps failing.
Looking at the logs it seems like it fails because of SQLite DB keeps getting locked... The DB seems to keep getting locked while trying to update/save images ...
Anyone run into this problem before ? And any idea how to fix this easily ?
Quote:[2024-05-24 05:17:38.285 -04:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"<sanitized>\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-05-24 05:17:38.285 -04:00] [INF] Starting "/usr/lib/jellyfin-ffmpeg/ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"<sanitized>\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-05-24 05:17:42.006 -04:00] [INF] Watching directory "<sanitized>"
[2024-05-24 05:17:42.000 -04:00] [ERR] Error executing Scheduled Task
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteConnectionExtensions.ExecuteNonQuery(SqliteConnection connection, String commandText, SqliteParameter[] parameters)
at Microsoft.Data.Sqlite.SqliteTransaction..ctor(SqliteConnection connection, IsolationLevel isolationLevel, Boolean deferred)
at Emby.Server.Implementations.Data.SqliteItemRepository.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(IReadOnlyList1 items, BaseItem parent, ItemUpdateType updateReason, CancellationToken cancellationToken)
2.SaveItemAsync(MetadataResult
at MediaBrowser.Controller.Entities.Video.UpdateToRepositoryAsync(ItemUpdateType updateReason, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.MetadataService1 result, ItemUpdateType reason, CancellationToken cancellationToken)
2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.MetadataService
at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress1 progress, CancellationToken cancellationToken)
1.<<RunTasks>b__1>d.MoveNext()
at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0
--- End of stack trace from previous location ---
at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func3 task, IList
1 children, IProgress1 progress, CancellationToken cancellationToken)
1 progress, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress
at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_01.<<RunTasks>b__1>d.MoveNext()
3 task, IList
--- End of stack trace from previous location ---
at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func1 children, IProgress
1 progress, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.RefreshChildMetadata(BaseItem child, MetadataRefreshOptions refreshOptions, Boolean recursive, IProgress1 progress, CancellationToken cancellationToken)
1.<<RunTasks>b__1>d.MoveNext()
at MediaBrowser.Controller.Entities.Folder.<>c__DisplayClass69_0
--- End of stack trace from previous location ---
at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func3 task, IList
1 children, IProgress1 progress, CancellationToken cancellationToken)
1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal2(IProgress
at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.AggregateFolder.ValidateChildrenInternal(IProgress
at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress1 progress, CancellationToken cancellationToken)
1 progress, CancellationToken cancellationToken)
at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
[2024-05-24 05:17:42.021 -04:00] [INF] "Scan Media Library" Failed after 22 minute(s) and 33 seconds
[2024-05-24 05:17:44.298 -04:00] [INF] Watching directory "<sanitized>"
[2024-05-24 05:18:08.043 -04:00] [INF] Watching directory "<sanitized>"
[2024-05-24 05:18:17.793 -04:00] [INF] Finished creation of trickplay files for "<sanitized>"
[2024-05-24 05:18:17.803 -04:00] [INF] Creating trickplay files at 320 width, for "<sanitized>" [ID: 3860de12-87ed-9b09-651e-b7f1a59c51a4]
[2024-05-24 05:18:17.803 -04:00] [INF] Trickplay generation: "/usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -hwaccel_flags +unsafe_output -threads 1 -noautorotate -i file:\"<sanitized>\" -noautoscale -an -sn -vf \"fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=w=320:h=180:format=yuv420p,hwdownload,format=yuv420p\" -threads 9 -c:v mjpeg -qscale:v 4 -f image2 \"/tmp/jellyram/temp/ad17a37cdf74433aa3b21815df29a441/%08d.jpg\""