Mono 5.10 update broke Sonarr

Sonarr version (exact version): 2.0.0.5085
Mono version (if Sonarr is not running on Windows): 5.10
OS: CentOS 7
Debug logs: I cant get them as sonarr won’t start
(Make sure debug logging is enabled in settings and post the full log to hastebin/pastebin/dropbox/google drive or something similar, do not post them directly here. Post in .txt not .doc, .rtf or some other formatted document)
Description of issue:

Sonarr service won’t start. If I try run mono in debug I get no output other than press enter to exit.

Was all working fine until I updated everything on centos. I did notice that mono was upgraded as part of this.

I have no idea where else to start looking to fix this so any help would be appreciated.

1 Like

I’m in the same boat. Did a yum update and now Sonarr won’t start. I can’t do a yum rollback because systemd was updated as well. I can’t easily roll back just mono because the dependencies are required for systemd. I even tried removing mono and sonarr and doing a complete reinstall per the Git Centos7 instructions. So now I’m stuck. I apologize for formatting. I didn’t see a code button so I’m not sure why it formatted when this is straight from notepad.

[root@htpc7 ~]# yum list installed | grep ^mono
mono-core.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-data.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-data-oracle.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-data-sqlite.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-devel.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-extras.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-mvc.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-wcf.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-web.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-winforms.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_
mono-winfxcore.x86_64 5.10.0.140-0.xamarin.2.epel7 @download.mono-project.com_repo_centos7_

