(Solved)(Linux)Fatal error at startup

Hi,

I’m new here. As often, what made come is a new problem with sonarr, sorry about that.

Sonarr version (exact version): 2.0.0.4689
Mono version (if Sonarr is not running on Windows):
/opt/NzbDrone# mono -V
Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-6)
OS: Debian
((Debug logs)):

/opt/NzbDrone# mono --debug /opt/NzbDrone/NzbDrone.exe

Unhandled Exception:
System.TypeInitializationException: The type initializer for 'NzbDrone.Console.ConsoleApp' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NzbDrone.Common.Instrumentation.NzbDroneLogger' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NLog.Common.InternalLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <system.net> (/opt/NzbDrone/NzbDrone.exe.config line 3)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) <0x40e390a0 + 0x0004b> in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) <0x40e388e0 + 0x00363> in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) <0x40e38880 + 0x00043> in <filename unknown>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) <0x40e317f0 + 0x00223> in <filename unknown>:0
  at System.Configuration.Configuration.Load () <0x40e2c0e0 + 0x0010b> in <filename unknown>:0
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) <0x40e2b9c0 + 0x00227> in <filename unknown>:0
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) <0x40e2af80 + 0x00173> in <filename unknown>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) <0x40e2a830 + 0x0006f> in <filename unknown>:0
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) <0x40e2a090 + 0x003e2> in <filename unknown>:0
  at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40e29ef0 + 0x00043> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40e29ef0 + 0x000df> in <filename unknown>:0
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) <0x40e29e70 + 0x00017> in <filename unknown>:0
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) <0x40e29db0 + 0x0002e> in <filename unknown>:0
  at System.Configuration.ConfigurationManager.get_AppSettings () <0x40e29cd0 + 0x00017> in <filename unknown>:0
  at NLog.Common.InternalLogger.GetSettingString (System.String configName, System.String envName) <0x40e29c00 + 0x00027> in <filename unknown>:0
  at NLog.Common.InternalLogger.GetSetting[T] (System.String configName, System.String envName, NLog.Common.T defaultValue) <0x40e29ae0 + 0x0002f> in <filename unknown>:0
  at NLog.Common.InternalLogger.Reset () <0x40e29950 + 0x0001f> in <filename unknown>:0
  at NLog.Common.InternalLogger..cctor () <0x40e29900 + 0x00033> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at NLog.Config.LoggingConfiguration.Dump () <0x40e29690 + 0x0003b> in <filename unknown>:0
  at NLog.LogFactory.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40e290d0 + 0x001bb> in <filename unknown>:0
  at NLog.LogManager.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40e290a0 + 0x0001f> in <filename unknown>:0
  at NzbDrone.Common.Instrumentation.NzbDroneLogger..cctor () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:21
  --- End of inner exception stack trace ---
  at NzbDrone.Console.ConsoleApp..cctor () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:12
  --- End of inner exception stack trace ---
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: The type initializer for 'NzbDrone.Console.ConsoleApp' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NzbDrone.Common.Instrumentation.NzbDroneLogger' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NLog.Common.InternalLogger' threw an exception. ---> System.Configuration.ConfigurationErrorsException: Error Initializing the configuration system. ---> System.Configuration.ConfigurationErrorsException: Unrecognized configuration section <system.net> (/opt/NzbDrone/NzbDrone.exe.config line 3)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) <0x40e390a0 + 0x0004b> in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed, Boolean root) <0x40e388e0 + 0x00363> in <filename unknown>:0
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, Boolean overrideAllowed) <0x40e38880 + 0x00043> in <filename unknown>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) <0x40e317f0 + 0x00223> in <filename unknown>:0
  at System.Configuration.Configuration.Load () <0x40e2c0e0 + 0x0010b> in <filename unknown>:0
  at System.Configuration.Configuration.Init (IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) <0x40e2b9c0 + 0x00227> in <filename unknown>:0
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) <0x40e2af80 + 0x00173> in <filename unknown>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) <0x40e2a830 + 0x0006f> in <filename unknown>:0
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) <0x40e2a090 + 0x003e2> in <filename unknown>:0
  at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40e29ef0 + 0x00043> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () <0x40e29ef0 + 0x000df> in <filename unknown>:0
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) <0x40e29e70 + 0x00017> in <filename unknown>:0
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) <0x40e29db0 + 0x0002e> in <filename unknown>:0
  at System.Configuration.ConfigurationManager.get_AppSettings () <0x40e29cd0 + 0x00017> in <filename unknown>:0
  at NLog.Common.InternalLogger.GetSettingString (System.String configName, System.String envName) <0x40e29c00 + 0x00027> in <filename unknown>:0
  at NLog.Common.InternalLogger.GetSetting[T] (System.String configName, System.String envName, NLog.Common.T defaultValue) <0x40e29ae0 + 0x0002f> in <filename unknown>:0
  at NLog.Common.InternalLogger.Reset () <0x40e29950 + 0x0001f> in <filename unknown>:0
  at NLog.Common.InternalLogger..cctor () <0x40e29900 + 0x00033> in <filename unknown>:0
  --- End of inner exception stack trace ---
  at NLog.Config.LoggingConfiguration.Dump () <0x40e29690 + 0x0003b> in <filename unknown>:0
  at NLog.LogFactory.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40e290d0 + 0x001bb> in <filename unknown>:0
  at NLog.LogManager.set_Configuration (NLog.Config.LoggingConfiguration value) <0x40e290a0 + 0x0001f> in <filename unknown>:0
  at NzbDrone.Common.Instrumentation.NzbDroneLogger..cctor () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Common\Instrumentation\NzbDroneLogger.cs:21
  --- End of inner exception stack trace ---
  at NzbDrone.Console.ConsoleApp..cctor () [0x00000] in M:\BuildAgent\work\b69c1fe19bfc2c38\src\NzbDrone.Console\ConsoleApp.cs:12
  --- End of inner exception stack trace ---

Description of issue: When trying to start, above error appears.
I’ve crossed similar errors topics on this forum, but everytime it seems the user only posted his error and never came back when asked questions :frowning:

I’ve checked config file. Line 3 is indeed <system.net>. But why is it a problem for mono ? (or is it something else entirely ?).
Of course I m an autoupdate or some other thing broke something, as it was working fine 3 days ago :(.

Does anyone have any idea as to how I could resurrect it ?

Below the content of the config file (it’s new, as I tried a complete reinstall to solve the problem)


<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="100" />
    </connectionManagement>
  </system.net>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0" />
  </startup>
  <runtime>
    <loadFromRemoteSources enabled="true" />
    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
      <probing privatePath="libs" />
      <dependentAssembly>
        <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="NLog" publicKeyToken="5120e14c03d0593c" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.0.1.0" newVersion="2.0.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.1.0.0" newVersion="1.1.0.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="FluentMigrator" publicKeyToken="aacfc7de5acabf05" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-1.3.1.0" newVersion="1.3.1.0" />
      </dependentAssembly>
      <dependentAssembly>
        <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
        <bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
      </dependentAssembly>
    </assemblyBinding>
  </runtime>
</configuration>

EDIT: solved finally by fully removing both all package related to mono (apt get remove libmono*) followed by purge and autoremove. And then reinstall.

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