Internal Server Errors: Index outside of bounds

I only noticed this error now, but the Web UI is practically unusable right now.

I use nzbDrone 2.0.0.1690. OS is Windows Server 2003 R2 32 bit; sabnzbd+ runs on the same machine.
I have used this combination for months without any problem.

Almost everything I do triggers an API error:
Doesn’t work:

  • [GET] Internal Server Error : /api/episodefile?seriesId=1
  • [GET] Internal Server Error : /api/notification
  • [GET] Internal Server Error : /api/diskspace
  • [GET] Internal Server Error : /api/update
  • [GET] Internal Server Error : /api/system/backup?sort_by=time&order=desc
  • [GET] Internal Server Error : /api/calendar?start=2014-08-03T22%3A00%3A00.000Z&end=2014-08-10T22%3A00%3A00.000Z

And maybe some other API-endpoints, these are some I noticed when clicking around in the web-UI.

Some /api-endpoints seem to work, but they don’t render on the screen.
When capturing the data in the F12-tools of the browser I notice this error in a json-object:

{
"message": "Index was outside the bounds of the array.",
"description": "System.IndexOutOfRangeException: Index was outside the bounds of the array.\r\n   at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value)\r\n   at Microsoft.CSharp.RuntimeBinder.SymbolTable.AddNamespaceToSymbolTable(NamespaceOrAggregateSymbol parent, String sz)\r\n   at Microsoft.CSharp.RuntimeBinder.SymbolTable.LoadSymbolsFromType(Type originalType)\r\n   at Microsoft.CSharp.RuntimeBinder.SymbolTable.GetConstructedType(Type type, AggregateSymbol agg)\r\n   at Microsoft.CSharp.RuntimeBinder.SymbolTable.LoadSymbolsFromType(Type originalType)\r\n   at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.<CreateArgumentArray>b__a(DynamicMetaObjectBinder p, CSharpArgumentInfo argInfo, Expression param, DynamicMetaObject arg, Int32 index)\r\n   at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.CreateArgumentArray(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args)\r\n   at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.BindCore(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding)\r\n   at Microsoft.CSharp.RuntimeBinder.RuntimeBinder.Bind(DynamicMetaObjectBinder payload, IEnumerable`1 parameters, DynamicMetaObject[] args, DynamicMetaObject& deferredBinding)\r\n   at Microsoft.CSharp.RuntimeBinder.BinderHelper.Bind(DynamicMetaObjectBinder action, RuntimeBinder binder, IEnumerable`1 args, IEnumerable`1 arginfos, DynamicMetaObject onBindingError)\r\n   at Microsoft.CSharp.RuntimeBinder.CSharpInvokeMemberBinder.FallbackInvokeMember(DynamicMetaObject target, DynamicMetaObject[] args, DynamicMetaObject errorSuggestion)\r\n   at System.Dynamic.DynamicMetaObject.BindInvokeMember(InvokeMemberBinder binder, DynamicMetaObject[] args)\r\n   at System.Dynamic.InvokeMemberBinder.Bind(DynamicMetaObject target, DynamicMetaObject[] args)\r\n   at System.Dynamic.DynamicMetaObjectBinder.Bind(Object[] args, ReadOnlyCollection`1 parameters, LabelTarget returnLabel)\r\n   at System.Runtime.CompilerServices.CallSiteBinder.BindCore[T](CallSite`1 site, Object[] args)\r\n   at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2[T0,T1](CallSite site, T0 arg0, T1 arg1)\r\n   at CallSite.Target(Closure , CallSite , TaskCompletionSource`1 , Object )\r\n   at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)"

}

It’s the same error I see in the logs.

I still get Pushbullet-notifications that stuff is being downloaded, so that part still seems to work.

Is there something I can try to investigate/fix this issue?
Thanks!

Please pastebin the log file. Not sure what the path is on XP/2003 but you should be able to find it by looking for nzbdrone.log

Have tried to restart the service?

… Service?

Oh wow, I always had nzbDrone running in an interactive session, didn’t notice there was a windows service installed. Setting it to automatic startup now…

I ran it that way instead and the errors are gone it seems! Thanks for the (obvious) suggestion. Should have tried that one first, it’s Windows after all :-).

Do you still want those logs?

Awesome, the service is only bad if you use network shares (mapped to a drive letter), since they don’t work well with services.

If it comes up again fire them my way, otherwise naw, the snippet you showed was somewhere from the guts of .net and probably not a great deal of help.