nzbToMedia icon indicating copy to clipboard operation
nzbToMedia copied to clipboard

Failed download handling - Sickgear not retrying

Open darrenkperth opened this issue 4 years ago • 19 comments

Describe the bug Since upgrading to Sabnzbd3 and Sickgear3, failed download handling hasn't worked. I've copied my autoprocessmedia cfg Sickbeard section below for review:

[SickBeard] #### autoProcessing for TV Series #### tv - category that gets called for post-processing with SB [[tv]] enabled = 1 host = localhost port = 7073 apikey = *API Key username = username password = password ###### ADVANCED USE - ONLY EDIT IF YOU KNOW WHAT YOU'RE DOING ###### web_root = "" ssl = 0 fork = sickgear delete_failed = 0 # Enable/Disable linking for Torrents Torrent_NoLink = 0 keep_archive = 1 process_method = "" # force processing of already processed content when running a manual scan. force = 0 # tell SickRage/Medusa to delete all source files after processing. delete_on = 0 # tell Medusa to ignore check for associated subtitle check when postponing release ignore_subs = 0 extract = 1 nzbExtractionBy = Downloader # Set this to minimum required size to consider a media file valid (in MB) minSize = 0 # Enable/Disable deleting ignored files (samples and invalid media files) delete_ignored = 0 ##### Enable if SickBeard is on a remote server for this category remote_path = 0 ##### Set to path where download client places completed downloads locally for this category watch_dir = /share/Download/sabnzbd/complete ##### Set the recursive directory permissions to the following (0 to disable) chmodDirectory = `0

Using the above settings, I receive this output from Sabnzbd:

[23:07:17] [INFO]::MAIN: Loading config from [/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/autoProcessMedia.cfg] [23:07:17] [INFO]::MAIN: Python v3.7 will reach end of life in 1023 days. [23:07:17] [INFO]::MAIN: Checking database structure... [23:07:18] [INFO]::MAIN: Checking if git needs an update [23:07:20] [INFO]::MAIN: No update needed [23:07:20] [INFO]::MAIN: nzbToMedia Version:f5e4ec0981ab2f6fd97b14b24aa363a393396073 Branch:master (Linux 4.14.24-qnap) [23:07:23] [INFO]::MAIN: ######################################################### [23:07:23] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ## [23:07:23] [INFO]::MAIN: ######################################################### [23:07:23] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2. [23:07:24] [INFO]::MAIN: Auto-detected SECTION:SickBeard [23:07:24] [INFO]::MAIN: Extracting /share/Download/sabnzbd/incomplete/TV show [23:07:24] [ERROR]::MAIN: EXTRACTOR: Extraction failed for /share/Download/sabnzbd/incompleteTV show. Result was 126 [23:07:24] [INFO]::MAIN: Calling SickBeard:tv to post-process:TV Show [23:07:25] [INFO]::MAIN: SickBeard:tv fork set to SickGear [23:07:25] [INFO]::MAIN: Extracting /share/Download/sabnzbd/incomplete/TV Show to /share/Download/sabnzbd/incomplete/TV show [23:07:25] [ERROR]::MAIN: EXTRACTOR: Extraction failed for /share/Download/sabnzbd/incomplete/TV Show Result was 126 [23:07:26] [WARNING]::SICKBEARD: No media files found in directory /share/Download/sabnzbd/incomplete/TV Show Processing this as a failed download [23:07:26] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to SickGear branch [23:07:27] [INFO]::CLEANDIRS: Directory /share/Download/sabnzbd/incomplete/TV Show still contains 2 unprocessed file(s), skipping ... [23:07:27] [INFO]::MAIN: The /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/nzbToMedia.py script completed successfully. Changing to directory: /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia

-- Cleaning bytecode -- b'' No bytecode to clean

-- Cleaning folders: ['libs', 'core'] -- No folders to clean

Returning to directory: /share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd

-- Cleanup finished --

SickBeard: Successfully post-processed TV Show

Technical Specs

  1. Running on QNAP NAS TS-451A
  2. Python version 3.7.4
  3. Download Client - SabNZBD (Sherpa)
  4. Intended Media Management - SickGear (sherpa) Expected behavior Sickgear does not retry failed downloads and leaves shows as "Snatched"

Log Please provide an extract, or full debug log that indicates the issue.

darrenkperth avatar Sep 07 '20 15:09 darrenkperth

Can you enable debug logging autoPorcessMedia.cfg

