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
99 stars 15 forks source link

KeyError: 'indexer' #72

Closed D34DC3N73R closed 2 months ago

D34DC3N73R commented 3 months ago

I'm running into this issue with sonarr when there are stalled torrents in qbit. It may happen with other arrs, but I've only seen it with sonarr specifically. It forces the container to stop. The logs don't provide much information when using debug on the dev image. The error also occurs with the lastest image tag. When there are no stalled torrents the image continues to run.

$ docker logs -f decluttarr
[DEBUG]: Using selector: EpollSelector
[DEBUG]: Starting new HTTP connection (1): sonarr:8989
[DEBUG]: http://sonarr:8989 "GET /api/v3/system/status HTTP/1.1" 200 None
[INFO]: ##################################################
[INFO]: Decluttarr - Application Started!
[INFO]: 
[INFO]: *** Current Settings ***
[INFO]: Version: dev
[INFO]: Commit: 3490d4d
[INFO]: 
[INFO]: True | Removing failed downloads
[INFO]: True | Removing downloads missing metadata
[INFO]: False | Removing downloads missing files
[INFO]: False | Removing orphan downloads
[INFO]: False | Removing slow downloads
[INFO]: True | Removing stalled downloads
[INFO]: False | Removing downloads belonging to unmonitored items
[INFO]: 
[INFO]: Running every: 0 days 0 hours 10.0 minutes
[INFO]: Permitted number of times before stalled/missing metadata/slow downloads are removed: 3
[INFO]: Downloads with this tag will be skipped: "Keep"
[INFO]: Private Trackers will be skipped: True
[INFO]: 
[INFO]: *** Configured Instances ***
[INFO]: Sonarr: http://sonarr:8989/api/v3
[INFO]: qBittorrent: http://qbit:8888/api/v2
[INFO]: 
[INFO]: *** Check Instances ***
[DEBUG]: Starting new HTTP connection (1): sonarr:8989
[DEBUG]: http://sonarr:8989 "GET /api/v3/system/status HTTP/1.1" 200 None
[DEBUG]: Starting new HTTP connection (1): sonarr:8989
[DEBUG]: http://sonarr:8989 "GET /api/v3/system/status HTTP/1.1" 200 None
[INFO]: OK  | Sonarr
[DEBUG]: Current version of SONARR: 4.0.3.1413
[DEBUG]: Starting new HTTP connection (1): qbit:8888
[DEBUG]: http://qbit:8888 "POST /api/v2/auth/login HTTP/1.1" 200 3
[DEBUG]: Starting new HTTP connection (1): qbit:8888
[DEBUG]: http://qbit:8888 "GET /api/v2/app/version HTTP/1.1" 200 6
[INFO]: OK | qBittorrent
[DEBUG]: Current version of qBittorrent: 4.6.4
[INFO]: 
[DEBUG]: Starting new HTTP connection (1): qbit:8888
[DEBUG]: http://qbit:8888 "GET /api/v2/torrents/tags HTTP/1.1" 200 8
[INFO]: ##################################################
[INFO]: 
[VERBOSE]: --------------------------------------------------
[DEBUG]: Starting new HTTP connection (1): qbit:8888
[DEBUG]: http://qbit:8888 "GET /api/v2/torrents/info?tag=Keep HTTP/1.1" 200 2
[DEBUG]: main/protectedDowloadItems: []
[DEBUG]: Starting new HTTP connection (1): qbit:8888
[DEBUG]: http://qbit:8888 "GET /api/v2/torrents/info HTTP/1.1" 200 5458
[VERBOSE]: Cleaning queue on Sonarr:
[DEBUG]: Starting new HTTP connection (1): sonarr:8989
[DEBUG]: http://sonarr:8989 "POST /api/v3/command HTTP/1.1" 201 None
[DEBUG]: Starting new HTTP connection (1): sonarr:8989
[DEBUG]: http://sonarr:8989 "GET /api/v3/queue?includeUnknownSeriesItems=True HTTP/1.1" 200 None
[DEBUG]: Starting new HTTP connection (1): sonarr:8989
[DEBUG]: http://sonarr:8989 "GET /api/v3/queue?page=1&pageSize=156&includeUnknownSeriesItems=True HTTP/1.1" 200 None
KeyError: 'indexer'
ManiMatter commented 3 months ago

Thanks for reporting this. Just pushed a new version to dev. Could you please pull the image and see if the error still occurs ? Thank you.

stonith404 commented 2 months ago

I had the same error and I can confirm that it is fixed with the latest dev image.

D34DC3N73R commented 2 months ago

yes the new dev image fixes the issue

ManiMatter commented 2 months ago

thank you both; merging to latest now.