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

Error removing items #157

Open YourLastFate opened 7 hours ago

YourLastFate commented 7 hours ago

Decluttarr is able monitor shows, and recognize when they stall correctly. It is only currently hooked up with sonarr and radarr, no other services.

Whenever it goes to remove a show from download, i get a bad url error.

[INFO]: >>> Removing stalled download: The Astronaut Wives Club S01E09 720p HDTV X264-DIMENSION[rartv]
[ERROR]: Error making API request to http://sonarr:8989/api/v3/queue/1256217565: 404 Client Error: Not Found for url: http://sonarr:8989/sonarr/api/v3/queue/1256217565?removeFromClient=True&blocklist=True

I am using a reverse proxy, nginx. Willing to provide any additional information that can assist.

YourLastFate commented 6 hours ago

Current config file:

` decluttarr: image: ghcr.io/manimatter/decluttarr:latest container_name: decluttarr restart: always environment: TZ: America/New_York PUID: 1000 PGID: 1000

  ## General
  # TEST_RUN=True
  # SSL_VERIFICATION=False
  LOG_LEVEL: INFO

  ## Features 
  REMOVE_TIMER: 10
  REMOVE_FAILED: "True"
  REMOVE_FAILED_IMPORTS: "True"
  REMOVE_METADATA_MISSING: "True"
  REMOVE_MISSING_FILES: "True"
  REMOVE_ORPHANS: "True"
  REMOVE_SLOW: "True"
  REMOVE_STALLED: "True"
  REMOVE_UNMONITORED: "True"
  RUN_PERIODIC_RESCANS: |
    {
      "SONARR": {"MISSING": true, "CUTOFF_UNMET": true, "MAX_CONCURRENT_SCANS": 3, "MIN_DAYS_BEFORE_RESCAN": 7},
      "RADARR": {"MISSING": true, "CUTOFF_UNMET": true, "MAX_CONCURRENT_SCANS": 3, "MIN_DAYS_BEFORE_RESCAN": 7}
    }

  ## Feature Settings
  PERMITTED_ATTEMPTS: 3
  NO_STALLED_REMOVAL_QBIT_TAG: Don't Kill
  REMOVE_SLOW: "True"
  MIN_DOWNLOAD_SPEED: 100
  FAILED_IMPORT_MESSAGE_PATTERNS: |
    [
      "Not a Custom Format upgrade for existing", 
      "Not an upgrade for existing"
    ]

  ## Radarr
  RADARR_URL: http://radarr:7878
  RADARR_KEY: [REDACTED]

  ## Sonarr
  SONARR_URL: http://sonarr:8989
  SONARR_KEY: [REDACTED]

  ## Lidarr
  # LIDARR_URL: http://lidarr:8686
  # LIDARR_KEY: $LIDARR_API_KEY

  ## Readarr
  # READARR_URL: http://readarr:8787
  # READARR_KEY: $READARR_API_KEY

  ## Whisparr
  # WHISPARR_URL: http://whisparr:6969
  # WHISPARR_KEY: $WHISPARR_API_KEY

  ## qBitorrent
  # QBITTORRENT_URL: http://qbittorrent:8080
  # QBITTORRENT_USERNAME: 
  # QBITTORRENT_PASSWORD: 
networks:
  - the_internet
  - media_mgmt_network
depends_on:
  - swag`

Looking through another message, i can see the IP address is included instead of radarr/sonarr, but when i change to SONARR_URL: http://192.168.x.x:8989 the logs now show blank No log line matching the '' filter