Update v6.17.12 => Sonarr / radarr / jackett wont start

A few hours ago i run a the dietpi update and since the reboot, Sonarr / radarr / jackett wont boot.

during the update i saw that a new version of mono was being compiled and installed. I Think the problem lays within mono.
I tried to troubleshoot by manually starting the sonarr service with the following command:

/usr/bin/mono /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/mnt/dietpi_userdata/sonarr

But it immediately return a vague error which doesnt give me any lead on where it crashed:

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.LogManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NLog.LogFactory' threw an exception. ---> System.OverflowException: TimeSpan overflowed because the duration is too long.
  at System.TimeSpan.Interval (System.Double value, System.Int32 scale) <0x74a03bb8 + 0x0010c> in <c3c5f4bb011a4af8b925b0d39ee12396>:0
  at System.TimeSpan.FromSeconds (System.Double value) <0x74a03e88 + 0x0001b> in <c3c5f4bb011a4af8b925b0d39ee12396>:0
  at NLog.LogFactory..cctor () [0x00000] in <94b2a4e8be134a208425f74d14f2331e>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at NLog.LogManager..cctor () [0x00000] in <94b2a4e8be134a208425f74d14f2331e>:0
   --- End of inner exception stack trace ---
  at NzbDrone.Common.Instrumentation.NzbDroneLogger..cctor () [0x00005] in <b321918215ca440893afd7c10c35974e>:0
   --- End of inner exception stack trace ---
  at NzbDrone.Console.ConsoleApp..cctor () [0x00000] in <1198739ad3e14bbb97a6e76f23f2c9b8>:0
   --- 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.LogManager' threw an exception. ---> System.TypeInitializationException: The type initializer for 'NLog.LogFactory' threw an exception. ---> System.OverflowException: TimeSpan overflowed because the duration is too long.
  at System.TimeSpan.Interval (System.Double value, System.Int32 scale) <0x74a03bb8 + 0x0010c> in <c3c5f4bb011a4af8b925b0d39ee12396>:0
  at System.TimeSpan.FromSeconds (System.Double value) <0x74a03e88 + 0x0001b> in <c3c5f4bb011a4af8b925b0d39ee12396>:0
  at NLog.LogFactory..cctor () [0x00000] in <94b2a4e8be134a208425f74d14f2331e>:0
   --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_generic_class_init(intptr)
  at NLog.LogManager..cctor () [0x00000] in <94b2a4e8be134a208425f74d14f2331e>:0
   --- End of inner exception stack trace ---
  at NzbDrone.Common.Instrumentation.NzbDroneLogger..cctor () [0x00005] in <b321918215ca440893afd7c10c35974e>:0
   --- End of inner exception stack trace ---
  at NzbDrone.Console.ConsoleApp..cctor () [0x00000] in <1198739ad3e14bbb97a6e76f23f2c9b8>:0
   --- End of inner exception stack trace ---

Found this discussion on github.
https://github.com/Sonarr/Sonarr/issues/2769

Seems to be a mono bug. in the specific version 5.16.0.179

Did you find a solution?
Uninstalling and installing Mono from Dietpi-Software did not solve my problem.
:cry:

EDIT:
I can start sonarr with

/usr/bin/mono -O=-aot /opt/NzbDrone/NzbDrone.exe -nobrowser -data=/mnt/dietpi_userdata/sonarr

As suggested here https://github.com/mono/mono/issues/11095
that DOES also seem to work in /etc/systemd/system/sonarr.service.
(I first thought it didn’t but you have to wait a minute after reboot.)

I just ran and tested sonarr and jackett install and worked well here (on x86_64 VM).
Perhaps arch/ARM specific? Which machines do you guys run?

Yep, in the github linked on the Mono bug they conclude it is ARM specific.

I am using an ODROID XU4Q.

Okay thanks. Will open an issue on GitHub for information and possible workaround. Although I hope this will fast be fixed repo side.

€: https://github.com/Fourdee/DietPi/issues/2219

  • Thanks guys for reporting issue and workaround.

I’ve fixed the issue by manually downgrading mono to 5.14

-Manually completely remove mono 5.16
-hard fix sources.list to point to 5.14 version
-apt-get upgrade.

But the above noted workaround is a much better solution.

s10

I was unable to replicate this issue with ARMv7/8 devices.
https://github.com/Fourdee/DietPi/issues/2219#issuecomment-435673316

Please can you confirm:

  • Device used
  • Did the error occur on a fresh installation, or, previous one?

Hi MichaIng,

-I’m having the problem on a raspberry Pi 2
-the issue occurred after the update proces to dietpi v6.17.12