Sonarr keeps hanging

Sonarr version (exact version): 2.0.0.5054

Mono version (if Sonarr is not running on Windows): 5.4.1.6

OS: Ubuntu 17.04

((Debug logs)): I can’t get Sonarr to run for long enough to enable debug

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

Description of issue: Sonarr runs and functions for a while before hanging. It also appears to stop ubuntu from shutting down cleaning, only hard reboot clears everything down. I’ve removed mono, and Sonarr and then installed both. But this hasn’t fixed it. Logs don’t say anything so possibly a mono issue?

Any help greatly appreciated! Thanks!

You can enable debug logging via the config.xml:

https://pastebin.com/36USKuHB

Logs here, just looks like it’s processing a load of stuff. No indication as to why it’s hung.

If mono is crashing Sonarr won’t be able to log to the log file so capturing the standard output and error to a file will be valuable.

Hi markus101

Thanks, how do I do this please?

D

In addition, it looks to have got a little further now, but it’s got stuck on transferring the below.

https://pastebin.com/8WZ5AhXv

Sonarr has 777 access to permissions shouldn’t be a problem. It’s also manage to transfer some files prior to this without issue.

I wonder what is causing it to stop?

First google result: https://askubuntu.com/questions/625224/how-to-redirect-stderr-to-a-file

Based on the minimal info in the logs it’s not failing, we really need to see if mono is crashing though.

You’ll have to forgive me, I’m fairly new to Linux so still learning.

I’ve run the below - will that do what we need?

mono --debug /opt/NzbDrone/NzbDrone.exe > /tmp/dan/out.txt 2>/tmp/dan/error.txt

A single file would be easier to read later.

mono --debug /opt/NzbDrone/NzbDrone.exe 2>&1 /tmp/dan/out.txt

If that file is created and has information logged then it should be good.

Weird, that command doesn’t seem to output any txt file. Any ideas why?

scrap that - i tried $ command-name &>file and that seems to be outputting to the file now. I will send results once it’s crashed again.
Thanks
D

This is the log from the crash - I don’t see any more errors though…?

https://pastebin.com/aK54tZ0A

((Trace logs)) might show more, but:

[Debug] VideoFileInfoReader: Getting media info from /media/dan/qnap/tv/Sons of Anarchy/Season 5/Sons.of.Anarchy.S05E13.Jai.Obtenu.Cette.1080p.BluRay-CLASSiC.sample.mkv

Could indicate a problem with the version of libmediainfo. Which version of libmediainfo is installed? If you’re using the version from Ubuntu’s apt-get repo you should install the latest right from media info.

I don’t know, how do I check?

Googling for “apt-get check installed version” gives

as the first result.

libmediainfo0v5:amd64/zesty 0.7.91-1 uptodate

Looks like that’s about a year old, updating would be best, you can use mediainfo’s official releases: https://mediaarea.net/en/MediaInfo/Download/Ubuntu since Ubuntu’s repo is almost always quite far behind.

Ok thanks. Do I need to tell sonarr to use mediainfo instead and if so, how?

Installing the official version should overwrite the one from the debian release and Sonarr should pick it up (you may need to restart Sonarr).

unfortunately it won’t let me update, just keeps telling me it’s already up to date.

mediainfo is already the newest version (0.7.91-1).

How can I force it to run the newer version you mentioned?

You need to activate the mediainfo repository.
You’ll want the “releases” command for deb based systems: https://mediaarea.net/en/Repos

After that command is run you should be able to update mediainfo.

Hi, thanks for your help.

I managed to run the releases command as you said, and then ran the apt-get install mediainfo but unfortunately it failed. I’ve run both apt-get update and apt-get update --fix-missing and still get the below error.

https://pastebin.com/f4mtLqf5

Any ideas?

Sorry, I can’t help you there, not sure if mediainfo has a support form where you can ask or a general ubuntu support forum.