Jump to content

Cannot access a disposed object. Object name: 'SqliteItemRepository has been disposed and cannot be accessed.'.


Drazgo

Recommended Posts

Drazgo

Running into an issue since latest two updates (may or not be related).

 

All of my shows are showing offline.

 

This is the error:  Cannot access a disposed object. Object name: 'SqliteItemRepository has been disposed and cannot be accessed.'.

 

I've googled but haven't found a fix.

 

Thanks!

Draz
 

Link to comment
Share on other sites

Drazgo

Upgraded to .63, offline message appears to be gone but the library scan is no longer moving.  Please see attached logs.

 

https://www.dropbox.com/sh/gtl17h45pz6hafq/AAA1xZZyKflV-rCpj-5l4lpga?dl=0

 

I am also unable to play anything and images do not appear to be working either.  I have checked the paths to everything and I can access.

 

Cheers,

Draz

Edited by Drazgo
Link to comment
Share on other sites

Happy2Play

From another post on the exception you are receiving.
 

Here is the error:


Only one usage of each socket address (protocol/network address/port) is normally permitted
Every once in a while Windows will take several minutes to release the port bindings after you shutdown Emby Server. You can run into this error if you are frantically restarting Emby Server over and over, which I'm guessing you were based on your other topic. Just wait 5 minutes and it usually clears itself up and goes away. Or reboot your computer.

 

Link to comment
Share on other sites

Drazgo

Hi Happy,

 

I believe that error was a result of the update.

 

After the update, I clicked the restart button from the browser menu.. it took about a minute then came back with the unhandled exception error.  This happened a once or twice more before coming up and displaying the current behavior.

 

I've done reboots of my nas, computer, and emby in various orders and I am still getting the same behavior unfortunately.  Library scan won't move past less than a quarter of the bar, images are not displaying for anything other than recently watched, and playback doesn't appear to work either.

 

I've let the library scan sit all day with no result.  So something isn't communicating properly with emby it looks like.

 

Just now, while jumping around the menu, it wouldn't refresh the browser.  I closed that browser and opened a new one and it now is at 45% clean database.

 

Googling on that it looks like others have experienced a loss of images and thumbnails... should I clear cache?

Edited by Drazgo
Link to comment
Share on other sites

  • 2 weeks later...
Drazgo

So I was unable to resolve so I did a partial uninstall, which seemed to just wipe out everything anyway :)

 

It wiped my profiles and database, so basically its a brand new install... full scan and rebuild of db, had to create new profile, etc.

 

So far no issues.  Thanks all to were looking into the issue.  I will return if it occurs again hopefully with logs that have useful info.

Cheers,
Draz

Link to comment
Share on other sites

  • 4 months later...
elboletaire

Just got this error now (well, yesterday). Here's the log:

2016-12-15 02:05:08.9687 Error TaskManager: Error
	*** Error Report ***
	Version: 3.0.8500.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /config -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 3.16.0.4
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /config
	Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 21 15:56:40 UTC 2016)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Cannot access a disposed object.
	Object name: 'SqliteItemRepository has been disposed and cannot be accessed.'.
	System.ObjectDisposedException
	  at MediaBrowser.Server.Implementations.Persistence.BaseSqliteRepository.CheckDisposed () [0x00020] in <5f52323923d14541af0ff808a42a1dbd>:0 
	  at MediaBrowser.Server.Implementations.Persistence.SqliteItemRepository.GetItemList (MediaBrowser.Controller.Entities.InternalItemsQuery query) [0x00011] in <5f52323923d14541af0ff808a42a1dbd>:0 
	  at MediaBrowser.Controller.Entities.Folder.GetCachedChildren () [0x00023] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Controller.Entities.Folder.LoadChildren () [0x00000] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Controller.Entities.Folder.get_ActualChildren () [0x00000] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Controller.Entities.Folder.get_Children () [0x00000] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Controller.Entities.Folder.AddChildrenToList (System.Collections.Generic.Dictionary`2[TKey,TValue] result, System.Boolean includeLinkedChildren, System.Boolean recursive, System.Func`2[T,TResult] filter) [0x00000] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Controller.Entities.Folder.GetRecursiveChildren (System.Func`2[T,TResult] filter, System.Boolean includeLinkedChildren) [0x00006] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Controller.Entities.Folder.GetRecursiveChildren (System.Func`2[T,TResult] filter) [0x00000] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	  at MediaBrowser.Providers.Manager.MetadataService`2[TItemType,TIdType].SaveDateLastMediaAdded (TItemType item, System.Boolean isFullRefresh, MediaBrowser.Controller.Library.ItemUpdateType currentUpdateType) [0x0001f] in <258623b9532143bcbd5f5b4639d5eb9a>:0 
	  at MediaBrowser.Providers.Manager.MetadataService`2+<BeforeSave>c__async4[TItemType,TIdType].MoveNext () [0x00034] in <258623b9532143bcbd5f5b4639d5eb9a>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Providers.Manager.MetadataService`2+<RefreshMetadata>c__async0[TItemType,TIdType].MoveNext () [0x0056f] in <258623b9532143bcbd5f5b4639d5eb9a>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.BaseItem+<RefreshMetadata>c__async1.MoveNext () [0x001fa] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.TV.Series+<RefreshAllMetadata>c__async0.MoveNext () [0x000f6] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.Folder+<RefreshChildMetadata>c__async3.MoveNext () [0x000a4] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.Folder+<RefreshMetadataRecursive>c__async2.MoveNext () [0x001c9] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.Folder+<RefreshChildMetadata>c__async3.MoveNext () [0x00197] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.Folder+<RefreshMetadataRecursive>c__async2.MoveNext () [0x001c9] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.Folder+<ValidateChildrenInternal>c__async1.MoveNext () [0x00796] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Controller.Entities.AggregateFolder+<ValidateChildrenInternal>c__async0.MoveNext () [0x0009d] in <3cd2a80addc2475b811a7f2fe2c0317f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Server.Implementations.Library.LibraryManager+<PerformLibraryValidation>c__async3.MoveNext () [0x00315] in <5f52323923d14541af0ff808a42a1dbd>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Server.Implementations.Library.LibraryManager+<ValidateMediaLibraryInternal>c__async2.MoveNext () [0x000ae] in <5f52323923d14541af0ff808a42a1dbd>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at MediaBrowser.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>c__async2.MoveNext () [0x0019c] in <0038e6318ee94551828e37fd569b145e>:0 
	
2016-12-15 02:05:08.9687 Info TaskManager: Scan media library Failed after 5 minute(s) and 38 seconds

After that log I see a lot more logs saying it's killing some processes and then Error in WaitForExit

 

I've just uploaded the entire log to my gitlab (seems that pastebin now has a limit for non pro users), so you can take a further look into it if you want: https://gitlab.cirici.com/snippets/14

Link to comment
Share on other sites

Was there an actual error in operation?

 

Usually, that error will appear in the logs when the server is in the process of shutting down and it is fairly harmless.

 

Was your server, perhaps, restarting for an update?

Link to comment
Share on other sites

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