mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-02-04 12:21:33 -06:00
[FEATURE] Ignore qBitTorrent Queue #125
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Monkeyboy200 on GitHub.
What would you like to see implemented next?
It would be nice if cleanuperr ignored the torrents in the qbittorrent queue. The way my server is set up I can only download ~10 items at a time, and now and again, when I add a lot of shows/movies at once qbittorrent accrues a large queue of files that then get wiped by cleanuperr. Would there be a way to fix this behaviour in the tool? Thank you for working on this project, those annoying .lnk files are a thing of the past thanks to cleanuperr!
@Monkeyboy200 commented on GitHub:
Here are the logs:
[2025-03-21 09:37:42.231 INF] cleanuperr v1.5.14
[2025-03-21 09:37:42.250 INF] timezone: (UTC-07:00) US/Mountain
[2025-03-21 09:37:42.567 INF] Application started. Press Ctrl+C to shut down.
[2025-03-21 09:37:42.567 INF] Hosting environment: Production
[2025-03-21 09:37:42.567 INF] Content root path: /app
[2025-03-21 09:37:42.642 WRN] [ContentBlocker] no blocklist is configured
[2025-03-21 09:37:44.110 INF] [QueueCleaner] [Sonarr] 46 items found in queue | http://192.168.0.101:8989/
[2025-03-21 09:37:44.179 INF] [QueueCleaner] [Sonarr] skip | When.Calls.the.Heart.S07.1080p.WEBRip.x265-KONTRAST
[2025-03-21 09:37:44.235 INF] [QueueCleaner] [Sonarr] queue item deleted | http://192.168.0.101:8989/ | Deadwood Season 3 (1080p BD x265 10bit FS89 Joy)
[2025-03-21 09:37:44.472 INF] [QueueCleaner] [Sonarr] skip | Deadwood Season 2 (1080p BD x265 10bit FS88 Joy)
[2025-03-21 09:37:44.477 INF] [QueueCleaner] [Sonarr] skip | Deadwood (2004) Season 01 S01 (1080p BluRay x265 HEVC 10bit AAC 5.1 Joy) [UTR]
[2025-03-21 09:37:44.519 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Deadwood season 3]
[2025-03-21 09:37:44.522 INF] [QueueCleaner] [Radarr] 0 items found in queue | http://192.168.0.101:7878/
[2025-03-21 09:37:54.137 INF] [DownloadCleaner] [Sonarr] 34 items found in queue | http://192.168.0.101:8989/
[2025-03-21 09:37:54.141 INF] [DownloadCleaner] [Radarr] 0 items found in queue | http://192.168.0.101:7878/
I have qBittorrent set to only download 2 things at a time, I added 3 seasons of deadwood, so seasons 1+2 were downloading, season 3 got removed. In the logs you can see "when calls the heart" was also skipped, that is a torrent that isn't done downloading but has been manually paused, so that feature works as intended.
@Monkeyboy200 commented on GitHub:
I've done some more testing, and it seems like cleanuperr is definitely removing downloads while they are still queued up in qbittorrent. I set the active downloads allowed to just one, then downloaded two things at once. The item in the queue got removed after a few minutes. I then turned cleanuperr off (docker compose down) and the item remained in the queue. If you want me to post any other info let me know! I am running this as a docker container in proxmox.
@Flaminel commented on GitHub:
Thanks for taking the time to test it! Can you please share the logs for those items? What do the logs say? Why was the item removed?
@Flaminel commented on GitHub:
Can you please enable debug logging and test it again? I'll also look into it. Just as a side question, what version of qBitTorrent are you using? And just to double-check, the deleted item was in
Queuedstatus?@Flaminel commented on GitHub:
According to this part of the code, items that are queued (or any other status than
stalledormetadata downloading) should already be ignored. Are you sure cleanuperr removed queued items?@Monkeyboy200 commented on GitHub:
In case this helps as well:
docker-compose.yml
services:
cleanuperr:
image: ghcr.io/flmorg/cleanuperr:latest
restart: unless-stopped
volumes:
- ./cleanuperr/logs:/var/logs
environment:
- TZ=US/Mountain
- DRY_RUN=false
@Monkeyboy200 commented on GitHub:
I'll post the debug log here in just a second, in the meantime to answer your other questions:
qbittorrent-nox version 4.5.2
yes, the deleted torrent was in the "queued" status in the downloader, as shown below
Edit: added log below after changing docker-compose file log settings from information to debug
[2025-03-21 09:50:16.547 INF] cleanuperr v1.5.14
[2025-03-21 09:50:16.566 INF] timezone: (UTC-07:00) US/Mountain
[2025-03-21 09:50:16.573 DBG] Hosting starting
[2025-03-21 09:50:16.881 INF] Application started. Press Ctrl+C to shut down.
[2025-03-21 09:50:16.881 INF] Hosting environment: Production
[2025-03-21 09:50:16.882 INF] Content root path: /app
[2025-03-21 09:50:16.882 DBG] Hosting started
[2025-03-21 09:50:16.960 WRN] [ContentBlocker] no blocklist is configured
[2025-03-21 09:50:19.398 INF] [QueueCleaner] [Sonarr] 54 items found in queue | http://192.168.0.101:8989/
[2025-03-21 09:50:19.477 INF] [QueueCleaner] [Sonarr] skip | When.Calls.the.Heart.S07.1080p.WEBRip.x265-KONTRAST
[2025-03-21 09:50:19.583 INF] [QueueCleaner] [Sonarr] queue item deleted | http://192.168.0.101:8989/ | Billy.the.Kid.S02.COMPLETE.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX[TGx]
[2025-03-21 09:50:19.754 INF] [QueueCleaner] [Sonarr] skip | Deadwood Season 3 (1080p BD x265 10bit FS89 Joy)
[2025-03-21 09:50:19.761 INF] [QueueCleaner] [Sonarr] item on strike number 1 | reason ImportFailed | Deadwood (2004) Season 01 S01 (1080p BluRay x265 HEVC 10bit AAC 5.1 Joy) [UTR]
[2025-03-21 09:50:19.849 INF] [QueueCleaner] [Sonarr] skip | Deadwood (2004) Season 01 S01 (1080p BluRay x265 HEVC 10bit AAC 5.1 Joy) [UTR]
[2025-03-21 09:50:19.858 INF] [QueueCleaner] [Sonarr] skip | Deadwood Season 2 (1080p BD x265 10bit FS88 Joy)
[2025-03-21 09:50:19.898 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Billy the Kid season 2]
[2025-03-21 09:50:19.901 INF] [QueueCleaner] [Radarr] 0 items found in queue | http://192.168.0.101:7878/
[2025-03-21 09:50:29.417 INF] [DownloadCleaner] [Sonarr] 46 items found in queue | http://192.168.0.101:8989/
[2025-03-21 09:50:29.421 INF] [DownloadCleaner] [Radarr] 0 items found in queue | http://192.168.0.101:7878/
[2025-03-21 09:50:29.430 DBG] [DownloadCleaner] skip | download is private | Impractical Jokers S08 720p WEB-HD x264-Pahe in
[2025-03-21 09:50:29.431 DBG] [DownloadCleaner] skip | download is private | Nobody.Wants.This.S01.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA
[2025-03-21 09:50:29.433 DBG] [DownloadCleaner] skip | download is private | 1923 - S02.E02 - The Rapist is Winter 1080p AMZN UHD WebRip x265 DDP 5.1 Kira [SEV].mkv
[2025-03-21 09:50:29.434 DBG] [DownloadCleaner] skip | download is private | When Calls The Heart S03 WEBRip EAC3 5 1 1080p x265-iVy
The log goes for a while longer but it looks the same as the last few lines here with whatever is in my qbittorrent and says "download is private"
@Flaminel commented on GitHub:
Unfortunately I can't find a problem while testing, so I'm going to need your help to debug this. I've made some changes in #102 to help us while testing, to better understand why that item is deleted. Replace the
latestDocker tag withfix_qbit_queued_items_processingto test those changes and please share the new logs.@Flaminel commented on GitHub:
Could you join the Discord server to continue the discussion?
@Monkeyboy200 commented on GitHub:
from logs:
[2025-03-21 12:57:21.936 INF] cleanuperr v0.0.1
[2025-03-21 12:57:21.954 INF] timezone: (UTC-07:00) US/Mountain
[2025-03-21 12:57:21.962 DBG] Hosting starting
[2025-03-21 12:57:22.261 INF] Application started. Press Ctrl+C to shut down.
[2025-03-21 12:57:22.261 INF] Hosting environment: Production
[2025-03-21 12:57:22.261 INF] Content root path: /app
[2025-03-21 12:57:22.261 DBG] Hosting started
[2025-03-21 12:57:22.338 WRN] [ContentBlocker] no blocklist is configured
[2025-03-21 12:57:23.799 INF] [QueueCleaner] [Sonarr] 67 items found in queue | http://192.168.0.101:8989/
[2025-03-21 12:57:23.923 INF] [QueueCleaner] [Sonarr] queue item removed from arr with reason AllFilesSkippedByQBit | http://192.168.0.101:8989/ | Hell On Wheels (2011) S03 1080p BluRay 10bit EAC3 5 1 x265-iVy
[2025-03-21 12:57:24.213 INF] [QueueCleaner] [Sonarr] queue item removed from arr with reason AllFilesSkippedByQBit | http://192.168.0.101:8989/ | Hell On Wheels (2011) S05 1080p BluRay 10bit EAC3 5 1 x265-iVy
[2025-03-21 12:57:24.276 INF] [QueueCleaner] [Sonarr] queue item removed from arr with reason AllFilesSkippedByQBit | http://192.168.0.101:8989/ | Hell On Wheels (2011) S01 1080p BluRay 10bit EAC3 5 1 x265-iVy
[2025-03-21 12:57:24.352 INF] [QueueCleaner] [Sonarr] queue item removed from arr with reason AllFilesSkippedByQBit | http://192.168.0.101:8989/ | Hell On Wheels S02 Bluray EAC3 5 1 1080p x265-iVy
[2025-03-21 12:57:24.407 INF] [QueueCleaner] [Sonarr] queue item removed from arr with reason AllFilesSkippedByQBit | http://192.168.0.101:8989/ | Hell On Wheels (2011) S04 1080p BluRay 10bit EAC3 5 1 x265-iVy
[2025-03-21 12:57:24.448 INF] [QueueCleaner] [Sonarr] skip | When.Calls.the.Heart.S07.1080p.WEBRip.x265-KONTRAST
[2025-03-21 12:57:24.489 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Hell on Wheels season 3]
[2025-03-21 12:57:24.507 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Hell on Wheels season 5]
[2025-03-21 12:57:24.526 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Hell on Wheels season 1]
[2025-03-21 12:57:24.560 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Hell on Wheels season 2]
[2025-03-21 12:57:24.570 INF] [QueueCleaner] [Sonarr] season search triggered | http://192.168.0.101:8989/ | [Hell on Wheels season 4]
[2025-03-21 12:57:24.576 INF] [QueueCleaner] [Radarr] 0 items found in queue | http://192.168.0.101:7878/
[2025-03-21 12:57:33.812 INF] [DownloadCleaner] [Sonarr] 10 items found in queue | http://192.168.0.101:8989/
[2025-03-21 12:57:33.816 INF] [DownloadCleaner] [Radarr] 0 items found in queue | http://192.168.0.101:7878/
[2025-03-21 12:57:33.826 DBG] [DownloadCleaner] skip | download is private | Impractical Jokers S08 720p WEB-HD x264-Pahe in
[2025-03-21 12:57:33.827 DBG] [DownloadCleaner] skip | download is private | Nobody.Wants.This.S01.1080p.10bit.WEBRip.6CH.x265.HEVC-PSA
[2025-03-21 12:57:33.828 DBG] [DownloadCleaner] skip | download is private | 1923 - S02.E02 - The Rapist is Winter 1080p AMZN UHD WebRip x265 DDP 5.1 Kira [SEV].mkv
[2025-03-21 12:57:33.830 DBG] [DownloadCleaner] skip | download is private | When Calls The Heart S03 WEBRip EAC3 5 1 1080p x265-iVy
[2025-03-21 12:57:33.831 DBG] [DownloadCleaner] skip | download is private | Bluey.2018.S03.NORDiC.ENG.1080p.WEB-DL.DDP5.1.H.264-PiTBULL
[2025-03-21 12:57:33.832 DBG] [DownloadCleaner] skip | download is private | MeatEater S11 2012 1080p WEB-Rip x264 AVC AAC 2.0
@Flaminel commented on GitHub:
As discussed on Discord, this issue was caused by the conditions that were checking for downloads blocked by qBit directly. It has now been fixed.