Completed Torrents in qBittorrent No Longer Being Removed

Sonarr version (exact version): 3.0.3.764
Mono version (if Sonarr is not running on Windows): 6.8.0.105
OS: Ubuntu 18.04.4 LTS
Debug logs:
Description of issue: My download client is qBittorrent 4.2.3. Once my seed ratio/time limit is reached, the client marks the torrent “Completed” successfully. By this stage, Sonarr has already copied the video to the correct location and changed the name, but the torrent is not getting deleted. Sonarr can successfully queue torrents and view their status. I’ve run a packet capture during the time torrents should be getting deleted, and I’m not seeing any api request from Sonarr to qBittorrent to delete the torrent.
I am seeing Sonarr send the “GET /api/v2/torrents/info?category=tv-sonarr” every 90 seconds and qbt is replying with a list of torrents that match this category, and they all have a value in the Completed key.
This was working fine yesterday but not today.

What’s changed? This morning I noticed a message in Sonarr saying an update was available. I checked and I was three updates behind so I updated (went from version 3.0.3.750 to 3.0.3.764). That was the only thing that changed between working and not working. I’ve tried rebooting the system completely to make sure everything has restarted just as a precaution but that made no difference. Not seeing any errors in any logs, it just doesn’t seem to be attempting to send the api request to delete the torrents.

I have double checked that I have the option enabled in Settings => Download Clients => Completed Download Handling => Remove. I’ve tried disabling this, saving, enabling and saving again. Still made no difference.

2 Likes

Anything in Sonarr’s logs? Can you share them here?

+1 I have the same issue since the last day or two, using sonarr (version 2.0.0.5344) and transmission both in docker containers (from linuxserver).

I was on sonarr v3 (preview tag), then when the issue started i completely wiped and installed v2 (latest tag) but it still happens

There’s nothing in the log files that shows anything different between when it was working and now. But I didn’t have debug logging on. I’ll enable that now and add something to my series that will start downloading straight away to test.

1 Like

Well, I don’t know what happened. I was tailing the debug log as it completed the copying of files to the destination and I saw this:

20-4-21 05:24:19.9|Debug|DownloadEventHub|[Terror.S01.WEBRip.x264-ION10] Removing download from qBittorrent history

I checked qbittorrent and it had been removed. So, now it’s working again yet I made no changes. Strange one. Must have just been a Monday thing.

The issue is still happening for me, but only when it stops seeding due to no activity for the set time (idle-seeding-limit). If the torrent stops seeding due to reaching the seed ratio (ratio-limit), sonarr will remove the torrent from the client.

So it only removes it when it reaches its desired seed ratio, which is no good for torrents with no leechers. Surely setting your desired seed ratio to zero will fix it, but that’s not a good idea.

Edit: Yes, setting your client’s seed ratio limit to zero fixes the issue.

That’s normal activity. What I do for that is set my seed ratio and also set a seed time of 1440 minutes. That way, if the seed ratio isn’t reached in 24 hours, the torrent will still get marked as completed in the client and Sonarr will remove it.

That’s the thing; even after 24 hours, if it hasn’t reached the ratio limit, sonarr won’t remove it.

This issue has just started happening recently, it used to remove torrents if they stopped seeding due to being idle.

Test it out with a short idle seeding limit and a torrent with no leechers.

Unless it’s just something on my end? Or a setting in transmission I’m missing? But nothing has changed in my transmission settings.

I’ll give it a test. I must admit that the two torrents that have worked for me today had already reached their >1 seed ratio before they’d finished downloading, so I’m not 100% sure that my issue has resolved itself. I’ll try to replicate your scenario and report back.

Thank you. I’m 99% sure we’re on the same page.

Setting the seed ratio low and/or setting the idle seeding limit high may fix it, but that’s not ideal for everyone.

Just to be clear, after the 24 hours (or whatever time you’ve set) and the seed ratio has not been reached, does your transmission client set the status to complete? The issue I had yesterday was my seed ratio was being reached and qbittorrent was setting the status to complete, but it still wasn’t being deleted. I just want to make sure your issue isn’t that the client isn’t setting the status to complete after the specified time interval.

Yep, it’s setting it as complete.

I think I may have reached my seed ratio yesterday and it still didn’t get removed, like you. But then today (perhaps after an update) it is removing it when it reaches its seed ratio, but still not when it completes due to being idle. I think that is what’s happening

