Jump to content

Scan Media Library Failed - Latest Emby update


Recommended Posts

nanohits
Posted

Hi,

I am getting the following error after restarting Emby with the latest update ,

Scan media library failed

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.GetUserDataKeyId(String userDataKey, IStatement insertUserDataKeyStatement, IStatement getUserDataKeyStatement) at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItemsInTranscation(IDatabaseConnection db, List1 tuples) at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(List1 items, Action1 afterSave, CancellationToken cancellationToken) at Emby.Server.Implementations.Data.SqliteItemRepository.SaveItems(List1 items, CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.CreateItems(List1 items, BaseItem parent, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at MediaBrowser.Controller.Entities.Folder.ValidateSubFolders(BaseItem[] children, IDirectoryService directoryService, IProgress1 progress, CancellationToken cancellationToken) at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService) at Emby.Server.Implementations.Library.LibraryManager.PerformLibraryValidation(IProgress1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.Library.LibraryManager.ValidateMediaLibraryInternal(IProgress1 progress, CancellationToken cancellationToken) at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)

nanohits
Posted

Sorted. A restart of the computer fixed it.

  • Like 1
Posted

Thanks for updating us on your status.

Posted

Hi

i am getting the same problem if i restart the server it sorts it out but after a day or so it comes back and i cant be restarting the server every few days.

any ideas or help would be great thanks 

 

  • 2 weeks later...
Happy2Play
Posted
On 6/21/2021 at 10:54 AM, deallier said:

Hi

i am getting the same problem if i restart the server it sorts it out but after a day or so it comes back and i cant be restarting the server every few days.

any ideas or help would be great thanks 

 

Yes there is a known issue in 4.6.3.0, if you need immediate relief you can install beta 4.7.0.3 and then downgrade when 4.6.4.0 is released.  Or wait and do the database lock fix as needed.

  • 1 year later...
ArMaCampFlow
Posted

Hello Luke I have the same  error and i can enter in your link i get 403 forbidden 

Happy2Play
Posted
2 minutes ago, ArMaCampFlow said:

Hello Luke I have the same  error and i can enter in your link i get 403 forbidden 

Not sure why you would be getting that error as it is working here.

If you're getting "Corrupt: database disk image is malformed" in your server log you will need to reset your database.

Steps to Reset Library Database & Load Fresh

1. Shutdown Emby
2. Change to the database location found above containing your database files
3. Rename library.db to library.corrupt
4. Restart Emby
5. Run a Full Library Scan

If you are getting something different, we will need to see the server log.

  • Thanks 1

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...