Entware armel mono fatal error

Sonarr version (exact version): 2.0.0.5085
Mono version (if Sonarr is not running on Windows): 4.6.2.7
OS: Entware-ng
((Debug logs)):

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/home/zach/NzbDrone/NzbDrone.exe.config line 3)
  at System.Configuration.ConfigInfo.ThrowException (System.String text, System.Xml.XmlReader reader) [0x00007] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.SectionGroupInfo.ReadContent (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed, System.Boolean root) [0x00170] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.SectionGroupInfo.ReadRootData (System.Xml.XmlReader reader, System.Configuration.Configuration config, System.Boolean overrideAllowed) [0x00007] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.Configuration.ReadConfigFile (System.Xml.XmlReader reader, System.String fileName) [0x000ec] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.Configuration.Load () [0x00052] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.Configuration.Init (System.Configuration.Internal.IConfigSystem system, System.String configPath, System.Configuration.Configuration parent) [0x00065] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.Configuration..ctor (System.Configuration.InternalConfigurationSystem system, System.String locationSubPath) [0x0005c] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type typeConfigHost, System.Object[] hostInitConfigurationParams) [0x0000e] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.ConfigurationManager.OpenExeConfigurationInternal (System.Configuration.ConfigurationUserLevel userLevel, System.Reflection.Assembly calling_assembly, System.String exePath) [0x00107] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00011] in <d6de850e07274db588ca7c247bfa5ec6>:0
   --- End of inner exception stack trace ---
  at System.Configuration.ClientConfigurationSystem.get_Configuration () [0x00030] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection (System.String configKey) [0x00000] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.ConfigurationManager.GetSection (System.String sectionName) [0x00005] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at System.Configuration.ConfigurationManager.get_AppSettings () [0x00000] in <d6de850e07274db588ca7c247bfa5ec6>:0
  at NLog.Common.InternalLogger.GetSettingString (System.String configName, System.String envName) [0x00000] in <9aad9aae43be41d38b7fb2a230cbd542>:0
  at NLog.Common.InternalLogger.GetSetting[T] (System.String configName, System.String envName, T defaultValue) [0x00000] in <9aad9aae43be41d38b7fb2a230cbd542>:0
  at NLog.Common.InternalLogger.Reset () [0x00000] in <9aad9aae43be41d38b7fb2a230cbd542>:0
  at NLog.Common.InternalLogger..cctor () [0x00010] in <9aad9aae43be41d38b7fb2a230cbd542>:0
   --- End of inner exception stack trace ---
  at NLog.Config.LoggingConfiguration.Dump () [0x00000] in <9aad9aae43be41d38b7fb2a230cbd542>:0
  at NLog.LogFactory.set_Configuration (NLog.Config.LoggingConfiguration value) [0x0006f] in <9aad9aae43be41d38b7fb2a230cbd542>:0
  at NLog.LogManager.set_Configuration (NLog.Config.LoggingConfiguration value) [0x00000] in <9aad9aae43be41d38b7fb2a230cbd542>:0
  at NzbDrone.Common.Instrumentation.NzbDroneLogger..cctor () [0x00005] in <28afedda32c5499dab128da6b50bbb86>:0
   --- End of inner exception stack trace ---
  at NzbDrone.Console.ConsoleApp..cctor () [0x00000] in <74ba94cc8427412eb79f3aaf6c67ba4c>:0
   --- End of inner exception stack trace ---

Description of issue:

When attempting to run NzbDrone with mono, I get the error above. While I did find two other topics on this specific subject, neither identified the specific issue and both have been closed. For posterity, I’ll include them here:


I’m not sure what specifically is wrong, but it appears to be an issue with mono. Maybe an additional mono package needs to be installed, but it could be the mono armel package itself.

Both links you posted mentions the same cause: a missing mono package.

The second link you posted mentioned how the user resolved it:

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

To me it seems like a bit drastic, but finding out specifically which package/config is wrong is quite a bit of work.

Agreed, it would be a bit drastic. Unfortunately, I dont have the luxury of apt-get as I am running on a router with Entware-ng package manager.

However, I have solved the issue. What I did:

  1. Install mono-complete through apt-get in a Ubuntu VM
  2. Confirm successful install by running NzbDrone with mono
  3. Find all mono directories
  4. Compare to existing malfunctioning armel install on router

This revealed that I was missing the /etc/mono directory. Adding it with the contents pulled from the Ubuntu install was the solution.

Good job at figuring that out. Sounds to me like the machine level config files were missing.

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