Completed Download Handling Skipping Some Episodes

Hi All,

I am using completed download handling. My setup is a seedbox with rTorrent, and a local system with Sonarr + Storage. The seedbox pushes files to a completed folder on the local system when they are complete.

Sonarr is successfully picking up most shows from the local completed download folder (mapped to the remote seedbox completed download directory).

However, sometimes Sonarr removes and skips the activity (as shown at the top of the GUI) for handling the complete download, before it has had the chance to be fully pushed to the local system.

Does anyone know why this behavior may be happening?

Thanks!

How is this being done? If Sonarr sees a file there then its going to attempt to import it, if the method doesn’t expose the files for Sonarr to copy them (like SSHFS does) then partial files could be imported or in multi-file releases other files may be missed.

Hi markus,

Thanks for the reply. I would like to clarify that it seems to actually skip/remove the activity for CDH, rather than attempting it on an incomplete file. The files are actually fully pushed to the local system in a temporary directory, then immediately moved to the CDH mapping directory (to avoid the situation you described). There is no evidence that the CDH actually runs at all on the episode, but rather never transpires.

:thumbsup:

Were these previously imported? Sonarr tracks downloads based on an ID, for torrent clients that is the Torrent Hash, which remains the same if the torrent is redownloaded.

((Trace logs)) (posted to hastebin) would be useful, best to restart Sonarr after enabling and clearing the existing log files so any cached information is recalculated.

They were not previously imported. They are new shows being pulled from I believe RSS.

Unfortunately the problem seems to be intermittent, but i will try to get some logs going and report back tomorrow after it attempts some shows.

1 Like

Quick update: It happened again today, unfortunately trace logging was somehow back to info :frowning:

Since it’s so consistent hopefully I will have results for tomorrow.

Okay so it happened again today. 3 downloads were completed, added to the local mapping folder, and have not been processed. Additionally, the pending event that should appear at the top of the page is not shown (effectively these episode files have been lost in limbo).

I have a TON of logging since trace has been going for a while. Can you let me know what exactly you’re looking for in the logs and I can try to give you something more directed?

Post them up and let us know which item is failing, that way we can see the whole picture and not go back and forth looking for something.

Trace files (pastebin was too hard with lots of files):

Dimension W - 1x08 (08) - The Island That Fell Into Nothingness:
[HorribleSubs] Dimension W - 08 [720p].mkv

Schwarzesmarken - 1x08 (08) - #08:
[HorribleSubs] Schwarzesmarken - 08 [720p].mkv

Grimgar Of Fantasy And Ash - 1x08 (08) - In My Memories With You:
[HorribleSubs] Hai to Gensou no Grimgar - 08 [720p].mkv

Unfortunately our logs when using rTorrent aren’t as complete as they are with other clients (where we log the entire response from the client). The logs for rTorrent only indicate there is information about 15 torrents coming back but not which ones.

I don’t see anything that jumps out as the possible cause of this issue, but I don’t see any warnings/errors that I expect to see given the setup, since the path doesn’t exist I’d expect Sonarr to log that it can’t find the path until the file is transferred from the seedbox to the path mapped with a Remote Path Mapping, specifically: Import failed, path does not exist or is not accessible by Sonarr followed by the path.

Is Completed Download Handling enabled or is Drone factory being used for importing?

Completed download handling is what is being used.

Drone factory is enabled, but only for manual imports. The specified directories are different.

I think I may have identified the problem. Let me know if this is a possible scenario. I have 300% set in a ratio group. Once the torrent reaches 300%, it is removed from the client. I think the torrent may be reaching 300% before Sonarr processes it. Would Sonarr lose track of the file(s) in this instance, and fail to post-process the episode?

Yes, that would do it, Sonarr relies on the client to tell it when its done (Sonarr polls its API), if the download is never seen as finished because it was removed then Sonarr will never process it.

Looks like that was probably the issue. You can close this thread. Sorry to have wasted your time :frowning:

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