[Ubuntu] Check for finished download task stuck

Sonarr version (exact version):
2.0.0.5085
Mono version (if Sonarr is not running on Windows):
4.2.3
OS:
Ubuntu 16.04
Debug logs:
(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)

Debug log = https://docs.google.com/document/d/1bLTgTPa2NqucQnlbR8FU1FR8_6-a8Na3SyNdS5j5IHE/edit?usp=sharing
Trace log = https://docs.google.com/document/d/1sq5TiowtRR5qznpYevM3UIXRtoDfnlLexIxRCZJFwwQ/edit?usp=sharing

Description of issue:
I am running sonarr on a vps right now, nzbget running on same vps while the folders that sonarr is saving/moving to are located on a remote server.

After rebooting sonarr, the check for finished download task runs fine, i can start a download and i can see it finishing and moving the file to the correct location on the remote server.

However, after a while, sometimes a few minutes sometimes a little longer, the Check for finished download task will stop running, it says next execution is “now” but it never actually executes, and thus no new downloads ever gets processed or moved to the correct folder.

It looks like it’s still running because your custom script is still executing (and least what I’m seeing when your trace logs end).

It would seem so, but it really isnt, when i posted these logs, it was 6 minutes since it last ran(according to the UI)

I was monitoring the folder for south park which it was grabbing, and it wasnt moving the completed files.

Currently i have resorted to a cronjob that kills mono every 4 minutes, the restart of sonarr solves the problem, but this obviously isnt a great solution.

Would an extra set of logs be helpful?

Your logs are logging:

18-2-22 10:54:40.4|Debug|postSonarr.py|2018-02-22 10:54:40 - SonarrPostConversion - INFO - queued

Over and over, right until the end (within seconds) of you grabbing it.

Thanks for your reply, however somethings not right still.

Here is a new set of logs;

debug -> https://docs.google.com/document/d/1PCCBZfTxvEmoa2kHRgzLzFivNAETeb8U3Yn-KGqpmk0/edit?usp=sharing
normal log -> https://docs.google.com/document/d/1iKRWi0THVprQelXN3VSEADk8WNdhx4HTMjcKHZ32H50/edit?usp=sharing

If you notice, the first couple of episodes download fine, reports are sent to nzbget and sonarr successfully runs “SonarrPostConversion - INFO - Tagging”, files are moved to the folder and afterwards being converted with the script.

However, if you notice at the timestamp in the debug log at 14:07:21.6 this is the last time a file is sucessfully moved from the completed download folder, to its designated folder.

You will notice that all log entries of the script running afterwards, is just a loop of SonarrPostConversion - INFO - queued

At the same time, tasks stop running at their defined interval

If i switch from nzbget to sabnzbd all works just fine.

Why is that running in a loop? That Script should terminate once it’s done it’s work so Sonarr can continue processing other files.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.