Jump to content

SQLitePCL.pretty.SQLiteException'


Recommended Posts

Posted

Hi,

 

Since today I have this error when I perform a library scan.

 

Exception of type 'SQLitePCL.pretty.SQLiteException' was thrown.

 

Can you help me please?

Posted

Hi there, please attach the complete emby server log, thanks.

Posted


2017-12-27 22:07:52.845 Info LibraryMonitor: Watching directory C:\Database\Films

2017-12-27 22:07:52.845 Info LibraryMonitor: Watching directory C:\Database\Anime

2017-12-27 22:07:52.845 Info LibraryMonitor: Watching directory C:\Database\Series TV

2017-12-27 22:07:52.845 Info LibraryMonitor: Watching directory C:\Database\Jeunesse

2017-12-27 22:07:52.858 Error TaskManager: Error

*** Error Report ***

Version: 3.2.60.0

Command line: C:\Users\Administrateur\AppData\Roaming\Emby-Server\system\EmbyServer.dll

Operating system: Microsoft Windows NT 6.2.9200.0

64-Bit OS: True

64-Bit Process: True

User Interactive: True

Processor count: 8

Program data path: C:\Users\Administrateur\AppData\Roaming\Emby-Server

Application directory: C:\Users\Administrateur\AppData\Roaming\Emby-Server\system

Busy: database is locked

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.Server.Implementations.Data.SqliteItemRepository.SaveItem(BaseItem item, BaseItem topParent, String userDataKey, IStatement saveItemStatement)

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation(IDatabaseConnection db, List`1 tuples)

at SQLitePCL.pretty.DatabaseConnection.<>c__DisplayClass20_0.<RunInTransaction>b__0(IDatabaseConnection db)

at SQLitePCL.pretty.DatabaseConnection.RunInTransaction[T](IDatabaseConnection This, Func`2 f, TransactionMode mode)

at SQLitePCL.pretty.DatabaseConnection.RunInTransaction(IDatabaseConnection This, Action`1 action, TransactionMode mode)

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(List`1 items, CancellationToken cancellationToken)

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItem(BaseItem item, CancellationToken cancellationToken)

at Emby.Server.Implementations.Library.LibraryManager.UpdateItem(BaseItem item, ItemUpdateType updateReason, CancellationToken cancellationToken)

at MediaBrowser.Controller.Entities.Video.UpdateToRepository(ItemUpdateType updateReason, CancellationToken cancellationToken)

at MediaBrowser.Providers.Manager.MetadataService`2.<SaveItem>d__10.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>d__8.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.BaseItem.<RefreshMetadata>d__351.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.TV.Series.<RefreshAllMetadata>d__53.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshAllMetadataForContainer>d__63.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshChildMetadata>d__64.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshMetadataRecursive>d__62.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshChildMetadata>d__64.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshMetadataRecursive>d__62.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<ValidateChildrenInternal2>d__61.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<ValidateChildrenInternal>d__60.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.AggregateFolder.<ValidateChildrenInternal>d__25.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Emby.Server.Implementations.Library.LibraryManager.<PerformLibraryValidation>d__107.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Emby.Server.Implementations.Library.LibraryManager.<ValidateMediaLibraryInternal>d__106.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()

SQLitePCL.pretty.SQLiteException

at SQLitePCL.pretty.SQLiteException.CheckOk(sqlite3 db, Int32 rc)

at SQLitePCL.pretty.StatementImpl.MoveNext()

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItem(BaseItem item, BaseItem topParent, String userDataKey, IStatement saveItemStatement)

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation(IDatabaseConnection db, List`1 tuples)

at SQLitePCL.pretty.DatabaseConnection.<>c__DisplayClass20_0.<RunInTransaction>b__0(IDatabaseConnection db)

at SQLitePCL.pretty.DatabaseConnection.RunInTransaction[T](IDatabaseConnection This, Func`2 f, TransactionMode mode)

at SQLitePCL.pretty.DatabaseConnection.RunInTransaction(IDatabaseConnection This, Action`1 action, TransactionMode mode)

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(List`1 items, CancellationToken cancellationToken)

at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItem(BaseItem item, CancellationToken cancellationToken)

at Emby.Server.Implementations.Library.LibraryManager.UpdateItem(BaseItem item, ItemUpdateType updateReason, CancellationToken cancellationToken)

at MediaBrowser.Controller.Entities.Video.UpdateToRepository(ItemUpdateType updateReason, CancellationToken cancellationToken)

at MediaBrowser.Providers.Manager.MetadataService`2.<SaveItem>d__10.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Providers.Manager.MetadataService`2.<RefreshMetadata>d__8.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.BaseItem.<RefreshMetadata>d__351.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.TV.Series.<RefreshAllMetadata>d__53.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshAllMetadataForContainer>d__63.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshChildMetadata>d__64.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshMetadataRecursive>d__62.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshChildMetadata>d__64.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<RefreshMetadataRecursive>d__62.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<ValidateChildrenInternal2>d__61.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.Folder.<ValidateChildrenInternal>d__60.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at MediaBrowser.Controller.Entities.AggregateFolder.<ValidateChildrenInternal>d__25.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Emby.Server.Implementations.Library.LibraryManager.<PerformLibraryValidation>d__107.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Emby.Server.Implementations.Library.LibraryManager.<ValidateMediaLibraryInternal>d__106.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext()

 

2017-12-27 22:07:52.859 Info TaskManager: Scan media library Failed after 0 minute(s) and 26 seconds

 

Posted

I m on Windows 2012 server

Posted

Shutdown emby server and rename this file:

 

C:\Users\Administrateur\AppData\Roaming\Emby-Server\data\library.db

 

Then start back up and run a library scan + refresh guide if you are using live tv. Typical causes of this are sudden terminations of the server process, such as a power loss, hardware failure, OS crash, forcefully powering off the machine in an ungraceful manner, etc.

Posted

When you say start backup how can I do that? from the backup plugin or manually?

Posted

In other words, run emby server. if you have a backup from the backup plugin, then you will want to use that to restore user data, but only user data.

Posted

I had the exact same error on Windows Server 2016. I re-installed Emby server over the top of existing and it fixed the issue for me.

Posted

I had the exact same error on Windows Server 2016. I re-installed Emby server over the top of existing and it fixed the issue for me.

 

hi @@g_phill, you could not have had the same error, because this error cannot be resolved by installing over the top. Best thing to do next time is see how to report a problem. thanks !

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...