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

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
S10
Posts: 4
Joined: Wed Oct 31, 2018 6:06 pm

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

Post by S10 » Wed Oct 31, 2018 6:33 pm

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:

Code: Select all

/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:

Code: Select all

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 ---

S10
Posts: 4
Joined: Wed Oct 31, 2018 6:06 pm

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

Post by S10 » Wed Oct 31, 2018 8:10 pm

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

PeterO
Posts: 2
Joined: Sat Aug 18, 2018 2:37 pm

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

Post by PeterO » Thu Nov 01, 2018 9:00 pm

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

EDIT:
I can start sonarr with

Code: Select all

/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.)

User avatar
MichaIng
Legend
Posts: 1444
Joined: Sat Nov 18, 2017 5:21 pm

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

Post by MichaIng » Sat Nov 03, 2018 3:35 pm

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?

PeterO
Posts: 2
Joined: Sat Aug 18, 2018 2:37 pm

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

Post by PeterO » Sat Nov 03, 2018 5:18 pm

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

I am using an ODROID XU4Q.

User avatar
MichaIng
Legend
Posts: 1444
Joined: Sat Nov 18, 2017 5:21 pm

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

Post by MichaIng » Sat Nov 03, 2018 5:30 pm

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.

S10
Posts: 4
Joined: Wed Oct 31, 2018 6:06 pm

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

Post by S10 » Sun Nov 04, 2018 1:39 pm

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.

User avatar
Fourdee
Site Admin
Posts: 2789
Joined: Tue Feb 06, 2007 12:36 pm

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

Post by Fourdee » Sun Nov 04, 2018 5:22 pm

@s10

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

Please can you confirm:
- Device used
- Did the error occur on a fresh installation, or, previous one?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.

S10
Posts: 4
Joined: Wed Oct 31, 2018 6:06 pm

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

Post by S10 » Sat Nov 10, 2018 7:58 am

Hi MichaIng,

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

Post Reply