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
167 stars 21 forks source link

Container not starting #1

Closed heisenberg2980 closed 1 year ago

heisenberg2980 commented 1 year ago

I am getting this error when trying to start the container using docker-compose:

decluttarr  | [INFO]: Application Started!
decluttarr  | [INFO]: 
decluttarr  | [INFO]: *** Current Settings ***
decluttarr  | [INFO]: True | Removing failed downloads
decluttarr  | [INFO]: True | Removing stalled downloads
decluttarr  | [INFO]: True | Removing downloads missing metadata
decluttarr  | [INFO]: True | Removing orphan downloads
decluttarr  | [INFO]: True | Removing downloads belonging to unmonitored TV shows/movies
decluttarr  | [INFO]: 
decluttarr  | [INFO]: Running every: 0 days 0 hours 10 minutes
decluttarr  | [INFO]: Permitted number of times before stalled/missing metadata downloads are removed: 3
decluttarr  | [INFO]: Downloads with this tag will be skipped: Don't Kill If Stalled
decluttarr  | [INFO]: 
decluttarr  | [INFO]: *** Configured Instances ***
decluttarr  | [INFO]: Radarr: http://192.168.0.208:7878/api/v3
decluttarr  | [INFO]: Sonarr: http://192.168.0.208:8989/api/v3
decluttarr  | [INFO]: qBittorrent: http://192.168.0.208:8080/api/v2
decluttarr  | [INFO]: 
decluttarr  | [INFO]: ##################################################
decluttarr  | [INFO]: [LOG_LEVEL = INFO]: Only logging changes (switch to VERBOSE for more info)
decluttarr  | [ERROR]: Error making API request to http://192.168.0.208:8080/api/v2/torrents/tags: 403 Client Error: Forbidden for url: http://192.168.0.208:8080/api/v2/torrents/tags
decluttarr  | TypeError: argument of type 'NoneType' is not iterable

This is my docker-compose.yaml file:

# decluttarr - Keeps radarr and sonarr download queues free of stalled and redundant items
  decluttarr:
    container_name: decluttarr
    image: ghcr.io/manimatter/decluttarr:latest
    environment:
      - PUID=${PUID} # default user id, defined in .env
      - PGID=${PGID} # default group id, defined in .env
      - TZ=${TZ} # timezone, defined in .en
      # General
      - LOG_LEVEL=INFO
      # Features 
      - REMOVE_TIMER=10
      - 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://192.168.0.208:7878
      - RADARR_KEY=***KEY_REMOVED***
      # Sonarr
      - SONARR_URL=http://192.168.0.208:8989
      - SONARR_KEY=***KEY_REMOVED***
      # qBitorrent
      - QBITTORRENT_URL=http://192.168.0.208:8080
ManiMatter commented 1 year ago

hi Heisenberg,

I think that is because I have not implemented login for qbittorrent.

I have on my qBit the setting "Bypass authentication for clients on localhost" enabled; the response you are getting looks to me like it fails logging in.

Does it work if you turn on that setting (of course, provided you feel comfortable with that)?

Andystew94 commented 1 year ago

I was getting the same error until I added the "Bypass authentication for clients on localhost" and "Bypass authentication for clients in whitelisted IP subnets".

I also added "network_mode: host" to my docker compose to ensure it was a part of my whitelisted IPs.

heisenberg2980 commented 1 year ago

Ok, the option "Bypass authentication for clients on localhost" didn´t work for me but I think that is because I am routing the traffic from radarr/sonarr/qbittorrent through a VPN (with gluetun), but using the option "Bypass authentication for clients in whitelisted IP subnets" and adding the IP address of the container with subnet /32 did work, and I think this is the most secure way to do it as only that IP address will bypass authentication instead of the whole subnet

ManiMatter commented 1 year ago

@heisenberg2980 , @Andystew94 I added the possibility to authenticate with username&password to qbittorrent. Hope that solves the issue also for future users.