Can't start sonarr after upgrade to mono 4.2.2.10

Slackware-14.1, upgraded from mono 3.12.1 to mono 4.2.2.10 using the slackbuild from slackbuilds.org and now sonarr (version 2.0.0.3645) fails to start with the error message:

[Info] Router: Application mode: Interactive 
[Debug] Router: Console selected 
[Info] OwinHostController: Listening on the following URLs: 
[Info] OwinHostController:   http://*:8989/ 


[Fatal] ConsoleApp: EPIC FAIL! 

System.InvalidCastException: Specified cast is not valid.
  at System.Diagnostics.DiagnosticsConfiguration.GetConfigSection () <0xb39ec700 + 0x00029> in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.Initialize () <0xb39ec640 + 0x00063> in <filename unknown>:0 
  at System.Diagnostics.DiagnosticsConfiguration.get_IndentSize () <0xb39ec5d0 + 0x0000b> in <filename unknown>:0 
  at System.Diagnostics.TraceInternal.InitializeSettings () <0xb39ec478 + 0x0008f> in <filename unknown>:0 
  at System.Diagnostics.TraceInternal.get_Listeners () <0xb39ec2a0 + 0x00017> in <filename unknown>:0 
  at System.Diagnostics.Trace.get_Listeners () <0xb39ec228 + 0x00043> in <filename unknown>:0   at Microsoft.Owin.Hosting.Engine.HostingEngine.EnableTracing (Microsoft.Owin.Hosting.Engine.StartContext context) <0xb39ebf58 + 0x00047> in <filename unknown>:0 
  at Microsoft.Owin.Hosting.Engine.HostingEngine.Start (Microsoft.Owin.Hosting.Engine.StartContext context) <0xb39ea688 + 0x0008f> in <filename unknown>:0 
  at NzbDrone.Host.Owin.OwinAppFactory.CreateApp (System.Collections.Generic.List`1 urls) <0xb39e7b80 + 0x001e3> in <filename unknown>:0 
  at NzbDrone.Host.Owin.OwinHostController.StartServer () <0xb3a940c0 + 0x00178> in <filename unknown>:0 
  at NzbDrone.Host.NzbDroneServiceFactory.Start () <0xb3a93f90 + 0x0009b> in <filename unknown>:0 
  at NzbDrone.Host.Router.Route (ApplicationModes applicationModes) <0xb3a93b10 + 0x000b7> in <filename unknown>:0 
  at NzbDrone.Host.Bootstrap.Start (ApplicationModes applicationModes, NzbDrone.Common.EnvironmentInfo.StartupContext startupContext) <0xb405beb8 + 0x00093> in <filename unknown>:0 
  at NzbDrone.Host.Bootstrap.Start (NzbDrone.Common.EnvironmentInfo.StartupContext startupContext, IUserAlert userAlert, System.Action`1 startCallback) <0xb507bbd8 + 0x00153> in <filename unknown>:0 
  at NzbDrone.Console.ConsoleApp.Main (System.String[] args) <0xb701a100 + 0x00087> in <filename unknown>:0 

From what I can tell sonarr should work ok with mono 4.2.2? I tried removing my config directory and using a fresh install of sonarr but still get the same error.

I know it works with 4.2.1, this looks like an issue with mono though, its failing outside of Sonarr’s code (and the webserver we use).

I couldn’t find an earlier release of mono 4.2.2 to test with, but I didn’t realise that 4.2.2 is an alpha version of mono anyway… I thought it must be stable since the slackbuild was updated to use it :smile:

I just tested with mono 4.2.1.124 and get the same crash though so I thought maybe it is a problem with the slackware slackbuild file. The errors mentioned system configuration stuff so I deleted /etc/mono then reinstalled the package and now it is working. So the error was with the slackbuild and not sonarr, sorry :slight_smile:

1 Like

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