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?
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.
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.
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.
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?
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.