[root@htpc7 ~]# systemctl status sonarr.service
● sonarr.service - Sonarr Daemon
Loaded: loaded (/usr/lib/systemd/system/sonarr.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2018-02-26 17:42:29 EST; 19s ago
Process: 11312 ExecStart=/usr/bin/mono /opt/sonarr/bin/NzbDrone.exe -nobrowser -data /opt/sonarr (code=exited, status=1/FAILURE)
Main PID: 11312 (code=exited, status=1/FAILURE)

Feb 26 17:42:27 htpc7.zerominus.pvt systemd[1]: Started Sonarr Daemon.
Feb 26 17:42:27 htpc7.zerominus.pvt systemd[1]: Starting Sonarr Daemon…
Feb 26 17:42:28 htpc7.zerominus.pvt mono[11312]: Press enter to exit…
Feb 26 17:42:29 htpc7.zerominus.pvt systemd[1]: sonarr.service: main process exited, code=exited, status=1/FAILURE
Feb 26 17:42:29 htpc7.zerominus.pvt systemd[1]: Unit sonarr.service entered failed state.
Feb 26 17:42:29 htpc7.zerominus.pvt systemd[1]: sonarr.service failed.

[root@htpc7 ~]# systemctl start sonarr.service

[root@htpc7 ~]# journalctl -xe
Feb 26 17:41:29 htpc7.zerominus.pvt yum[11245]: Installed: mono-wcf-5.10.0.140-0.xamarin.2.epel7.x86_64
Feb 26 17:41:30 htpc7.zerominus.pvt yum[11245]: Installed: mono-web-5.10.0.140-0.xamarin.2.epel7.x86_64
Feb 26 17:41:31 htpc7.zerominus.pvt yum[11245]: Installed: mono-mvc-5.10.0.140-0.xamarin.2.epel7.x86_64
Feb 26 17:42:27 htpc7.zerominus.pvt polkitd[971]: Registered Authentication Agent for unix-process:11306:1484214 (system bus name :1.86 [/usr/bin/pkttyagent --notify-fd
Feb 26 17:42:27 htpc7.zerominus.pvt systemd[1]: Started Sonarr Daemon.
– Subject: Unit sonarr.service has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit sonarr.service has finished starting up.

– The start-up result is done.
Feb 26 17:42:27 htpc7.zerominus.pvt systemd[1]: Starting Sonarr Daemon…
– Subject: Unit sonarr.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit sonarr.service has begun starting up.
Feb 26 17:42:27 htpc7.zerominus.pvt polkitd[971]: Unregistered Authentication Agent for unix-process:11306:1484214 (system bus name :1.86, object path /org/freedesktop/
Feb 26 17:42:28 htpc7.zerominus.pvt mono[11312]: Press enter to exit…
Feb 26 17:42:29 htpc7.zerominus.pvt systemd[1]: sonarr.service: main process exited, code=exited, status=1/FAILURE
Feb 26 17:42:29 htpc7.zerominus.pvt systemd[1]: Unit sonarr.service entered failed state.
Feb 26 17:42:29 htpc7.zerominus.pvt systemd[1]: sonarr.service failed.
Feb 26 17:43:41 htpc7.zerominus.pvt polkitd[971]: Registered Authentication Agent for unix-process:11357:1491635 (system bus name :1.87 [/usr/bin/pkttyagent --notify-fd
Feb 26 17:43:41 htpc7.zerominus.pvt systemd[1]: Started Sonarr Daemon.
– Subject: Unit sonarr.service has finished start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit sonarr.service has finished starting up.

– The start-up result is done.
Feb 26 17:43:41 htpc7.zerominus.pvt systemd[1]: Starting Sonarr Daemon…
– Subject: Unit sonarr.service has begun start-up
– Defined-By: systemd
– Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

– Unit sonarr.service has begun starting up.
Feb 26 17:43:41 htpc7.zerominus.pvt polkitd[971]: Unregistered Authentication Agent for unix-process:11357:1491635 (system bus name :1.87, object path /org/freedesktop/
Feb 26 17:43:42 htpc7.zerominus.pvt mono[11363]: Press enter to exit…
Feb 26 17:43:43 htpc7.zerominus.pvt systemd[1]: sonarr.service: main process exited, code=exited, status=1/FAILURE
Feb 26 17:43:43 htpc7.zerominus.pvt systemd[1]: Unit sonarr.service entered failed state.
Feb 26 17:43:43 htpc7.zerominus.pvt systemd[1]: sonarr.service failed.

[root@htpc7 ~]# ls -lah /opt/sonarr/
total 8.0K
drwxr-xr-x. 3 htpc htpc 16 Feb 26 15:10 .
drwxr-xr-x. 6 root root 4.0K Feb 26 15:10 …
drwxr-xr-x. 4 htpc htpc 4.0K Feb 26 15:10 bin
[root@htpc7 ~]# cat /usr/lib/systemd/system/sonarr.service
[Unit]
Description=Sonarr Daemon
After=syslog.target network.target
[Service]
#User=sonarr
User=htpc
#Group=sonarr
Group=htpc
Type=simple
ExecStart=/usr/bin/mono /opt/sonarr/bin/NzbDrone.exe -nobrowser -data /opt/sonarr
TimeoutStopSec=20
[Install]
WantedBy=multi-user.target

I am experiencing the same thing on Ubuntu with the mono 5.10 update

** edit **
rolling back to a former build of mono has resolved my issues.

The same is true for Ubuntu 16.04 as well.
The recent mono update to 5.10 breaks Sonarr, Radarr and Jackett
reverting to a previous version of mono fixes it.

same here on ubuntu 17.10
:frowning:

And also for me on the raspberry pi 2. Gonna try rolling back now.

first did this weekend under debian an dist-upgrade cause mono was hold back, no issues
before the dist-upgrade I did create a snapshot of my VM … Thank god, because the update towards mono 5.10 killed all my apps …

Reverted back and will wait and see what is the root cause

you only receive: press any key to exit. Not even an debug message or write into the logfile

mono --debug /opt/NzbDrone/NzbDrone.exe will not give info in logfiles etc.

thanks

you only receive: press any key to exit. Not even an debug message or write into the logfile

Yup, that’s coz the logger, NLog, fails to initialize. It’s like the 1 scenario where nothing gets logged.

Btw. guys, a fix is going through the pipeline right now.

yay! good to hear :slight_smile:

do you think the VS Mono release would be secure enough? It would sure reduce the number of updates.

http://www.mono-project.com/download/vs/#download-lin

When 5.10 broke Sonar, I went back to and locked it at 5.8.0.127, but, it would have been a few less keystrokes to have taken it back to VS Mono.

Will the Sonarr update fix the issue or will I need to revert to older Mono package? Any time frame for fix? Thanks

what is the best way to rollback mono on ubuntu?

Don’s know, hoping to just wait until update fixes it

ok than we manually have to upgrade right?

I hope Software Update takes care of it but dont know, hope someone round here can tell me what to do cause its broke.

I’ve spend the whole day trying to figure out how to get Sonarr working again. ‘Rolling back’ is not so easy if u don’t even know how to do it or where to begin. I got it working now but unfortunatly i cant tell u guys the exact steps i took. Here are some links that pointed me in the right direction.

This link is about deleting mono (I used the last command):

This link gives u info about locking the mono repo to an older version (Lets call it Part 1)
http://www.mono-project.com/docs/getting-started/install/linux/

This link gives u more info about the previous link (Part 2)

if i type this command now: mono -V. I get this: Mono JIT compiler version 5.8.0.127 (tarball Wed Feb 21 18:43:20 UTC 2018)

Sonarr and Jackett are working again. Good luck.

Thanks for the info, you’re right a little to tricky for me, I hope they just fix it with an update, might just go back to Sickbeard which always worked.

Fix applied to master branch… guide for those stuck on mono 5.10, originally posted on reddit:

If you already have mono 5.10 and can’t get Sonarr to run, you don’t need to downgrade mono, instead follow these steps:
(TL;DR for powerusers: Just replace the NLog.dll and fix permissions, then update sonarr.)

  1. Check where Sonarr is installed, on ubuntu this is /opt/NzbDrone, but this may vary. Replace /opt/NzbDrone with the correct path in the below commands as appropriate.
    You may also need to use sudo to be able to execute these commands.

  2. Copy and unzip the NLog.dll update:
    wget -O - http://download.sonarr.tv/hotfixes/regression-mono-5.10/NLog.dll.gz | gunzip -c > /opt/NzbDrone/NLog.dll
    (security minded individuals might want to check the sha1sum f33027fadd85da0a3da94039a33d99ee23ef2488)

  3. Ensure the correct permissions:
    chmod 777 /opt/NzbDrone/NLog.dll
    (yes, chown + chmod would be more appropriate, but that means ppl would need to find the username, and the autoupdater replaces the file anyway.)

  4. Start Sonarr. How depends on the way you configured your system to auto start Sonarr.
    Example: sudo restart nzbdrone for my system.

  5. Check the web UI System->Updates for v2.0.0.5183 and update.

If you have any trouble, feel free to reply.

7 Likes

This didn’t work for me, all I got was press enter. Then I ran apt update and saw: nzbdrone/master,master 2.0.0.5153 all [upgradable from: 2.0.0.5085].

All is good now thanks!!