[General]
    log_debug = 1

And can you show the SickGear logs at the time the "failed download" request was sent? [23:07:26] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to SickGear branch

clinton-hall avatar Sep 07 '20 22:09 clinton-hall

Thanks @clinton-hall .

Log from Sab as follows:

[09:11:58] [INFO]::MAIN: Loading config from [/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/autoProcessMedia.cfg] [09:11:58] [INFO]::MAIN: Python v3.7 will reach end of life in 1022 days. [09:11:58] [INFO]::MAIN: Checking database structure... [09:11:58] [DEBUG]::MAIN: Checking Initial Schema database upgrade [09:11:58] [DEBUG]::MAIN: InitialSchema upgrade not required [09:11:58] [DEBUG]::MAIN: Checking if we can use git commands: git version [09:11:58] [DEBUG]::MAIN: Executing git version with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:11:58] [DEBUG]::MAIN: git version : returned successful [09:11:58] [DEBUG]::MAIN: Using: git [09:11:58] [DEBUG]::MAIN: Executing git symbolic-ref -q HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:11:58] [DEBUG]::MAIN: git symbolic-ref -q HEAD : returned successful [09:11:58] [INFO]::MAIN: Checking if git needs an update [09:11:58] [DEBUG]::MAIN: Executing git rev-parse HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:11:58] [DEBUG]::MAIN: git rev-parse HEAD : returned successful [09:11:58] [DEBUG]::MAIN: Executing git fetch origin with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:09] [DEBUG]::MAIN: git fetch origin : returned successful [09:12:09] [DEBUG]::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:09] [DEBUG]::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful [09:12:09] [DEBUG]::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:10] [DEBUG]::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful [09:12:10] [DEBUG]::MAIN: cur_commit = f5e4ec0981ab2f6fd97b14b24aa363a393396073 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 2588, num_commits_ahead = 0 [09:12:10] [INFO]::MAIN: There is a newer version available (you're 2588 commits behind) [09:12:10] [INFO]::MAIN: Auto-Updating nzbToMedia, Please wait ... [09:12:10] [DEBUG]::MAIN: Executing git rev-parse HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:10] [DEBUG]::MAIN: git rev-parse HEAD : returned successful [09:12:10] [DEBUG]::MAIN: Executing git fetch origin with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:11] [DEBUG]::MAIN: git fetch origin : returned successful [09:12:11] [DEBUG]::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:11] [DEBUG]::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful [09:12:11] [DEBUG]::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:12] [DEBUG]::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful [09:12:12] [DEBUG]::MAIN: cur_commit = f5e4ec0981ab2f6fd97b14b24aa363a393396073 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 2588, num_commits_ahead = 0 [09:12:12] [DEBUG]::MAIN: Executing git pull origin master with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:14] [DEBUG]::MAIN: git pull origin master : returned successful [09:12:14] [DEBUG]::MAIN: Checking if we can use git commands: git version [09:12:14] [DEBUG]::MAIN: Executing git version with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:14] [DEBUG]::MAIN: git version : returned successful [09:12:14] [DEBUG]::MAIN: Using: git [09:12:14] [DEBUG]::MAIN: Executing git symbolic-ref -q HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:14] [DEBUG]::MAIN: git symbolic-ref -q HEAD : returned successful [09:12:14] [INFO]::MAIN: Restarting nzbToMedia with ['/opt/bin/python', '/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/nzbToMedia.py', '/share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3', 'L.A.s.Finest.S02E10.1080p.WEB.H264-FiASCO.nzb', 'L A s Finest S02E10 1080p WEB H264-FiASCO', '', 'tv', 'alt.binaries.chello', '-1', ''] [09:12:28] [INFO]::MAIN: Loading config from [/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/autoProcessMedia.cfg] [09:12:28] [INFO]::MAIN: Python v3.7 will reach end of life in 1022 days. [09:12:28] [INFO]::MAIN: Checking database structure... [09:12:28] [DEBUG]::MAIN: Checking Initial Schema database upgrade [09:12:28] [DEBUG]::MAIN: InitialSchema upgrade not required [09:12:28] [DEBUG]::MAIN: Checking if we can use git commands: git version [09:12:28] [DEBUG]::MAIN: Executing git version with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:28] [DEBUG]::MAIN: git version : returned successful [09:12:28] [DEBUG]::MAIN: Using: git [09:12:28] [DEBUG]::MAIN: Executing git symbolic-ref -q HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:28] [DEBUG]::MAIN: git symbolic-ref -q HEAD : returned successful [09:12:28] [INFO]::MAIN: Checking if git needs an update [09:12:28] [DEBUG]::MAIN: Executing git rev-parse HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:28] [DEBUG]::MAIN: git rev-parse HEAD : returned successful [09:12:28] [DEBUG]::MAIN: Executing git fetch origin with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:30] [DEBUG]::MAIN: git fetch origin : returned successful [09:12:30] [DEBUG]::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:30] [DEBUG]::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful [09:12:30] [DEBUG]::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:12:30] [DEBUG]::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful [09:12:30] [DEBUG]::MAIN: cur_commit = b3dc118b52cab0fa658d9bf046b2ff012553aa55 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 0, num_commits_ahead = 0 [09:12:30] [INFO]::MAIN: No update needed [09:12:30] [INFO]::MAIN: nzbToMedia Version:b3dc118b52cab0fa658d9bf046b2ff012553aa55 Branch:master (Linux 4.14.24-qnap) [09:12:31] [INFO]::MAIN: ######################################################### [09:12:31] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ## [09:12:31] [INFO]::MAIN: ######################################################### [09:12:31] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/nzbToMedia.py', '/share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3', 'L.A.s.Finest.S02E10.1080p.WEB.H264-FiASCO.nzb', 'L A s Finest S02E10 1080p WEB H264-FiASCO', '', 'tv', 'alt.binaries.chello', '-1', ''] [09:12:31] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2. [09:12:31] [DEBUG]::MAIN: Adding NZB download info for directory /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3 to database [09:12:32] [INFO]::MAIN: Auto-detected SECTION:SickBeard [09:12:32] [DEBUG]::MAIN: Checking for archives to extract in directory: /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3 [09:12:32] [INFO]::MAIN: Calling SickBeard:tv to post-process:L A s Finest S02E10 1080p WEB H264-FiASCO [09:12:32] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:7073 [09:12:32] [DEBUG]::SERVER: Server responded at http://localhost:7073 [09:12:32] [INFO]::MAIN: SickBeard:tv fork set to SickGear [09:12:32] [WARNING]::SICKBEARD: No media files found in directory /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3. Processing this as a failed download [09:12:32] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. Sending 'failed' process request to SickGear branch [09:12:32] [DEBUG]::SICKBEARD: Opening URL: http://localhost:7073/api/60e4******************d6d/ with params: {'dir': '/share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3', 'failed': 1, 'quiet': 1, 'nzbName': 'L A s Finest S02E10 1080p WEB H264-FiASCO', 'cmd': 'sg.postprocess'} [09:12:33] [INFO]::CLEANDIRS: Directory /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3 has been processed, removing ... [09:12:33] [INFO]::MAIN: The /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/nzbToMedia.py script completed successfully. Changing to directory: /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia

-- Cleaning bytecode -- b'' No bytecode to clean

-- Cleaning folders: ['libs', 'core'] -- No folders to clean

Returning to directory: /share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd

-- Cleanup finished --

SickBeard: Successfully post-processed L A s Finest S02E10 1080p WEB H264-FiASCO!

and the log from Sickgear (as I see relevant to the above event)

2020-09-08 09:12:33 WARNING TORNADO :: Failed! Did not process any files. 2020-09-08 09:12:33 DEBUG TORNADO :: Parsed L A s Finest S02E11 1080p WEB H264-FiASCO into L A s Finest - S2E11 [GROUP: FiASCO] [ABD: False] [ANIME: False] [whichReg: ['standard']] 2020-09-08 09:12:33 DB TORNADO :: sickbeard.db: SELECT * FROM tv_shows 2020-09-08 09:12:33 DEBUG TORNADO :: Processing sub dir: complete 2020-09-08 09:12:33 INFO TORNADO :: Join skipped. Total size of 4 input files equal to output.. /share/CACHEDEV1_DATA/Download/sabnzbd/logs/sabnzbd.log (35525256 bytes) 2020-09-08 09:12:32 DEBUG TORNADO :: Processing folder... /share/CACHEDEV1_DATA/Download/sabnzbd 2020-09-08 09:12:32 DEBUG TORNADO :: Checking folder... /share/CACHEDEV1_DATA/Download/sabnzbd/complete 2020-09-08 09:12:32 DEBUG TORNADO :: API (TV Script):: sg.postprocess: curKwargs {'dir': '/share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3', 'failed': '1', 'quiet': '1', 'nzbName': 'L A s Finest S02E10 1080p WEB H264-FiASCO'} 2020-09-08 09:12:32 DEBUG TORNADO :: API (TV Script):: all kwargs: '{'dir': '/share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3', 'failed': '1', 'quiet': '1', 'nzbName': 'L A s Finest S02E10 1080p WEB H264-FiASCO'}' 2020-09-08 09:12:32 DEBUG TORNADO :: API (TV Script):: all args: '()' 2020-09-08 09:12:32 DEBUG TORNADO :: API (TV Script):: cmd: 'sg.postprocess' 2020-09-08 09:12:32 DEBUG TORNADO :: API (TV Script):: 127.0.0.1 - gave correct API KEY: TV Script. ACCESS GRANTED 2020-09-08 09:09:27 DB TORNADO :: sickbeard.db: SELECT description FROM tv_episodes WHERE indexer = ? AND showid = ? AND season = ? AND episode = ? with args [1, 239851, 7, 10] 2020-09-08 09:07:34 DB TORNADO :: sickbeard.db: SELECT description FROM tv_episodes WHERE indexer = ? AND showid = ? AND season = ? AND episode = ? with args [1, 376837, 1, 2]

