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

Queue Cleaning Failed on formattedQueueInfo #122

Closed Wildest-Card closed 1 week ago

Wildest-Card commented 1 week ago

Hi there,

I'm currently attempting to deploy this in my docker instance however I'm not able to get this to work as intended

below is the verbose output I'm getting in my log

[INFO   ]: ##################################################
[INFO   ]: 
[VERBOSE]: --------------------------------------------------
[VERBOSE]: Cleaning queue on Radarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: Cleaning queue on Sonarr:
[INFO   ]: >>> Detected missing metadata download (1 out of 3 permitted times): *TVshow Name*
[INFO   ]: >>> Detected missing metadata download (1 out of 3 permitted times): *TVshow Name*
[INFO   ]: >>> Detected missing metadata download (1 out of 3 permitted times): *TVshow Name*
[INFO   ]: >>> Detected stalled download (1 out of 3 permitted times): *TVshow Name*
[INFO   ]: >>> Detected stalled download (1 out of 3 permitted times): *TVshow Name*
[INFO   ]: >>> Detected stalled download (1 out of 3 permitted times): *TVshow Name*
[INFO   ]: >>> Detected stalled download (1 out of 3 permitted times): *TVshow Name*
[VERBOSE]: >>> Queue is clean.
[VERBOSE]: Cleaning queue on Lidarr:
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on Lidarr. (File: remove_unmonitored.py / Line: 28 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[VERBOSE]: >>> Queue is clean.
[VERBOSE]: Cleaning queue on Readarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: 
[VERBOSE]: Queue clean-up complete!

please let me know if I can provide any additional information from my instance to help

Thanks,

ManiMatter commented 1 week ago

Pls post the logs incl. the info at the top which shows version etc

Wildest-Card commented 1 week ago

no problem, please see below;

[INFO   ]: Decluttarr - Application Started!
[INFO   ]: 
[INFO   ]: Like this app? Thanks for giving it a ⭐️ on GitHub!
[INFO   ]: https://github.com/ManiMatter/decluttarr/
[INFO   ]: 
[INFO   ]: *** Current Settings ***
[INFO   ]: Version: v1.45.0
[INFO   ]: Commit: abf6cc7
[INFO   ]: 
[INFO   ]: True | Removing failed downloads (REMOVE_FAILED)
[INFO   ]: True | Removing failed imports (REMOVE_FAILED_IMPORTS)
[VERBOSE]: > Imports with a warning flag are considered failed if the status message contains any of the following patterns:
[VERBOSE]:   - "Not an upgrade for existing"
[VERBOSE]:   - "Not a Custom Format upgrade for existing"
[INFO   ]: True | Removing downloads missing metadata (REMOVE_METADATA_MISSING)
[INFO   ]: True | Removing downloads missing files (REMOVE_MISSING_FILES)
[INFO   ]: True | Removing orphan downloads (REMOVE_ORPHANS)
[INFO   ]: True | Removing slow downloads (REMOVE_SLOW)
[INFO   ]: True | Removing stalled downloads (REMOVE_STALLED)
[INFO   ]: True | Removing downloads belonging to unmonitored items (REMOVE_UNMONITORED)
[INFO   ]: 
[INFO   ]: Running every: 0 days 0 hours 10.0 minutes
[INFO   ]: Minimum speed enforced: 100 KB/s
[INFO   ]: Permitted number of times before stalled/missing metadata/slow downloads are removed: 3
[INFO   ]: Downloads with this tag will be skipped: "Don't Kill"
[INFO   ]: Private Trackers will be skipped: True
[INFO   ]: 
[INFO   ]: *** Configured Instances ***
[INFO   ]: Radarr: http://172.18.0.12:7878/api/v3
[INFO   ]: Sonarr: http://172.18.0.11:8989/api/v3
[INFO   ]: Lidarr: http://172.18.0.14:8686/api/v1
[INFO   ]: Readarr: http://172.18.0.13:8787/api/v1
[INFO   ]: qBittorrent: http://172.18.0.31:8112/api/v2
[INFO   ]: 
[INFO   ]: *** Check Instances ***
[INFO   ]: OK | Radarr
[INFO   ]: OK | Sonarr
[INFO   ]: OK | Lidarr
[INFO   ]: OK | Readarr
[INFO   ]: OK | qBittorrent
[INFO   ]: 
[INFO   ]: ##################################################
[INFO   ]: 
[VERBOSE]: --------------------------------------------------
[VERBOSE]: Cleaning queue on Radarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: Cleaning queue on Sonarr:
[INFO   ]: >>> Detected missing metadata download (1 out of 3 permitted times): *TVSHOWNAME*
[INFO   ]: >>> Detected missing metadata download (1 out of 3 permitted times): *TVSHOWNAME*
[INFO   ]: >>> Detected missing metadata download (1 out of 3 permitted times): *TVSHOWNAME*
[INFO   ]: >>> Detected slow download that has completed downloading - skipping check (torrent files likely in process of being moved): *TVSHOWNAME*
[INFO   ]: >>> Detected slow download that has completed downloading - skipping check (torrent files likely in process of being moved): *TVSHOWNAME*
[INFO   ]: >>> Detected slow download that has completed downloading - skipping check (torrent files likely in process of being moved): *TVSHOWNAME*
[INFO   ]: >>> Detected slow download that has completed downloading - skipping check (torrent files likely in process of being moved): *TVSHOWNAME*
[INFO   ]: >>> Detected slow download that has completed downloading - skipping check (torrent files likely in process of being moved): *TVSHOWNAME*
[VERBOSE]: >>> Queue is clean.
[VERBOSE]: Cleaning queue on Lidarr:
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on formattedQueueInfo. (File: shared.py / Line: 160 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[WARNING]: >>> Queue cleaning failed on Lidarr. (File: remove_unmonitored.py / Line: 28 / Error Message: 'downloadId' / Error Type: <class 'KeyError'>)
[VERBOSE]: >>> Queue is clean.
[VERBOSE]: Cleaning queue on Readarr:
[VERBOSE]: >>> Queue is empty.
[VERBOSE]: 
[VERBOSE]: Queue clean-up complete!
ManiMatter commented 1 week ago

Thx

pls

  1. switch to debug logs
  2. set all features to false other than REMOVE_UNMONITORED
  3. Remove the urls for radarr, sonarr, etc, keep only lidarr
  4. Paste the logs again
Wildest-Card commented 1 week ago

ah issue was my end, looks like my lidar had an old unused remote path mapping that was left over from a legacy setup, removed the mapping and cleaned the folder and looks like that error has gone now however I'm still not seeing stalled downloads for sonarr being removed, I'll do some more digging to rule out anything my end and open a new ticket if I come up with nothing. thanks for the help!