ManiMatter / decluttarr

Watches radarr, sonarr, lidarr, readarr and whisparr download queues and removes downloads if they become stalled or no longer needed.
GNU General Public License v3.0
100 stars 15 forks source link

Detected stalled download, tagged not to be killed for every torrent #13

Closed NeoDigi closed 6 months ago

NeoDigi commented 7 months ago

Hey, so, so far I couldn't make this work ( I mean all the connection seems to be working but the container logs are like this:

[VERBOSE]: Cleaning queue on Radarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: Cleaning queue on Sonarr:
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S03E10.The.Portrait.720p.AMZN.WEBRip.DDP5.1.x264-NTb
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S04.720p.AMZN.WEBRip.DDP5.1.x264-FLUX[rartv]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Marine-ford] One Piece 27 - HD VOSTFR (1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Marine-ford] One Piece 31 - HD VOSTFR (1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S03E08.The.Wellness.Center.720p.AMZN.WEBRip.DDP5.1.x264-NTb[rarbg]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Marine-ford] One Piece 24 - HD VOSTFR (1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S05E06.Urgent.Care.720p.DSNP.WEB-DL.DDP5.1.H.264-NTb[TGx]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S05E05.Local.News.720p.DSNP.WEB-DL.DDP5.1.H.264-NTb[TGx]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Marine-ford] One Piece 30 - HD VOSTFR (1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What We Do in the Shadows S03E06 720p WEB H264 GGWP TGx
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Zero-Raws] One Piece - 05 (CX 1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Zero-Raws] One Piece - 06 (CX 1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Marine-ford] One Piece 17 - HD VOSTFR (1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Marine-ford] One Piece 15 - HD VOSTFR (1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S02E04.The.Curse.720p.AMZN.WEB-DL.DDP5.1.H.264-NTb[eztv.io].mkv[eztv.li]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S02E02.Ghosts.720p.AMZN.WEBRip.DDP5.1.x264-NTb[eztv.io].mkv[eztv.li]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S05E07.Hybrid.Creatures.720p.DSNP.WEB-DL.DDP5.1.H.264-NTb[TGx]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.In.The.Shadows.S03E05.720p.WEB.h264-GOSSIP[eztv.re].mkv[eztv.li]
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: [Zero-Raws] One Piece - 03 (CX 1280x720 x264 AAC)
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S03E07.The.Siren.720p.AMZN.WEBRip.DDP5.1.x264-NTb[rarbg]
[VERBOSE]: >>> Queue is clean.

so according to the log it seems like they are tag not to be killed even though they should On qBit When I filter the tag Dont kill if stalled, it returns that 0 torrent are actually tagged

Any clue on what Im doing wrong ?

ManiMatter commented 7 months ago

Hey, could you pls provide a screenshot of

Im sure we'll figure it out, cheers!

NeoDigi commented 7 months ago

And thanks for the quick response

The sonarr queue:

image

The corresponding log:

image

The tags when selected showing that none are actually tagged:

image

The stalled torrent since 2-3days ago

image

If you need anything else ill be happy to help debug

ManiMatter commented 7 months ago

mhh.. scratch-my-head... stupid question: you only run 1 instance of qbit, I suppose... ;-)

could you share screenshot of the series, too, please that shows whether the series (and episodes) is monitored / unmonitored? to be quite frank, I'm tapping a little bit in the dark what's happening here.

Can you also share a your settings pls?

Thanks again

NeoDigi commented 7 months ago

Yes one instance of qbit only

Screenshot_20231203-080316.png

ManiMatter commented 7 months ago

Thx

Can you also share a your settings pls?

NeoDigi commented 7 months ago

Which settings exactly ? The decluttarr ones ? This is my compose:

 decluttarr:
    image: ghcr.io/manimatter/decluttarr:latest   
    container_name: decluttarr
    restart: always
    network_mode: synobridge
    environment:
      - TZ=${TZ}
      - PUID=${PUID}
      - PGID=${PGID}
      # General
      - LOG_LEVEL=VERBOSE
      #TEST_RUN: True 
      # Features 
      - REMOVE_TIMER=5
      - REMOVE_FAILED=True
      - REMOVE_STALLED=True
      - REMOVE_METADATA_MISSING=True     
      - REMOVE_ORPHANS=True
      - REMOVE_UNMONITORED=True
      - PERMITTED_ATTEMPTS=3
      - NO_STALLED_REMOVAL_QBIT_TAG="Don't Kill If Stalled"
      # Radarr
      - RADARR_URL=http://radarr:7878
      - RADARR_KEY=xxx
      # Sonarr
      - SONARR_URL=http://sonarr:8989
      - SONARR_KEY=xxx
      # Lidarr
      # LIDARR_URL=http://lidarr:8686
      # LIDARR_KEY=$LIDARR_KEY     
      # qBitorrent
      - QBITTORRENT_URL=http://qbit:8090
ManiMatter commented 7 months ago

The only difference I see to my config is the following:

Does it change anything if you use NO_STALLED_REMOVAL_QBIT_TAG: Don't Kill If Stalled

instead of NO_STALLED_REMOVAL_QBIT_TAG="Don't Kill If Stalled"

If not, we'll have to do some digging...

NeoDigi commented 7 months ago

I just tried this with the same results I want to try to manually erase everything and start again from a clean state just to see if this changes anything

I'll report back after

NeoDigi commented 7 months ago

So I just tried with everything fresh and only one torrent and its still doing the same thing

[VERBOSE]: Cleaning queue on Radarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: Cleaning queue on Sonarr:
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S05E06.Urgent.Care.720p.DSNP.WEB-DL.DDP5.1.H.264-NTb[TGx]
[VERBOSE]: >>> Queue is clean.
[VERBOSE]: 
[VERBOSE]: Queue clean-up complete!
[VERBOSE]: --------------------------------------------------

And this loops forever without ever removing this torrent :(

iEusKid commented 7 months ago

So I just tried with everything fresh and only one torrent and its still doing the same thing

[VERBOSE]: Cleaning queue on Radarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: Cleaning queue on Sonarr:
[VERBOSE]: >>> Detected stalled download, tagged not to be killed: What.We.Do.in.the.Shadows.S05E06.Urgent.Care.720p.DSNP.WEB-DL.DDP5.1.H.264-NTb[TGx]
[VERBOSE]: >>> Queue is clean.
[VERBOSE]: 
[VERBOSE]: Queue clean-up complete!
[VERBOSE]: --------------------------------------------------

And this loops forever without ever removing this torrent :(

I am not the developer but try to remove the part in compose file with tagged dont kill, try without it at all then see how it will do

NeoDigi commented 7 months ago

I just tried, no changes

ManiMatter commented 7 months ago

Which sonarr / radarr versions are you using? If on v3, do things start to work if you go to v4/nightly?

NeoDigi commented 6 months ago

I just tried v4 with no luck I looked around the code and saw what is going wrong but Im not sure why Basically this call: /api/v2/torrents/info?tag=Don%27t+Kill+If+Stalled Returns every torrents that I currently have no matter the tag it's as if the tag parameter is ignored ;(

ManiMatter commented 6 months ago

What's your qbit version?

NeoDigi commented 6 months ago

Yup, this was the issue I was using qbit 4.3.9 and when I switched to 4.6.2 it started working without issues!

ManiMatter commented 6 months ago

Excellent glad we figured it out. Cheers