Mono 5.10 update broke Sonarr

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