Jump to content

Unhandled exception, emby won't start


ddurdle

Recommended Posts

ddurdle

Emby 3.5.3 running on Debian Stretch.  On a restart, now Emby will not restart successfully, generating the following unhandled exception.

 

 System.ArgumentNullException: Value cannot be null.

Parameter name: key
   at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNullException()
   at System.Collections.Concurrent.ConcurrentDictionary`2.TryRemove(TKey key, TValue& value)
   at Emby.Server.Implementations.LiveTv.EmbyTV.TimerManager.StopTimer(TimerInfo item)
   at Emby.Server.Implementations.LiveTv.EmbyTV.TimerManager.AddOrUpdateSystemTimer(TimerInfo item, Boolean scheduleSystemWakeTimer)
   at Emby.Server.Implementations.LiveTv.EmbyTV.TimerManager.RestartTimers()
   at Emby.Server.Implementations.LiveTv.EmbyTV.EmbyTV.Start()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
System.ArgumentNullException
   at System.Collections.Concurrent.ConcurrentDictionary`2.ThrowKeyNullException()
   at System.Collections.Concurrent.ConcurrentDictionary`2.TryRemove(TKey key, TValue& value)
   at Emby.Server.Implementations.LiveTv.EmbyTV.TimerManager.StopTimer(TimerInfo item)
   at Emby.Server.Implementations.LiveTv.EmbyTV.TimerManager.AddOrUpdateSystemTimer(TimerInfo item, Boolean scheduleSystemWakeTimer)
   at Emby.Server.Implementations.LiveTv.EmbyTV.TimerManager.RestartTimers()
   at Emby.Server.Implementations.LiveTv.EmbyTV.EmbyTV.Start()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
 
 
 
 

embyserver.txt

Link to comment
Share on other sites

ddurdle

if I rename/remove  /var/lib/emby/data/livetv/timers.json, emby starts.

 

I don't touch this file in any ways, so somehow there must be a corrupt entry that was introduced to the file that prevented emby from starting up, encountering an issue while setting one of the timers.  Did you want a copy of this file?

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