Thanks in advance

darrenkperth avatar Sep 08 '20 01:09 darrenkperth

Can you try setting this to use autofork? autoProcessMedis.cfg

[SickBeard]
    [[tv]]
        fork = auto

clinton-hall avatar Sep 08 '20 01:09 clinton-hall

I did try that to begin with however here's the log from Sab with fork = auto

[09:52:41] [INFO]::MAIN: Loading config from [/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/autoProcessMedia.cfg] [09:52:41] [INFO]::MAIN: Python v3.7 will reach end of life in 1022 days. [09:52:41] [INFO]::MAIN: Checking database structure... [09:52:41] [DEBUG]::MAIN: Checking Initial Schema database upgrade [09:52:41] [DEBUG]::MAIN: InitialSchema upgrade not required [09:52:41] [DEBUG]::MAIN: Checking if we can use git commands: git version [09:52:41] [DEBUG]::MAIN: Executing git version with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:52:41] [DEBUG]::MAIN: git version : returned successful [09:52:41] [DEBUG]::MAIN: Using: git [09:52:41] [DEBUG]::MAIN: Executing git symbolic-ref -q HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:52:41] [DEBUG]::MAIN: git symbolic-ref -q HEAD : returned successful [09:52:41] [INFO]::MAIN: Checking if git needs an update [09:52:41] [DEBUG]::MAIN: Executing git rev-parse HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:52:41] [DEBUG]::MAIN: git rev-parse HEAD : returned successful [09:52:41] [DEBUG]::MAIN: Executing git fetch origin with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:52:43] [DEBUG]::MAIN: git fetch origin : returned successful [09:52:43] [DEBUG]::MAIN: Executing git rev-parse --verify --quiet '@{upstream}' with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:52:43] [DEBUG]::MAIN: git rev-parse --verify --quiet '@{upstream}' : returned successful [09:52:43] [DEBUG]::MAIN: Executing git rev-list --left-right '@{upstream}'...HEAD with your shell in /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia [09:52:43] [DEBUG]::MAIN: git rev-list --left-right '@{upstream}'...HEAD : returned successful [09:52:43] [DEBUG]::MAIN: cur_commit = b3dc118b52cab0fa658d9bf046b2ff012553aa55 % (newest_commit)= b3dc118b52cab0fa658d9bf046b2ff012553aa55, num_commits_behind = 0, num_commits_ahead = 0 [09:52:43] [INFO]::MAIN: No update needed [09:52:43] [INFO]::MAIN: nzbToMedia Version:b3dc118b52cab0fa658d9bf046b2ff012553aa55 Branch:master (Linux 4.14.24-qnap) [09:52:44] [INFO]::MAIN: ######################################################### [09:52:44] [INFO]::MAIN: ## ..::[nzbToMedia.py]::.. ## [09:52:44] [INFO]::MAIN: ######################################################### [09:52:44] [DEBUG]::MAIN: Options passed into nzbToMedia: ['/share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/nzbToMedia.py', '/share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3', 'L.A.s.Finest.S02E10.1080p.WEB.H264-FiASCO.nzb', 'L A s Finest S02E10 1080p WEB H264-FiASCO', '', 'tv', 'alt.binaries.chello', '-1', ''] [09:52:44] [INFO]::MAIN: Script triggered from SABnzbd Version 3.0.2. [09:52:44] [DEBUG]::MAIN: Adding NZB download info for directory /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3 to database [09:52:44] [INFO]::MAIN: Auto-detected SECTION:SickBeard [09:52:44] [DEBUG]::MAIN: Checking for archives to extract in directory: /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3 [09:52:44] [INFO]::MAIN: Calling SickBeard:tv to post-process:L A s Finest S02E10 1080p WEB H264-FiASCO [09:52:44] [DEBUG]::SERVER: Attempting to connect to server at http://localhost:7073 [09:52:44] [DEBUG]::SERVER: Server responded at http://localhost:7073 [09:52:44] [INFO]::MAIN: Attempting to auto-detect tv fork [09:52:44] [DEBUG]::MAIN: Removing excess parameters: ['delete', 'delete_files', 'delete_on', 'dir', 'dirName', 'failed', 'force', 'force_next', 'ignore_subs', 'is priority', 'proc_dir'] [09:52:44] [INFO]::MAIN: SickBeard:tv fork auto-detection found custom params {'cmd': 'sg.postprocess', 'return_data': None, 'force_replace': None, 'is_priority': None, 'process_method': None, 'path': None, 'type': None} [09:52:44] [INFO]::MAIN: SickBeard:tv fork set to custom [09:52:44] [WARNING]::SICKBEARD: No media files found in directory /share/Download/sabnzbd/complete/L A s Finest S02E10 1080p WEB H264-FiASCO.3. Processing this as a failed download [09:52:44] [POSTPROCESS]::SICKBEARD: FAILED: The download failed. custom branch does not handle failed downloads. Nothing to process [09:52:44] [ERROR]::MAIN: A problem was reported in the /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia/nzbToMedia.py script. Changing to directory: /share/CACHEDEV1_DATA/.qpkg/nzbToMedia/nzbToMedia

