Closed Cygnus-Altair closed 2 years ago
Failed download processing is enabled in SickChill. in Sabnzbd: Post process only verified jobs is disabled post processing script can flag job as failed is enabled on failure, try alternative nzb is enabled ignore samples enabled empty_postproc is checked.
the script should be telling SickChill that the download failed
[11:33:11] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to SickBeard-api branch
try enabling debug logging in nzbToMedia... in autoProcessMedia.cfg
[General]
log_debug = 1
then the logs should show more details regarding the specific api command sent etc.
Likewise there should be some debug logging in SickChill... it would appear that SickChill didn't respond to the failed download call.
You are right, SickChill isn't responding correctly to the failed download call, even though when I go to the failed download page, it lists them. It just doesnt act on it by re-searching for a new nzb, just leaves it at snatched.
Even though it see's it as failed, could this line from the sickchill debug mean anything? 2022-03-04 09:08:37 DEBUG :: AUTO :: API :: all args: '()'
here are the Nzbtomedia debug logs:
[09:01:30] [INFO]::MAIN: Python v3.10 will reach end of life in 1672 days.
[09:01:30] [INFO]::MAIN: Checking database structure...
[09:01:30] [DEBUG]::MAIN: Checking Initial Schema database upgrade
[09:01:30] [DEBUG]::MAIN: InitialSchema upgrade not required
[09:01:30] [DEBUG]::MAIN: Checking if we can use git commands: "/git" version
[09:01:30] [DEBUG]::MAIN: Executing "/git" version with your shell in /config/nzbToMedia
[09:01:30] [DEBUG]::MAIN: Not using: "/git"
[09:01:30] [DEBUG]::MAIN: Unable to find your git executable - Set git_path in your autoProcessMedia.cfg OR delete your .git folder and run from source to enable updates.
[09:01:30] [DEBUG]::MAIN: No git specified, can't use git commands
[09:01:30] [INFO]::MAIN: Checking if git needs an update
[09:01:30] [DEBUG]::MAIN: No git specified, can't use git commands
[09:01:30] [ERROR]::MAIN: Unable to determine installed version via git, please check your logs!
[09:01:30] [INFO]::MAIN: No update needed
[09:01:30] [INFO]::MAIN: nzbToMedia Version:12.1.10 Branch:master (Linux 5.10.28-Unraid)
[09:01:30] [WARNING]::MAIN: Failed to locate 7zip. Transcoding of disk images and extraction of .7z files will not be possible!
[09:01:30] [WARNING]::MAIN: Failed to locate par2. Repair and rename using par files will not be possible!
[09:01:30] [WARNING]::MAIN: Failed to locate ffmpeg. Transcoding disabled!
[09:01:30] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[09:01:30] [WARNING]::MAIN: Failed to locate ffprobe. Video corruption detection disabled!
[09:01:30] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ...
[09:01:30] [INFO]::MAIN: #########################################################
[09:01:30] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ##
[09:01:30] [INFO]::MAIN: #########################################################
[09:01:30] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/config/nzbToMedia/nzbToSickBeard.py', '/ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX', 'Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX.nzb', 'Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX', '', 'tv', 'alt.binaries.movies.x264', '3', '']
[09:01:30] [INFO]::MAIN: Script triggered from SABnzbd Version 3.5.1.
[09:01:30] [DEBUG]::MAIN: Adding NZB download info for directory /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX to database
[09:01:31] [INFO]::MAIN: Auto-detected SECTION:SickBeard
[09:01:31] [INFO]::MAIN: Calling SickBeard:tv to post-process:Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX
[09:01:31] [DEBUG]::SERVER: Attempting to connect to server at http://10.10.10.112:8094
[09:01:32] [DEBUG]::SERVER: Server responded at http://10.10.10.112:8094
[09:01:32] [INFO]::MAIN: SickBeard:tv fork set to SickBeard-api
[09:01:32] [DEBUG]::MAIN: Create object for fork SickBeard-api
[09:01:32] [INFO]::MAIN: SickBeard:tv Could not create a fork object for SickBeard-api. Probaly class not added yet.
[09:01:32] [WARNING]::SICKBEARD: No media files found in directory /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX. Processing this as a failed download
[09:01:32] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to SickBeard-api branch
[09:01:32] [DEBUG]::SICKBEARD: Opening URL: http://10.10.10.112:8094/api/redactedAPI/ with params: {'path': '/ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX', 'failed': 1, 'process_method': 'move', 'return_data': 0, 'force_next': 1, 'cmd': 'postprocess', 'nzbName': 'Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX'}
[09:01:34] [POSTPROCESS]::SICKBEARD: Deleting failed files and folder /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX
[09:01:34] [INFO]::MAIN: Deleting /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX
[09:01:34] [INFO]::CLEANDIR: Directory /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX has been processed and removed ...
[09:01:34] [INFO]::MAIN: The /config/nzbToMedia/nzbToSickBeard.py script completed successfully.
Changing to directory: /config/nzbToMedia
-- Cleaning bytecode --
b'Removing __pycache__/\n'
b'Removing __pycache__/\n'
-- Cleaning folders: ['libs', 'core'] --
No folders to clean
Returning to directory: /usr/lib/sabnzbd
-- Cleanup finished --
SickBeard: Successfully post-processed Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX!```
--------End of Nzbtomedia log -----------'''
SickChill Logs:
```2022-03-04 09:08:37 INFO :: AUTO :: Auto post processing task for /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX completed
2022-03-04 09:08:37 DEBUG :: AUTO :: Unable to figure out what folder to process. If your downloader and SickChill aren't on the same PC make sure you fill out your TV download dir in the config.
2022-03-04 09:08:37 INFO :: AUTO :: Beginning auto post processing task: /ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX
2022-03-04 09:08:37 DEBUG :: AUTO :: API :: postprocess: cur_kwargs {'path': '/ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX', 'failed': '1', 'process_method': 'move', 'return_data': '0', 'force_next': '1', 'nzbName': 'Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX'}
2022-03-04 09:08:37 DEBUG :: AUTO :: API :: all kwargs: '{'path': '/ssd/incomplete/Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX', 'failed': '1', 'process_method': 'move', 'return_data': '0', 'force_next': '1', 'cmd': 'postprocess', 'nzbName': 'Raised.By.Wolves.2020.S01E01.1080p.AMZN.WEB-DL.DDP5.1.H.264-FLUX'}'
2022-03-04 09:08:37 DEBUG :: AUTO :: API :: all args: '()'
2022-03-04 09:08:37 DEBUG :: AUTO :: API :: 172.17.0.1 - gave correct API KEY. ACCESS GRANTED```
Issue Fixed: I added in a container path to the incomplete download directory as well, and now it is pulling new nzbs after each aborted attempt. Previously I only had a container path for the completed directory.
ah yes, that makes sense. Even though we tell SickChill the download has failed, it still needs to see the failed download for itself... Glad you have it sorted now.
Describe the bug When a download is aborted, it is processed as completed.
If Sabnzbd marks a download as failed, nzbtomedia sends failed over and sickchill selects a new nzb to try. If sabnzbd marks a download as aborted, nzbtomedia has the message received - sickbeard: successfully post-processed media, this results in sickchill keeping the episode as snatched, rather than marking nzb as failed and starting a new search.
Technical Specs
Expected behavior Aborted downloads to be marked as failed by sickchill and a new search started.
Log
Log from SickChill: