Jump to content

Recommended Posts

rblackhaw
Posted

4.6.0.50 updated two days ago and I've been getting multiple "Scan media library failed" alerts as well as  "User activity notification failed", "Configuration backup failed", and a "Trim db failed" alerts. I'm unable to add new content since the scans aren't working. The Activity section has stopped showing users online or disconnected and is no longer showing playing or finished content. I have rebooted my pc and restarted Emby but nothing has changed.

Errors.thumb.JPG.a2e0699ff24b8d32f9f2845f330b2572.JPG

 

embyserver.txt

Happy2Play
Posted
14 minutes ago, rblackhaw said:

4.6.0.50 updated two days ago and I've been getting multiple "Scan media library failed" alerts as well as  "User activity notification failed", "Configuration backup failed", and a "Trim db failed" alerts. I'm unable to add new content since the scans aren't working. The Activity section has stopped showing users online or disconnected and is no longer showing playing or finished content. I have rebooted my pc and restarted Emby but nothing has changed.

Errors.thumb.JPG.a2e0699ff24b8d32f9f2845f330b2572.JPG

 

embyserver.txt 2.73 MB · 0 downloads

Your database is locked please restart your system and try again.

 

SQLitePCL.pretty.SQLiteException: Busy: database is locked

 

rblackhaw
Posted

I restarted again and library scan is still failing.

 

embyserver-2.txt

Happy2Play
Posted
4 minutes ago, rblackhaw said:

I restarted again and library scan is still failing.

 

embyserver-2.txt 256.03 kB · 0 downloads

Your database is still locked.  This usually means you have two instances of Emby running against the same database.

With Emby shutdown how many library.db files do you see in C:\Users\Berd\AppData\Roaming\Emby-Server\programdata\data?  Does taskmanager still show Emby still running?

rblackhaw
Posted

Emby was showing twice in taskmanager before shutting down Emby. Once after shutting down. I ended that one and restarted Emby. The library scan worked and it seems to be working now. Thanks for your help!

Happy2Play
Posted
11 minutes ago, rblackhaw said:

Emby was showing twice in taskmanager before shutting down Emby. Once after shutting down. I ended that one and restarted Emby. The library scan worked and it seems to be working now. Thanks for your help!

I wonder by chance is startup launching Emby and your service launching Emby?

rblackhaw
Posted
16 minutes ago, Happy2Play said:

I wonder by chance is startup launching Emby and your service launching Emby?

I've been running it as a service but I just checked and it is showing up under Startup Apps too which I never set before.

Happy2Play
Posted
30 minutes ago, rblackhaw said:

I've been running it as a service but I just checked and it is showing up under Startup Apps too which I never set before.

Is the option enabled on Dashboard-Settings?

rblackhaw
Posted
9 minutes ago, Happy2Play said:

Is the option enabled on Dashboard-Settings?

Yep, it is. I must have not been paying attention and enabled it at some point. I know it wasn't set before.

thekingswolf
Posted

this is happening to me now as well, same database lock.  I have rebooted and restarted.  I do not have 2 instances of emby in task manager.  I see embytray and EmbyServer.  I do not have a service setup, and Run server at start in the dashboard settings is how I have always loaded Emby.  

embyserver.txt

Carlo
Posted

Try turning that option off and restarting the system.
Did Emby get loaded and if so how many versions are running now?

It's possible you have Emby set to run another way.

thekingswolf
Posted

I turned it off and restarted and no emby loaded at all.  I manually opened it and the scan worked.  I turned it back on, rebooted, and it's been working since.  no idea what happened.

  • Like 1
Diedrich
Posted
22 hours ago, rblackhaw said:

Yep, it is. I must have not been paying attention and enabled it at some point. I know it wasn't set before.

@devs Emby should do a sanity check for this. Run at startup and run as service shouldn't be allowed to be turned on simultaneously.

Carlo
Posted
2 hours ago, thekingswolf said:

I turned it off and restarted and no emby loaded at all.  I manually opened it and the scan worked.  I turned it back on, rebooted, and it's been working since.  no idea what happened.

Turn it off if running as a service.

thekingswolf
Posted

I have never loaded emby as a service

thekingswolf
Posted

it was working but now it is doing it again.  

 