-- Cleaning bytecode -- b'' No bytecode to clean

-- Cleaning folders: ['libs', 'core'] -- No folders to clean

Returning to directory: /share/CACHEDEV1_DATA/.qpkg/SABnzbd/SABnzbd

-- Cleanup finished --

SickBeard: Failed to post-process. SickBeard does not support failed downloads!

and corresponding SickGear Log

2020-09-08 09:53:48 DB TORNADO :: sickbeard.db: SELECT (SELECT COUNT() FROM tv_episodes WHERE season > 0 AND episode > 0 AND airdate > 1 AND status IN (2,3276802,102,202,402,802,1602,3202,6402,12802,25602,102402,9,3276809,109,209,409,809,1609,3209,6409,12809,25609,102409,12,3276812,112,212,412,812,1612,3212,6412,12812,25612,102412)) AS ep_snatched, (SELECT COUNT() FROM tv_episodes WHERE season > 0 AND episode > 0 AND airdate > 1 AND status IN (4,3276804,104,204,404,804,1604,3204,6404,12804,25604,102404,6,3276806,106,206,406,806,1606,3206,6406,12806,25606,102406)) AS ep_downloaded, (SELECT COUNT(*) FROM tv_episodes WHERE season > 0 AND episode > 0 AND airdate > 1 AND ((airdate <= 737676 AND (status = 5 OR status = 3)) OR (status IN (2,3276802,102,202,402,802,1602,3202,6402,12802,25602,102402,9,3276809,109,209,409,809,1609,3209,6409,12809,25609,102409,12,3276812,112,212,412,812,1612,3212,6412,12812,25612,102412)) OR (status IN (4,3276804,104,204,404,804,1604,3204,6404,12804,25604,102404,6,3276806,106,206,406,806,1606,3206,6406,12806,25606,102406)))) AS ep_total FROM tv_episodes tv_eps LIMIT 1 2020-09-08 09:52:44 DEBUG TORNADO :: API (TV Script):: sg.postprocess: curKwargs {'help': '1'} 2020-09-08 09:52:44 DEBUG TORNADO :: API (TV Script):: all kwargs: '{'help': '1'}' 2020-09-08 09:52:44 DEBUG TORNADO :: API (TV Script):: all args: '()' 2020-09-08 09:52:44 DEBUG TORNADO :: API (TV Script):: cmd: 'sg.postprocess' 2020-09-08 09:52:44 DEBUG TORNADO :: API (TV Script):: 127.0.0.1 - gave correct API KEY: TV Script. ACCESS GRANTED

