2024-05-18, 03:34 PM
(This post was last modified: 2024-05-18, 03:35 PM by Iskelderon. Edited 1 time in total.)
Whenever I want to do a full scan of my libraries (I use mixed video libraries on a mostly per-country basis), the final step now always is a database error message, but the server continues to run just fine after that. I can see that the task is then marked with a red "(Failed)" and whatever work it wanted to do in that final step, is probably lost when it couldn't access the database correctly.
Code:
[2024-05-18 17:23:04.419 +02:00] [INF] [74] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "E:\Video_other\CN"
[2024-05-18 17:23:04.419 +02:00] [INF] [40] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "E:\Video_other\D"
[2024-05-18 17:23:04.419 +02:00] [INF] [13] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "E:\Video"
[2024-05-18 17:23:04.419 +02:00] [INF] [46] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "E:\Video_other\J"
[2024-05-18 17:23:04.419 +02:00] [INF] [65] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "E:\Video_other\K"
[2024-05-18 17:23:04.419 +02:00] [INF] [36] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "F:\Audiobooks"
[2024-05-18 17:23:04.420 +02:00] [INF] [75] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "F:\Video"
[2024-05-18 17:23:04.420 +02:00] [INF] [55] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "F:\Video_other\D"
[2024-05-18 17:23:04.420 +02:00] [INF] [31] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "D:\Libation Books\Books"
[2024-05-18 17:23:04.420 +02:00] [INF] [96] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "G:\Audio"
[2024-05-18 17:23:04.420 +02:00] [INF] [86] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "F:\Video_other\J"
[2024-05-18 17:23:04.420 +02:00] [INF] [48] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "G:\Audiobooks"
[2024-05-18 17:23:04.420 +02:00] [INF] [57] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "G:\Video"
[2024-05-18 17:23:04.420 +02:00] [INF] [37] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "G:\Video_other\ESP"
[2024-05-18 17:23:04.420 +02:00] [INF] [21] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "G:\Video_other\D"
[2024-05-18 17:23:04.420 +02:00] [INF] [41] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "G:\Video_other\NL"
[2024-05-18 17:23:04.420 +02:00] [ERR] [66] Emby.Server.Implementations.ScheduledTasks.TaskManager: Error executing Scheduled Task
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 5: 'database is locked'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.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.SaveItems(IReadOnlyList`1 items, CancellationToken cancellationToken)
at Emby.Server.Implementations.Library.LibraryManager.CreateItems(IReadOnlyList`1 items, BaseItem parent, CancellationToken cancellationToken)
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.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
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.Entities.Folder.<>c__DisplayClass69_0`1.<<RunTasks>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at MediaBrowser.Controller.Entities.Folder.RunTasks[T](Func`3 task, IList`1 children, IProgress`1 progress, CancellationToken cancellationToken)
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.Entities.AggregateFolder.ValidateChildrenInternal(IProgress`1 progress, Boolean recursive, Boolean refreshChildMetadata, Boolean allowRemoveRoot, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService, CancellationToken cancellationToken)
at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress`1 progress, CancellationToken cancellationToken)
at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress`1 progress, CancellationToken cancellationToken)
at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)