Sonarr deleting manual torrent downloads from client and disk after partial manual import

Sonarr version (exact version): 2.0.0.4374
Mono version (if Sonarr is not running on Windows):4.6.1 (Stable 4.6.1.5/ef43c15 Sat Oct 29 22:29:28 BST 2016)
OS: Linux (gentoo)
Description of issue:

Due to indexers not being able to find an older Anime, I manually downloaded it via Transmission. Sonarr correctly spotted the download in progress and matched it to the programme.

When the download completed, I told Sonarr to import all 12 episodes. It managed to import 3 of them, then promptly deleted the download from transmission and disk.

When I now re-download, Sonarr deletes it immediately it completes, without even any request from me to do any importing (even after reboot)!

Seems like a major bug.

This happened once before, and the only way I could work around it was to physically kill sonarr, download the show, and move/rename it myself - which kind of defeats the whole purpose of having sonarr installed.

Any thoughts?

Thanks

Is the torrent stopping seeding immediately after it downloads? The only time Sonarr will delete a torrent is if it’s not seeding. If Sonarr has already imported a torrent tracked by the hash of the torrent (which doesn’t change between downloads), it won’t try to import it again. If you have Remove Completed Downloads enabled, the torrent is finished seeding and Sonarr has already imported at least one file from the torrent it will tell your download client to remove it and delete the files.

Removing the series from Sonarr and re-adding it will make Sonarr forget it ever imported it and won’t delete it immediately.

Via manual import? If it detected it properly it should have imported any episode file that was an upgrade automatically.
Were all the files missing or only some of them? Without ((debug logs)) it’s impossible to say why it only imported 3 of the 12 files.

Thanks for the information, that’s useful.

[quote="markus101, post:2, topic:12556]
Is the torrent stopping seeding immediately after it downloads?
[/quote]
In this case yes, as I was trying to re-acquire something I’d already had before it was deleted, so I set it to not seed.

[quote="markus101, post:2, topic:12556]
The only time Sonarr will delete a torrent is if it’s not seeding. If Sonarr has already imported a torrent tracked by the hash of the torrent (which doesn’t change between downloads), it won’t try to import it again. If you have Remove Completed Downloads enabled, the torrent is finished seeding and Sonarr has already imported at least one file from the torrent it will tell your download client to remove it and delete the files.
[/quote]
Ok, but I don’t think it should remove any torrent that it didn’t add - especially not without user intervention. I’m sure there are many reasons for people to re-download something, and this behaviour is somewhat surprising :slight_smile: I like auto-delete for things it added, just not for things it didn’t.

[quote="markus101, post:2, topic:12556]
Removing the series from Sonarr and re-adding it will make Sonarr forget it ever imported it and won’t delete it immediately.
[/quote]
Ok, that’s good to know, thanks.

[quote="markus101, post:2, topic:12556]
Via manual import? If it detected it properly it should have imported any episode file that was an upgrade automatically.
Were all the files missing or only some of them? Without ((debug logs)) it’s impossible to say why it only imported 3 of the 12 files.
[/quote]

I did it via the import icon on the “activity” tab (where the little yellow warnings is for something downloaded that sonarr didn’t add) - rather than the “wanted” tab. I clicked the icon to import the first file, it gave me a list of all the 12, so I ticked all 12, but it only got 3 before they were deleted (my guess is that the completion of importing the first file triggered the delete starting a race which the next two files won, but the remaining 9 did not).

I suspect this wouldn’t have happened if I’d done it through the “wanted” tab, which I’ve used before when sonarr couldn’t recognise the series / episode.

As it was a one off activity, I obviously don’t have debug logs - I’m not that keen to go through the rigamorole again - I’ve already downloaded the torrent about 6 times because of the repeated deletes :slight_smile:

Using the same category Sonarr is set to use is telling Sonarr to manage it, using a different category would tell Sonarr not to touch it (manual import would still work).

I suspect what actually happened here is Sonarr started importing the files and shortly after the first ones were imported the logic for Completed Download Handling ran and Sonarr told your download client to remove it because it had already been imported (at least one episode file imported).

This looks like a bug that happens under the exact scenario of:

  • Remove Completed Downloads is enabled
  • The torrent is paused (considered finished seeding in Transmission)
  • Manual import (from Activity: Queue) is used to import is used to import the files

Would this be the explanation to the problem I am having? I am using a combination of Sonarr, Deluge, Seedbox, BT Sync and Plex. Once the file is finished in the Seedbox, due to low storage I bring it down using BT Sync and seed (manually) using Deluge.

I’ve been having problems the past week or so as some files in Deluge show up as Error. For example Gotham S03E07 Web-DL has priority over S03E07 HDTV, so once the Web-DL version downloads, the HDTV version shows as Error (Missing or invalid torrent data). I can’t even find where those files would have gone to or why they would’ve been deleted in the first place. Surely they would be left to seed? I do label them with the same label Sonarr uses if that’s knocking it about as you mentioned before. Any help? If you need any info let me know and I’ll put them up when possible.

Sounds like a different issue, probably due to BTSync and only some files being present or partial files. Open a new thread with the information requested when doing so.

Will do, thanks.

Great, I didn’t realise it had categories on torrents. I’ve set a unique category for sonarr now, so hopefully that’ll prevent any unexpected deletions in future :slight_smile:

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