darrenkperth avatar Sep 08 '20 01:09 darrenkperth

In SickGear, Settings, Media Process, make sure you have ticked the option Enable for failed downloads and also select Delete failed downloads if you want the files deleted by SickGear.

When failed download handling is enabled in SickGear, this should be an available option for the PostProcess command and should auto-detect the correct branch.

clinton-hall avatar Sep 08 '20 02:09 clinton-hall

Yes, both of those options have been ticked..

I don't know if this is relevant, but I did install these applications via Sherpa script and not a traditional Qpkg

darrenkperth avatar Sep 08 '20 03:09 darrenkperth

@JackDandy Is the failed parameter still able to be passed through the sg.postprocess api command? This doesn't appear to be showing anymore on my system (although this is locked to an older Py2.7 version.

FWIW I'm about to have a look at updating the Asustor App to use latest on Python3.

clinton-hall avatar Sep 08 '20 04:09 clinton-hall

@clinton-hall I can see that the failed parameter was originally added hard-coded to False in the SickBeard API. That False state was ported to the SickGear API.

This is perhaps an error, but I need to check, because it may be that you should call sg.episode.setstatus to mark an item as failed, I'll get back to you.

JackDandy avatar Sep 08 '20 06:09 JackDandy

@clinton-hall

Fixed in latest release here

JackDandy avatar Sep 09 '20 19:09 JackDandy

Thanks @JackDandy I'll update at this end and test.

@darrenkperth If you update SickGear to latest and try to process again, does this work for you?

clinton-hall avatar Sep 09 '20 20:09 clinton-hall

Thanks @JackDandy and @clinton-hall , I can confirm that upgrading to the latest release and switching the fork = auto, failed processing is now working like a charm. Thanks again

darrenkperth avatar Sep 10 '20 02:09 darrenkperth

Thanks for confirming. Can you show some log extracts? Particularly I wanted to see if it detected fork as SickGear or custom.

clinton-hall avatar Sep 10 '20 04:09 clinton-hall

Seems to be custom, see below:

[10:25:22] [INFO]::MAIN: Attempting to auto-detect tv fork [10:25:22] [INFO]::MAIN: SickBeard:tv fork auto-detection found custom params {'force_replace': None, 'return_data': None, 'failed': None, 'type': None, 'process_method': None, 'cmd': 'sg.postprocess', 'is_priority': None, 'path': None} [10:25:22] [INFO]::MAIN: SickBeard:tv fork set to custom

darrenkperth avatar Sep 10 '20 05:09 darrenkperth

@clinton-hall fyi, 0.21.45 has been released for when you update the Asustor App package(s) ;)

JackDandy avatar Sep 11 '20 15:09 JackDandy

@JackDandy Latest app package is available in Asustor store, and will clone latest.

I also note that another developer has released a SickGear package. I haven't look at that App to see what it does.

clinton-hall avatar Sep 11 '20 23:09 clinton-hall

@darrenkperth The nightly branch will now detect the fork as SickGear... but the master branch will still continue to process fine anyway.

clinton-hall avatar Sep 12 '20 00:09 clinton-hall

Thanks @clinton-hall

Only thing I notice is a typo on the package page Chnaged instead of Changed ;)

You might also want to add some words on the lines of This package fetches the latest SickGear release when it is installed. to address the question a user may have when looking at that page.

JackDandy avatar Sep 12 '20 04:09 JackDandy

@JackDandy Latest version is 20200909 and I already fixed this.... the actual internal change log is:

V 20200909: Improved entware handling on i386.

V 20200908: Changed to python3 and install via entware.

V 20180620: Added support for aarch64.

V 20180612: Fixed Python Path export.

V 20180604: Initial release based on existing SickBeard App.

But I wonder if the App Portal actually saves each update... I probably can change that, but need to update version to do so.

In the description that appears on the App (within Asustor)

SickGear has proven the most reliable stable TV fork of the great Sick-Beard to fully automate TV enjoyment with innovation.

Default Port: 7081
Auto-Updates via application built-in updater.

clinton-hall avatar Sep 12 '20 06:09 clinton-hall

@clinton-hall yeah, the mention of auto-updates in your description is what got me thinking when i was updating the Asus install page at the sg wiki, consider the following screenie...
I also saw the other typo Initial relase you fixed internally, rushing to surf at the beach before a 📦 release will get you those :p

JackDandy avatar Sep 12 '20 09:09 JackDandy