Quote

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.UpdatePeople(Int64 itemId, Int64 topParentId, List`1 people)
at Emby.Server.Implementations.Library.LibraryManager.UpdatePeople(BaseItem item, List`1 people, Boolean isNewItem)
at MediaBrowser.Providers.Manager.MetadataService`2.SaveItem(MetadataResult`1 result, Boolean isFirstRefresh, LibraryOptions libraryOptions, ItemUpdateType reason, IDirectoryService directoryService, CancellationToken cancellationToken)
at MediaBrowser.Providers.Manager.MetadataService`2.RefreshMetadata(BaseItem item, MetadataRefreshOptions refreshOptions, LibraryOptions libraryOptions, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.BaseItem.RefreshMetadata(MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.RefreshAllMetadataForContainer(IMetadataContainer container, MetadataRefreshOptions refreshOptions, LibraryOptions libraryOptions, IProgress`1 progress, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.RefreshMetadataRecursive(BaseItem[] children, MetadataRefreshOptions refreshOptions, LibraryOptions libraryOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.RefreshMetadataRecursive(BaseItem[] children, MetadataRefreshOptions refreshOptions, LibraryOptions libraryOptions, Boolean recursive, IProgress`1 progress, CancellationToken cancellationToken)
at MediaBrowser.Controller.Entities.Folder.ValidateChildrenInternal(IProgress`1 progress, CancellationToken cancellationToken, Boolean recursive, Boolean refreshChildMetadata, MetadataRefreshOptions refreshOptions, IDirectoryService directoryService)
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)

 

thekingswolf
Posted

new scan after deleting library file seems to be getting stuck at 88.7%.  rebooted and started a new scan, again stopping at 88.7%

embyserver.txt

Happy2Play
Posted
2 minutes ago, thekingswolf said:

new scan after deleting library file seems to be getting stuck at 88.7%.  rebooted and started a new scan, again stopping at 88.7%

embyserver.txt 910.92 kB · 0 downloads

I see in the log Emby still getting images.  Rebooting because you think it is stuck can sometimes make it worse.  I would monitor the log vs restarting.

Posted

If you're going to shutdown the server then do it gracefully by using the buttons in the web interface or tray icon. If you just kill the process then you're going to increase the chances of data corruption and you basically end up having to start this all over.

thekingswolf
Posted

i tried using the buttons but it wasn't functioning so I had to reboot the machine.  Thanks all for the responses, any idea why this happened?  I assume it's something with the latest update, seems like some others having this happen as well.

Posted
3 minutes ago, thekingswolf said:

i tried using the buttons but it wasn't functioning so I had to reboot the machine.  Thanks all for the responses, any idea why this happened?  I assume it's something with the latest update, seems like some others having this happen as well.

Typical causes are mentioned in the help topic that was linked to. happy2play is right though. It looks like you're misinterpreting a scan that is taking a long time as stuck and then trying to fix something that isn't actually having a problem, and then that's what causes this.

Happy2Play
Posted
2 minutes ago, thekingswolf said:

i tried using the buttons but it wasn't functioning so I had to reboot the machine.  Thanks all for the responses, any idea why this happened?  I assume it's something with the latest update, seems like some others having this happen as well.

That log looks this the "Z:\Anime\Shows" library is being processed.

example

2021-05-24 13:51:09.579 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: C:\Users\tkw\AppData\Roaming\Emby-Server\system\ffprobe.exe -i file:"Z:\Anime\Shows\One Piece\One Piece - S13E32 Luffy's Hard Trial! The Power of the Snake Sisters' Willpower!.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data

@LukeDo these season less folder layouts fall under the patch or should there be any issues with them?

thekingswolf
Posted

I understand rebooting during the scan is not advisable.  I was more referencing what cause me to have to do this to begin with.  The article you posted states:

Quote

Typical causes of this are sudden and abrupt terminations of the Emby server process, such as a power loss, operating system crash, force killing the server process, etc. 

But I had not experienced any of these concerns before hand to cause this to begin with, and due to the multiple posts of others having this same issue since the new update, I assumed it was related.  

thekingswolf
Posted (edited)
7 minutes ago, Happy2Play said:

That log looks this the "Z:\Anime\Shows" library is being processed.

example




2021-05-24 13:51:09.579 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: C:\Users\tkw\AppData\Roaming\Emby-Server\system\ffprobe.exe -i file:"Z:\Anime\Shows\One Piece\One Piece - S13E32 Luffy's Hard Trial! The Power of the Snake Sisters' Willpower!.mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data

@LukeDo these season less folder layouts fall under the patch or should there be any issues with them?

i use TVDB formatting with my folder layouts and naming conventions.  I apologize but i am not sure what you mean when you ask if these fall under the patch?

 

-edit, just saw you were speaking to Luke on that question lol.  most of my shows are all in season folders but that one was a large batch

Edited by thekingswolf

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