Sonarr isn't starting and cannot access a disposed object

Please update your wiki! The backup guide is really unhelpful. Add a guide to pulling the backup via Putty or some other ssh program because your instructions are useless if I can’t start sonarr due to some error. It’s incredibly frustrating that no program exists with a visual view of the folders, especially since root and admin have been combined with Synology DSM 6.0.2-8451

17-4-1 13:19:31.0|Info|InstallUpdateService|Deleting old update files
17-4-1 13:19:32.0|Error|CommandExecutor|Error occurred while executing task ApplicationUpdate

[v2.0.0.4613] System.IO.IOException: Directory /tmp/nzbdrone_update/nzbdrone_backup is not empty
  at System.IO.Directory.Delete (System.String path) [0x0007d] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.IO/Directory.cs:150
  at System.IO.Directory.RecursiveDelete (System.String path) [0x0006f] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.IO/Directory.cs:169
  at System.IO.Directory.RecursiveDelete (System.String path) [0x0002d] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.IO/Directory.cs:162
  at System.IO.Directory.Delete (System.String path, System.Boolean recursive) [0x0000c] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.IO/Directory.cs:178
  at NzbDrone.Common.Disk.DiskProviderBase.DeleteFolder (System.String path, System.Boolean recursive) [0x00070] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Disk\DiskProviderBase.cs:234
  at NzbDrone.Core.Update.InstallUpdateService.InstallUpdate (NzbDrone.Core.Update.UpdatePackage updatePackage) [0x000c0] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Update\InstallUpdateService.cs:97
  at NzbDrone.Core.Update.InstallUpdateService.Execute (NzbDrone.Core.Update.Commands.ApplicationUpdateCommand message) [0x00071] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Update\InstallUpdateService.cs:214
  at NzbDrone.Core.Messaging.Commands.CommandExecutor.ExecuteCommand[TCommand] (TCommand command, NzbDrone.Core.Messaging.Commands.CommandModel commandModel) [0x00081] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Core\Messaging\Commands\CommandExecutor.cs:77

17-4-1 13:19:36.4|Info|LifecycleService|Restart requested.
17-4-1 13:20:11.7|Info|Bootstrap|Starting Sonarr - /volume1/@appstore/nzbdrone/share/NzbDrone/NzbDrone.exe - Version 2.0.0.4613
17-4-1 13:20:12.8|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.4613] System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.Reflection/Assembly.cs:405
  at NzbDrone.Common.Composition.ContainerBuilderBase..ctor (NzbDrone.Common.EnvironmentInfo.IStartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00046] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Composition\ContainerBuilderBase.cs:26
  at NzbDrone.Host.MainAppContainerBuilder..ctor (NzbDrone.Common.EnvironmentInfo.StartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:27
  at NzbDrone.Host.MainAppContainerBuilder.BuildContainer (NzbDrone.Common.EnvironmentInfo.StartupContext args) [0x00032] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:23
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00045] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:34
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:20

17-4-1 13:25:35.1|Info|Bootstrap|Starting Sonarr - /volume1/@appstore/nzbdrone/share/NzbDrone/NzbDrone.exe - Version 2.0.0.4613
17-4-1 13:25:38.5|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.4613] System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.Reflection/Assembly.cs:405
  at NzbDrone.Common.Composition.ContainerBuilderBase..ctor (NzbDrone.Common.EnvironmentInfo.IStartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00046] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Composition\ContainerBuilderBase.cs:26
  at NzbDrone.Host.MainAppContainerBuilder..ctor (NzbDrone.Common.EnvironmentInfo.StartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:27
  at NzbDrone.Host.MainAppContainerBuilder.BuildContainer (NzbDrone.Common.EnvironmentInfo.StartupContext args) [0x00032] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:23
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00045] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:34
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:20

17-4-1 13:32:26.3|Info|Bootstrap|Starting Sonarr - /volume1/@appstore/nzbdrone/share/NzbDrone/NzbDrone.exe - Version 2.0.0.4613
17-4-1 13:32:32.3|Info|Bootstrap|Starting Sonarr - /volume1/@appstore/nzbdrone/share/NzbDrone/NzbDrone.exe - Version 2.0.0.4613
17-4-1 13:32:29.6|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.4613] System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.Reflection/Assembly.cs:405
  at NzbDrone.Common.Composition.ContainerBuilderBase..ctor (NzbDrone.Common.EnvironmentInfo.IStartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00046] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Composition\ContainerBuilderBase.cs:26
  at NzbDrone.Host.MainAppContainerBuilder..ctor (NzbDrone.Common.EnvironmentInfo.StartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:27
  at NzbDrone.Host.MainAppContainerBuilder.BuildContainer (NzbDrone.Common.EnvironmentInfo.StartupContext args) [0x00032] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:23
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00045] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:34
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:20

17-4-1 13:32:35.0|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.4613] System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.Reflection/Assembly.cs:405
  at NzbDrone.Common.Composition.ContainerBuilderBase..ctor (NzbDrone.Common.EnvironmentInfo.IStartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00046] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Composition\ContainerBuilderBase.cs:26
  at NzbDrone.Host.MainAppContainerBuilder..ctor (NzbDrone.Common.EnvironmentInfo.StartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:27
  at NzbDrone.Host.MainAppContainerBuilder.BuildContainer (NzbDrone.Common.EnvironmentInfo.StartupContext args) [0x00032] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:23
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00045] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:34
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:20

17-4-1 13:35:48.4|Info|Bootstrap|Starting Sonarr - /volume1/@appstore/nzbdrone/share/NzbDrone/NzbDrone.exe - Version 2.0.0.4613
17-4-1 13:35:49.4|Fatal|ConsoleApp|EPIC FAIL!

[v2.0.0.4613] System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in /spksrc/native/mono/work-native/mono-4.6.2/mcs/class/corlib/System.Reflection/Assembly.cs:405
  at NzbDrone.Common.Composition.ContainerBuilderBase..ctor (NzbDrone.Common.EnvironmentInfo.IStartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00046] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Composition\ContainerBuilderBase.cs:26
  at NzbDrone.Host.MainAppContainerBuilder..ctor (NzbDrone.Common.EnvironmentInfo.StartupContext args, System.Collections.Generic.List`1[T] assemblies) [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:27
  at NzbDrone.Host.MainAppContainerBuilder.BuildContainer (NzbDrone.Common.EnvironmentInfo.StartupContext args) [0x00032] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\MainAppContainerBuilder.cs:23
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, NzbDrone.Host.IUserAlert userAlert, System.Action`1[T] startCallback) [0x00045] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Host\Bootstrap.cs:34
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) [0x0000e] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:20

Steps taken so far: pull files, uninstall, reinstall.

I still don’t know why the error came up.

edit: Now I’m back to the previous issue -

Unable to communicate with NZBGet. Cannot access a disposed object. Object name: ‘System.Net.Sockets.NetworkStream’.

I clicked update the last time and it resulted in the error in the first post.

I’ve managed to restore a backup but Sonarr is being unresponsive to clicking “install latest”. Still no connection to NZBGet even though it’s up and running.

edit: managed to update somehow. still unable to communicate with nzbget

edit2: well… manual search works for some reason.

Unhelpful how?

That’s a pretty general problem, not something our wiki would be used for as it’s not a problem with Sonarr.

That sounds like a synology problem…

Your topic subject is one error and then the logs don’t even show that error, just the error by itself isn’t useful for troubleshooting, We need more information in order to assist:

Sonarr version (exact version):
Mono version (if Sonarr is not running on Windows):
OS:
((Debug logs)):

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.