MisterAngelus 7 Posted December 24, 2020 Posted December 24, 2020 I got a new PC so I deleted my old Emby library and added the new one and now for some reason it wont do a library scan The error I'm receiving Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)at SQLitePCL.pretty.StatementImpl.MoveNext()at Emby.Sqlite.SqliteExtensions.ExecuteQuery(IStatement This)+MoveNext()at Emby.Server.Implementations.Data.SqliteItemRepository.QueryItemsInTransaction[T](InternalItemsQuery query, IDatabaseConnection db, String[] columnsToSelect, Func`5 rowReaderFn, Boolean singleResult, String methodName)at Emby.Server.Implementations.Data.SqliteItemRepository.GetItemList(InternalItemsQuery query)at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem)at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService)at MediaBrowser.Controller.Entities.UserRootFolder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService)at Emby.Server.Implementations.Library.LibraryManager.ValidateTopLibraryFolders(Boolean refreshMetadatas, 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)
Happy2Play 9785 Posted December 24, 2020 Posted December 24, 2020 Please post the complete server log.
MisterAngelus 7 Posted December 24, 2020 Author Posted December 24, 2020 embyserver.txt hardware_detection-63744426672.txt
Solution Happy2Play 9785 Posted December 24, 2020 Solution Posted December 24, 2020 "SQLitePCL.pretty.SQLiteException: Corrupt: database disk image is malformed" usually means you have a corrupt library.db. With Emby shut down make sure you don't have any rouge "library.db-shm" or "library.db-wal". If so delete and attempt to start Emby and see if you get the same error, otherwise you will need to delete/rename the db and allow to rebuild. 2020-12-24 17:11:28.618 Error TaskManager: Error *** Error Report *** Version: 4.5.4.0 Command line: F:\App Data\Emby\system\EmbyServer.dll Operating system: Microsoft Windows 10.0.19042 Framework: .NET Core 3.1.9 OS/Process: x64/x64 Runtime: F:/App Data/Emby/system/System.Private.CoreLib.dll Processor count: 8 Data path: F:\App Data\Emby\programdata Application path: F:\App Data\Emby\system SQLitePCL.pretty.SQLiteException: Corrupt: database disk image is malformed SQLitePCL.pretty.SQLiteException: Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown. at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc) at SQLitePCL.pretty.StatementImpl.MoveNext() at Emby.Sqlite.SqliteExtensions.ExecuteQuery(IStatement This)+MoveNext() at Emby.Server.Implementations.Data.SqliteItemRepository.QueryItemsInTransaction[T](InternalItemsQuery query, IDatabaseConnection db, String[] columnsToSelect, Func`5 rowReaderFn, Boolean singleResult, String methodName) at Emby.Server.Implementations.Data.SqliteItemRepository.GetItemList(InternalItemsQuery query) at Emby.Server.Implementations.Library.LibraryManager.GetItemList(InternalItemsQuery query) at MediaBrowser.Controller.Entities.Folder.GetRecursiveChildren() at Emby.Server.Implementations.Library.LibraryManager.DeleteItem(BaseItem item, DeleteOptions options, BaseItem parent, Boolean notifyParentItem) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.UserRootFolder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at Emby.Server.Implementations.Library.LibraryManager.ValidateTopLibraryFolders(Boolean refreshMetadatas, 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) Source: SQLitePCL.pretty TargetSite: Void CheckOk(SQLitePCLEx.sqlite3, Int32) 2
MisterAngelus 7 Posted December 25, 2020 Author Posted December 25, 2020 Just wanted to let you know deleting the library.db worked Thanks
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now