I just did one test by adding a series I didn’t already have and finding an older episode with hardly any leechers and setting a 30 minute seed time. Looks like it reached the time limit and marked it as complete, but Sonarr didn’t remove it. Just doing another test now because I forgot to set my logging to debug before I did it.

Exactly what’s happening with me.

(just fyi, couldn’t you set your seed time to 1 minute to test quicker? or is 30 the minimum?)

I could but I’m a patient man. :smiley:
Besides, it easier to separate log events if I have a decent interval between them.

haha no probs :slight_smile:

Here’s all the relevant debug log entries for my test episode. You can see right at the end that Sonarr got notification that the torrent status changed to completed but it just never deleted the torrent (still sitting there 15 minutes after completion) and nothing in the log to indicate that it tried.

20-4-21 14:04:15.2|Debug|Api|[GET] /api/v3/command: 200.OK (6 ms)
20-4-21 14:04:35.9|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:04:35.9|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:04:35.9|Debug|Parser|Language parsed: English
20-4-21 14:04:35.9|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:04:35.9|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:04:35.9|Debug|Parser|Release Group parsed: ION10
20-4-21 14:04:35.9|Debug|SceneMappingService|Found scene mapping for: Star Wars The Clone Wars. TVDB ID for mapping: 83268
20-4-21 14:04:35.9|Debug|SceneMappingService|Found scene mapping for: Star Wars The Clone Wars. TVDB ID for mapping: 83268
20-4-21 14:04:35.9|Debug|TrackedDownloadService|Tracking 'qBittorrent:Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10': ClientState=Downloading (readonly) SonarrStage=Downloading Episode='Star Wars The Clone Wars - S07E07 WEBRip-480p v1' OutputPath=/mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.
20-4-21 14:04:36.0|Debug|Api|[GET] /api/v3/queue/details?seriesId=218: 200.OK (8 ms)
20-4-21 14:04:36.0|Debug|Api|[GET] /api/v3/queue/details?seriesId=218: 200.OK (8 ms)
20-4-21 14:04:36.0|Debug|Api|[GET] /api/v3/command: 200.OK (3 ms)
20-4-21 14:04:36.1|Debug|Api|[GET] /api/v3/command: 200.OK (3 ms)
20-4-21 14:06:06.1|Debug|Api|[GET] /api/v3/command: 200.OK (5 ms)
20-4-21 14:06:06.2|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:06:06.2|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.2|Debug|Parser|Language parsed: English
20-4-21 14:06:06.2|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.2|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.2|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.3|Debug|SceneMappingService|Found scene mapping for: Star Wars The Clone Wars. TVDB ID for mapping: 83268
20-4-21 14:06:06.3|Debug|SceneMappingService|Found scene mapping for: Star Wars The Clone Wars. TVDB ID for mapping: 83268
20-4-21 14:06:06.3|Debug|TrackedDownloadService|Tracking 'qBittorrent:Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10': ClientState=Completed (readonly) SonarrStage=Downloading Episode='Star Wars The Clone Wars - S07E07 WEBRip-480p v1' OutputPath=/mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.
20-4-21 14:06:06.3|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:06:06.3|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.3|Debug|Parser|Language parsed: English
20-4-21 14:06:06.3|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.3|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.3|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.3|Debug|SceneMappingService|Found scene mapping for: Star Wars The Clone Wars. TVDB ID for mapping: 83268
20-4-21 14:06:06.4|Debug|Api|[GET] /api/v3/queue/details?seriesId=218: 200.OK (12 ms)
20-4-21 14:06:06.4|Debug|DownloadedEpisodesImportService|Processing path: /mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.4|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:06:06.4|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.4|Debug|Parser|Language parsed: English
20-4-21 14:06:06.4|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.4|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.4|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.4|Debug|DiskScanService|Scanning '/mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10' for video files
20-4-21 14:06:06.4|Debug|DiskScanService|1 video files were found in /mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.4|Debug|ImportDecisionMaker|Analyzing 1/1 files.
20-4-21 14:06:06.4|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:06:06.4|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.4|Debug|Parser|Language parsed: English
20-4-21 14:06:06.4|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.4|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.4|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.4|Debug|Api|[GET] /api/v3/command: 200.OK (3 ms)
20-4-21 14:06:06.5|Debug|VideoFileInfoReader|Getting media info from /mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4
20-4-21 14:06:06.6|Debug|DetectSample|Runtime is over 90 seconds
20-4-21 14:06:06.7|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4'
20-4-21 14:06:06.7|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.7|Debug|Parser|Language parsed: English
20-4-21 14:06:06.7|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4
20-4-21 14:06:06.7|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.7|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.7|Debug|VideoFileInfoReader|Getting media info from /mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4
20-4-21 14:06:06.7|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:06:06.7|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.7|Debug|Parser|Language parsed: English
20-4-21 14:06:06.7|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.7|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.7|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.7|Debug|SceneMappingService|Found scene mapping for: Star Wars The Clone Wars. TVDB ID for mapping: 83268
20-4-21 14:06:06.7|Debug|AggregateLanguage|Using language: English
20-4-21 14:06:06.7|Debug|AggregateQuality|Using quality: WEBRip-480p v1
20-4-21 14:06:06.7|Debug|AbsoluteEpisodeNumberSpecification|Series type is not Anime, skipping check
20-4-21 14:06:06.7|Debug|AlreadyImportedSpecification|Skipping already imported check for episode without file
20-4-21 14:06:06.7|Debug|EpisodeTitleSpecification|File name format does not require episode title, skipping check
20-4-21 14:06:06.8|Debug|VideoFileInfoReader|Getting media info from /mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4
20-4-21 14:06:06.8|Debug|DetectSample|Runtime is over 90 seconds
20-4-21 14:06:06.8|Debug|SameFileSpecification|No existing episode file, skipping
20-4-21 14:06:06.8|Debug|ImportDecisionMaker|File accepted
20-4-21 14:06:06.8|Debug|Parser|Parsing string 'Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10'
20-4-21 14:06:06.8|Debug|Parser|Episode Parsed. Star Wars The Clone Wars - S07E07 
20-4-21 14:06:06.8|Debug|Parser|Language parsed: English
20-4-21 14:06:06.8|Debug|QualityParser|Trying to parse quality for Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10
20-4-21 14:06:06.8|Debug|Parser|Quality parsed: WEBRip-480p v1
20-4-21 14:06:06.8|Debug|Parser|Release Group parsed: ION10
20-4-21 14:06:06.9|Debug|EpisodeFileMovingService|Copying episode file: /mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4 to /mnt/data/TV/Star.Wars-.The.Clone.Wars/Season.7/Star.Wars-.The.Clone.Wars-S07E07.mp4
20-4-21 14:06:06.9|Debug|DiskTransferService|Copy [/mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.mp4] > [/mnt/data/TV/Star.Wars-.The.Clone.Wars/Season.7/Star.Wars-.The.Clone.Wars-S07E07.mp4]
20-4-21 14:06:20.9|Debug|DiskProvider|Setting permissions: 0664 on /mnt/data/TV/Star.Wars-.The.Clone.Wars/Season.7/Star.Wars-.The.Clone.Wars-S07E07.mp4
20-4-21 14:06:21.0|Debug|EpisodeService|Linking [Season.7/Star.Wars-.The.Clone.Wars-S07E07.mp4] > [[13318]Dangerous Debt]
20-4-21 14:06:21.2|Debug|NotificationService|No tags set for this notification.
20-4-21 14:06:23.3|Debug|RestSharpExtensions|Validating Responses from [POST] [https://api.pushover.net/1/messages.json] status: [OK]
20-4-21 14:06:23.7|Debug|DownloadEventHub|[Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10] Marking download as imported from qBittorrent

20-4-21 14:36:08.0|Debug|TrackedDownloadService|Tracking 'qBittorrent:Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10': ClientState=Completed SonarrStage=Imported Episode='Star Wars The Clone Wars - S07E07 WEBRip-480p v1' OutputPath=/mnt/torrentz/Star.Wars.The.Clone.Wars.S07E07.WEBRip.x264-ION10.

I haven’t marked it as solved and I can see it on the list.

1 Like

I’m having the exact same issue. Sonarr V3 (3.0.3.765) and qBittorrent 4.2.3 on unRAID. Radarr seems to be working fine.

Was working 3ish days ago then suddenly not. There may have been an update in that interval.

Edit: Sorry, radarr having the same issue. Not working.

2 Likes

Same issue here.

Sonarr 3.0.3.770
qBittorrent 4.2.3
*OS: Windows 10

Once downloads hit the seed time requirement they mark as finished but are not removed.

1 Like