clinton-hall / nzbToMedia

Provides NZB and Torrent postprocessing To CouchPotatoServer, SickBeard/SickRage, HeadPhones, Mylar and Gamez
GNU General Public License v3.0
670 stars 176 forks source link

All Sickrage post-processing failing #923

Closed dwinarsky closed 4 months ago

dwinarsky commented 8 years ago

I'm seeing below in the post processing log:

Error !

2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:

KeyError: 'proc_dir'

2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: if k.lower() not in ['proc_dir', 'dir', 'nzbname', 'process_method', 'proc_type'] else v 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: ) for k, v in kwargs.items()) 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: if not pp_options[b"proc_dir"]: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: return self.redirect("/home/postprocess/") 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: result = processTV.processDir(pp_options[b"proc_dir"], pp_options) 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: if pp_options.get("quiet", None): 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: return result 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
/Applications/SickRage/sickbeard/webserve.py, line 2252:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
if not pp_options[b"proc_dir"]:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
/Applications/SickRage/sickbeard/webserve.py, line 219:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
return function(kwargs)
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD:
2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 POSTPROCESS::SICKBEARD: 2015-12-21 13:08:12 ERROR ::MAIN: A problem was reported in the nzbToMedia/nzbToSickBeard.py script.

alexandrezia commented 8 years ago

+1

gilly65 commented 8 years ago

yup, sickrage was updated and post processing is failing again, I still have it check the download directory so it eventually gets it.

rr0ss0rr commented 8 years ago

I'm not seeing it in the above log .. but is it displaying HTML? I'm also getting the issue. @gilly65 if the error is in the post processing, how does checking the download directory fix the issue? I've tried to open a new topic on sickrage's nzbtomedia support page but not no avail .. I post the topic and it never appears on the site.

gilly65 commented 8 years ago

I have sickrage set to check the d/l directory, nzbtomedia post processing fails but sickrage checks the directory periodically and when it finds something it processes it. the media gets to where I want it to be with no interaction, it just takes a few minutes longer is all.

clinton-hall commented 8 years ago

Which version of SickRage?

Can you show full debug logs? There should be a section where it attempts auto-fork detection and lists the found parameters etc.

myersam commented 8 years ago

Same issue here. Here is Sabnzbd log:

[17:55:58] [INFO]::MAIN: Loading config from [C:\SickRage\contrib\nzbToMedia\autoProcessMedia.cfg] [17:55:58] [INFO]::MAIN: Checking database structure... [17:55:58] [INFO]::MAIN: Checking if source needs an update [17:56:00] [ERROR]::MAIN: Unknown current version number, don't know if we should update or not [17:56:00] [INFO]::MAIN: nzbToMedia Version:10.13 Branch:master (Windows 8) [17:56:00] [WARNING]::MAIN: Failed to locate ffmpeg.exe. Transcoding disabled! [17:56:00] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ... [17:56:00] [WARNING]::MAIN: Failed to locate ffprobe.exe. Video corruption detection disabled! [17:56:00] [WARNING]::MAIN: Install ffmpeg with x264 support to enable this feature ... [17:56:00] [INFO]::MAIN: ######################################################### [17:56:00] [INFO]::MAIN: ## ..::[nzbToMedia.pyc]::.. ## [17:56:00] [INFO]::MAIN: ######################################################### [17:56:00] [INFO]::MAIN: Script triggered from SABnzbd [17:56:00] [INFO]::MAIN: Auto-detected SECTION:SickBeard [17:56:00] [INFO]::MAIN: Calling SickBeard:tv to post-process:Luther.S04E02.HDTV.x264-ORGANiC-Obfuscated.nzb [17:56:01] [INFO]::MAIN: Attempting to auto-detect tv fork [17:56:02] [INFO]::MAIN: SickBeard:tv fork auto-detection found custom params {} [17:56:02] [INFO]::MAIN: SickBeard:tv fork set to custom [17:56:02] [INFO]::MAIN: FLATTEN: Flattening directory: C:\Downloads\SickRage\Luther.S04E02.HDTV.x264-ORGANiC-Obfuscated [17:56:02] [POSTPROCESS]::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request [17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [POSTPROCESS]::SICKBEARD: Mako Runtime Error [17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [POSTPROCESS]::SICKBEARD:

Error !

[17:56:05] [POSTPROCESS]::SICKBEARD:

KeyError: 'proc_dir'

[17:56:05] [POSTPROCESS]::SICKBEARD:
[17:56:05] [POSTPROCESS]::SICKBEARD:

[17:56:05] [POSTPROCESS]::SICKBEARD: if k.lower() not in ['proc_dir', 'dir', 'nzbname', 'process_method', 'proc_type'] else v

[17:56:05] [POSTPROCESS]::SICKBEARD: ) for k, v in kwargs.items())

[17:56:05] [POSTPROCESS]::SICKBEARD: if not pp_options[b"proc_dir"]:

[17:56:05] [POSTPROCESS]::SICKBEARD: return self.redirect("/home/postprocess/")

[17:56:05] [POSTPROCESS]::SICKBEARD: result = processTV.processDir(pp_options[b"proc_dir"], **pp_options)

[17:56:05] [POSTPROCESS]::SICKBEARD: if pp_options.get("quiet", None):

[17:56:05] [POSTPROCESS]::SICKBEARD: return result [17:56:05] [POSTPROCESS]::SICKBEARD:

[17:56:05] [POSTPROCESS]::SICKBEARD:
[17:56:05] [POSTPROCESS]::SICKBEARD:
[17:56:05] [POSTPROCESS]::SICKBEARD:
C:\SickRage\sickbeard\webserve.py, line 2252:
[17:56:05] [POSTPROCESS]::SICKBEARD:

[17:56:05] [POSTPROCESS]::SICKBEARD:

[17:56:05] [POSTPROCESS]::SICKBEARD:
C:\SickRage\sickbeard\webserve.py, line 219:
[17:56:05] [POSTPROCESS]::SICKBEARD:

[17:56:05] [POSTPROCESS]::SICKBEARD:

return function(**kwargs)
[17:56:05] [POSTPROCESS]::SICKBEARD:
[17:56:05] [POSTPROCESS]::SICKBEARD:
[17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [POSTPROCESS]::SICKBEARD: [17:56:05] [ERROR]::MAIN: A problem was reported in the C:\SickRage\contrib\nzbToMedia\nzbToSickBeard.py script. SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!

rr0ss0rr commented 8 years ago

Thanks. I'm away until Tuesday and will send the logs then. But I did change detection from auto to sickrage and sickragetv with the same results. Is there a parameter to turn in debug?

--Richard

A clever person can solve a problem • A wise person will avoid creating the problem •• Einstein ••

On Dec 26, 2015, at 6:11 AM, Clinton Hall notifications@github.com wrote:

Which version of SickRage?

Can you show full debug logs? There should be a section where it attempts auto-fork detection and lists the found parameters etc.

— Reply to this email directly or view it on GitHub.

rr0ss0rr commented 8 years ago

Oh. Latest version of sickrage from the master branch

--Richard

A clever person can solve a problem • A wise person will avoid creating the problem •• Einstein ••

On Dec 26, 2015, at 6:11 AM, Clinton Hall notifications@github.com wrote:

Which version of SickRage?

Can you show full debug logs? There should be a section where it attempts auto-fork detection and lists the found parameters etc.

— Reply to this email directly or view it on GitHub.

rr0ss0rr commented 8 years ago

Here is the full log of the error with version info .. Debug log will need to wait till I return home

This is running on a Mac 10.11 with the latest nzbget master branch. I refresh nzbtomedia night so I can control the update (autoupdate is disabled). Since Mac OS 10.11 is rootless, the python2 env does not work in your scripts (can’t place the python2 link in /usr/bin), so I refresh nzbtomedia then run a perl update in place to change python2 to python. I think the issue came about with a update to nzbget (autoupdate is enabled)

Hope this helps

ERROR Wed Dec 23 2015 23:21:45 Post-process-script nzbToMedia/nzbToSickBeard.py for Jekyll.And.Hyde.S01E08.Moroll.720p.HDTV.x264-ORGANiC failed INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.! INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [ERROR]::MAIN: A problem was reported in the /Users/richard/NZBGet/scripts/nzbToMedia/nzbToSickBeard.py script. INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:

INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
return function(_kwargs)
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
/Applications/SickRage/sickbeard/webserve.py, line 221:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
if not pp_options[b"proc_dir"]:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
/Applications/SickRage/sickbeard/webserve.py, line 2242:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: return result INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: if pp_options.get("quiet", None): INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: result = processTV.processDir(pp_options[b"proc_dir"],
_pp_options) INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: return self.redirect("/home/postprocess/") INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: if not pp_options[b"proc_dir"]: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: ) for k, v in kwargs.items()) INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: if k.lower() not in ['proc_dir', 'dir', 'nzbname', 'process_method', 'proc_type'] else v INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:
INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:

KeyError: 'proc_dir'

INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD:

Error !

INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .sampleline { white-space:pre; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .highlight { white-space:pre; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .location { font-size:80%; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .sourceline { margin:5px 5px 10px 5px; font-family:monospace;} INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .sampleline { padding:0px 10px 0px 10px; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: font-family:monospace; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .sample { padding:10px; margin:10px 10px 10px 10px; INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .nonhighlight { padding:0px; background-color:#DFDFDF; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .highlight { padding:0px 10px 0px 10px; background-color:#9F9FDF; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: .stacktrace { margin:5px 5px 5px 5px; } INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: body { font-family:verdana; margin:10px 30px 10px 30px;} INFO Wed Dec 23 2015 23:21:45 nzbToSickBeard: [23:21:45] [POSTPROCESS]::SICKBEARD: INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .sampleline { white-space:pre; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .highlight { white-space:pre; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .location { font-size:80%; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .sourceline { margin:5px 5px 10px 5px; font-family:monospace;} INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .sampleline { padding:0px 10px 0px 10px; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: font-family:monospace; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .sample { padding:10px; margin:10px 10px 10px 10px; INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .nonhighlight { padding:0px; background-color:#DFDFDF; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .highlight { padding:0px 10px 0px 10px; background-color:#9F9FDF; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: .stacktrace { margin:5px 5px 5px 5px; } INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: body { font-family:verdana; margin:10px 30px 10px 30px;} INFO Sat Dec 26 2015 19:41:14 nzbToSickBeard: [19:41:14] [POSTPROCESS]::SICKBEARD: 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:

Error !

2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:

KeyError: 'proc_dir'

2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: if k.lower() not in ['proc_dir', 'dir', 'nzbname', 'process_method', 'proc_type'] else v 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: ) for k, v in kwargs.items()) 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: if not pp_options[b"proc_dir"]: 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: return self.redirect("/home/postprocess/") 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: result = processTV.processDir(pp_options[b"proc_dir"], pp_options) 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: if pp_options.get("quiet", None): 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: return result 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
C:\SickRage\sickbeard\webserve.py, line 2242:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
if not pp_options[b"proc_dir"]:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
C:\SickRage\sickbeard\webserve.py, line 221:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
return function(kwargs)
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD:
2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: 2015-12-27 12:42:10 POSTPROCESS::SICKBEARD: 2015-12-27 12:42:10 ERROR ::MAIN: A problem was reported in the C:\SickRage\contrib\nzbToMedia\nzbToSickBeard.py script.

clinton-hall commented 8 years ago

I have tested, and this is working fine at my end. I can reproduce this issue only when the user/pass are not set (or set incorrectly) in autoProcessMedia.cfg

[SickBeard]
    [[tv]]
         username =
         password =
rr0ss0rr commented 8 years ago

My SickBeard username and password are indeed blank (not set).. I can add one and see if that helps

Richard

A clever person can solve a problem • A wise person will avoid creating the problem •• Einstein ••

On Dec 27, 2015, at 3:57 PM, Clinton Hall notifications@github.com wrote:

I have tested, and this is working fine at my end. I can reproduce this issue only when the user/pass are not set (or set incorrectly) in autoProcessMedia.cfg

[SickBeard] [[tv]] username = password = — Reply to this email directly or view it on GitHub https://github.com/clinton-hall/nzbToMedia/issues/923#issuecomment-167440852.

rr0ss0rr commented 8 years ago

Added the HTTP Username and Password in SickRage and to NZBTOSICKBEARD in NZBGET and now am getting the correct error that my NAS is not attached .. Assuming this will also fix the issue when I return from holiday with the NAS attached .. Are you flagging this as a BUG or will you require that sickrage have a http username/password set?

Thanks .. Much Appreciated

myersam commented 8 years ago

Same here, no password set. Thanks for help. Strange that this always worked in past without a password.

Sent from my iPad

On Dec 27, 2015, at 4:47 PM, rr0ss0rr notifications@github.com wrote:

My SickBeard username and password are indeed blank (not set).. I can add one and see if that helps

Richard

A clever person can solve a problem • A wise person will avoid creating the problem •• Einstein ••

On Dec 27, 2015, at 3:57 PM, Clinton Hall notifications@github.com wrote:

I have tested, and this is working fine at my end. I can reproduce this issue only when the user/pass are not set (or set incorrectly) in autoProcessMedia.cfg

[SickBeard] [[tv]] username = password = — Reply to this email directly or view it on GitHub https://github.com/clinton-hall/nzbToMedia/issues/923#issuecomment-167440852.

— Reply to this email directly or view it on GitHub.

clinton-hall commented 8 years ago

I'll try and look into this. To be honest I didn't realize this actually worked without password in the past...

myersam commented 8 years ago

I can confirm that after I added username and password the script runs fine. Again thanks for your help in debugging.

rr0ss0rr commented 8 years ago

It was never required before and wouldn't have thought that this would be the problem without your help. Thanks ..

flyize commented 8 years ago

Is it possible that this is causing an issue back in SickRage as well? Every episode that has been post-processed with this bug shows 'snatched' if I actually view the show in SickRage. However, I can't find these 'snatched' shows if I try to search for them under 'episode status management'.

shredthegnar commented 8 years ago

Went into sickrage General configuration> interface and added http username and http password then went into autoProcessMedia.cfg and added the same username and password to the sickbeard section and saved. still expierencing the same issue. can anyone give some insight to what i may be doing wrong?

myersam commented 8 years ago

Not an expert by any means but, make sure you leave the quotes around username and password in .cfg file.  Also you need to reboot sickrage.

  From: shredthegnar <notifications@github.com>

To: clinton-hall/nzbToMedia nzbToMedia@noreply.github.com Cc: myersam myersam@yahoo.com Sent: Monday, December 28, 2015 10:35 AM Subject: Re: [nzbToMedia] All Sickrage post-processing failing (#923)

Went into sickrage General configuration> interface and added http username and http password then went into autoProcessMedia.cfg and added the same username and password to the sickbeard section and saved. still expierencing the same issue. can anyone give some insight to what i may be doing wrong?— Reply to this email directly or view it on GitHub.

clinton-hall commented 8 years ago

If using NZBGet, enter these is the web UI.

shredthegnar commented 8 years ago

Made the change to the .cfg and restarted sick rage and I'm still experiencing the same issue. Any other ideas?

clinton-hall commented 8 years ago

Can you post latest nzbToMedia log?

shredthegnar commented 8 years ago

2015-12-28 15:40:11 INFO ::MAIN: Loading config from [/usr/local/share/nzbToMedia/autoProcessMedia.cfg] 2015-12-28 15:40:11 INFO ::MAIN: Checking database structure... 2015-12-28 15:40:11 DEBUG ::MAIN: Checking Initial Schema database upgrade 2015-12-28 15:40:11 DEBUG ::MAIN: InitialSchema upgrade not required 2015-12-28 15:40:11 DEBUG ::MAIN: Checking if we can use git commands: git version 2015-12-28 15:40:11 DEBUG ::MAIN: Executing git version with your shell in /usr/local/share/nzbToMedia 2015-12-28 15:40:11 DEBUG ::MAIN: git version : returned successful 2015-12-28 15:40:11 DEBUG ::MAIN: Using: git 2015-12-28 15:40:11 DEBUG ::MAIN: Executing git symbolic-ref -q HEAD with your shell in /usr/local/share/nzbToMedia 2015-12-28 15:40:11 DEBUG ::MAIN: git symbolic-ref -q HEAD : returned successful 2015-12-28 15:40:11 INFO ::MAIN: Checking if git needs an update 2015-12-28 15:40:11 DEBUG ::MAIN: Executing git rev-parse HEAD with your shell in /usr/local/share/nzbToMedia 2015-12-28 15:40:11 DEBUG ::MAIN: git rev-parse HEAD : returned successful 2015-12-28 15:40:11 DEBUG ::MAIN: Executing git fetch origin with your shell in /usr/local/share/nzbToMedia 2015-12-28 15:40:11 DEBUG ::MAIN: git fetch origin : returned successful 2015-12-28 15:40:11 DEBUG ::MAIN: Executing git rev-parse --verify --quiet "@{upstream}" with your shell in /usr/local/share/nzbToMedia 2015-12-28 15:40:11 DEBUG ::MAIN: git rev-parse --verify --quiet "@{upstream}" : returned successful 2015-12-28 15:40:11 DEBUG ::MAIN: Executing git rev-list --left-right "@{upstream}"...HEAD with your shell in /usr/local/share/nzbToMedia 2015-12-28 15:40:11 DEBUG ::MAIN: git rev-list --left-right "@{upstream}"...HEAD : returned successful 2015-12-28 15:40:11 DEBUG ::MAIN: cur_commit = 77da142216ba6dc91bb654635d4bd03f13c881e5 % (newest_commit)= 3e4861e87c543a4d2debd8997feb16bda3ef5339, num_commits_behind = 55, num_commits_ahead = 0 2015-12-28 15:40:11 INFO ::MAIN: There is a newer version available (you're 55 commits behind) 2015-12-28 15:40:11 INFO ::MAIN: nzbToMedia Version:77da142216ba6dc91bb654635d4bd03f13c881e5 Branch:master (FreeBSD 9.1-RELEASE) 2015-12-28 15:40:11 WARNING ::MAIN: Failed to locate 7zip. Transcosing of disk images and extraction of .7z files will not be possible! 2015-12-28 15:40:11 DEBUG ::MAIN: Connecting to transmission: http://localhost:9091 2015-12-28 15:40:11 INFO ::MAIN: ######################################################### 2015-12-28 15:40:11 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ## 2015-12-28 15:40:11 INFO ::MAIN: ######################################################### 2015-12-28 15:40:11 DEBUG ::MAIN: Options passed into nzbToMedia: ['/usr/local/share/nzbToMedia/nzbToSickBeard.py', '/media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS', 'Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS.nzb', 'Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS', '', 'tv', 'alt.binaries.cores', '0'] 2015-12-28 15:40:11 INFO ::MAIN: Script triggered from SABnzbd 2015-12-28 15:40:11 DEBUG ::MAIN: Searching for nzoid from SAbnzbd ... 2015-12-28 15:40:11 DEBUG ::MAIN: Adding NZB download info for directory /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS to database 2015-12-28 15:40:11 INFO ::MAIN: Auto-detected SECTION:SickBeard 2015-12-28 15:40:11 DEBUG ::MAIN: Checking for archives to extract in directory: /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS 2015-12-28 15:40:11 INFO ::MAIN: Calling SickBeard:tv to post-process:Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS.nzb 2015-12-28 15:40:11 INFO ::MAIN: Attempting to auto-detect tv fork 2015-12-28 15:40:12 INFO ::MAIN: SickBeard:tv fork auto-detection found custom params {'failed': None, 'force': None, 'process_method': None} 2015-12-28 15:40:12 INFO ::MAIN: SickBeard:tv fork set to custom 2015-12-28 15:40:12 DEBUG ::MAIN: calling command: /usr/local/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /usr/local/share/nzbToMedia/tests/test.mp4 2015-12-28 15:40:12 INFO ::TRANSCODER: Checking [ALKqPhX6uOAafhvNzqkXBH6OQmXYxggN4fPRK5TyIvv.mkv] for corruption, please stand by ... 2015-12-28 15:40:12 DEBUG ::MAIN: calling command: /usr/local/bin/ffprobe -v quiet -print_format json -show_format -show_streams -show_error /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS/ALKqPhX6uOAafhvNzqkXBH6OQmXYxggN4fPRK5TyIvv.mkv 2015-12-28 15:40:12 INFO ::TRANSCODER: SUCCESS: [ALKqPhX6uOAafhvNzqkXBH6OQmXYxggN4fPRK5TyIvv.mkv] has no corruption. 2015-12-28 15:40:12 DEBUG ::EXCEPTION: Replacing file name ALKqPhX6uOAafhvNzqkXBH6OQmXYxggN4fPRK5TyIvv with directory name Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS 2015-12-28 15:40:12 DEBUG ::EXCEPTION: Replacing file name /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS/ALKqPhX6uOAafhvNzqkXBH6OQmXYxggN4fPRK5TyIvv.mkv with download name /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS.mkv 2015-12-28 15:40:12 INFO ::MAIN: FLATTEN: Flattening directory: /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS 2015-12-28 15:40:12 DEBUG ::MAIN: Checking for empty folders in:/media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS 2015-12-28 15:40:12 INFO ::MAIN: FLATTEN: Flattening directory: /media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS 2015-12-28 15:40:12 DEBUG ::MAIN: Checking for empty folders in:/media/Downloads/sabnzbd/Complete/tv/Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: SUCCESS: The download succeeded, sending a post-process request 2015-12-28 15:40:12 DEBUG ::SICKBEARD: Opening URL: http://localhost:8081/home/postprocess/processEpisode with params: {'nzbName': 'Limitless.S01E05.1080p.WEB-DL.DD5.1.H.264-KiNGS.nzb', 'quiet': 1, 'failed': '0'} 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: Mako Runtime Error 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:

Error !

2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:

KeyError: 'proc_dir'

2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: if k.lower() not in ['proc_dir', 'dir', 'nzbname', 'process_method', 'proc_type'] else v 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: ) for k, v in kwargs.items()) 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: if not pp_options[b"proc_dir"]: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: return self.redirect("/home/postprocess/") 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: result = processTV.processDir(pp_options[b"proc_dir"], pp_options) 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: if pp_options.get("quiet", None): 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: return result 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/webserve.py, line 2242:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
if not pp_options[b"proc_dir"]:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
/usr/pbi/sickrage-amd64/share/sickrage/SickRage/sickbeard/webserve.py, line 221:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
return function(kwargs)
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD:
2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 POSTPROCESS::SICKBEARD: 2015-12-28 15:40:12 ERROR ::MAIN: A problem was reported in the /usr/local/share/nzbToMedia/nzbToSickBeard.py script.

rr0ss0rr commented 8 years ago

Did to restart your downloader? nzbget or sabnzbd? Looks like it didn't take the username/passowrd. If using nzbget, add the username/password through the nzbget gui per clinton-hall

cannfoddr commented 8 years ago

I have the same problem was working then was not. I did pull a Sickrage update that messed with password authentication for a while but I have pulled the update that seems to have fixed that. I checked my config and I have:

[SickBeard]

autoProcessing for TV Series

#### tv - category that gets called for post-processing with SB
[[tv]]
    enabled = 1
    host = localhost
    port = 8083
    username = ""
    password = ""

This is unchanged from the configuration that was previously working fine.

I could try setting a real username and password but I don't really want to.....

Suggestions?

myersam commented 8 years ago

cannfoddr, you now have to set a username and password for it to work. It really has no impact on your use. Just put anything you want in SickRage, reboot and then add this to .cfg file (in berween the quotes)

flyize commented 8 years ago

How does adding a u/p have no effect on my use?

shredthegnar commented 8 years ago

.cfg file does not keep the quotes. I added a password to sickrage, restarted. added password to .cfg file (in between quotes). saved and closed .cfg. reopened to check they were still there. Restarted sabnzbd. started download and still had same error. checked .cfg file after failed post processing and the quotes were gone.

gilly65 commented 8 years ago

I've never used a U/P and don't really have a need to, I'd prefer to keep it that way myself...

I just tell my programs to regularly check the download folders, if I have to increase the frequency of that, no big deal either. I may try sabnzbd at some point to see if it does any better but for now this works as is.

myersam commented 8 years ago

flyize, I'm no expert nor do I understand your setup. But for me, adding the username/password had zero impact as SickRage still automatically does all in conjunction with NZBtoMedia (i'm using SABnzbd so maybe that is the difference). So for me I added the username and password and what wasn't working now is. I don't use any remote login so maybe that is where the username and password would impact you?? The Author of this great program has verified above that you need the username and password. Sorry I can't be of any help.

flyize commented 8 years ago

Ahhh, I use it remotely (on LAN) and really don't want to have to use u/p unless its totally required. Is there actually no way around that @clinton-hall?

drglove commented 8 years ago

I'm having the same issue, and would prefer to not have a username/password.

clinton-hall commented 8 years ago

I need time to investigate this... the code at my end handles the post differently when user/pass exists, and when they don't. In theory this should (and previously did) work... so I am not sure exactly what has changed to cause this.

Is this happening with http://github.com/SiCKRAGETV/SickRage or http://github.com/sickrage/sickrage ?

drglove commented 8 years ago

I'm seeing this on https://github.com/SiCKRAGETV/SickRage/commit/9226ba5efba06fb9defc5272f03dae5d6d1c4145. I'll try SickRage.

Not sure if it's related, but the message of that commit is "HOTFIX: Fixed bug that was causing login screen to display when no user/pass was set in config"

drglove commented 8 years ago

@clinton-hall This bug is not present on https://github.com/SickRage/SickRage/commit/aadeac6c7c1afe6a11cfb803cbda75b56e921940 with the same config (no user/password set).

cannfoddr commented 8 years ago

I think something changed in Sickrage not here

Sent from my iPhone

On 29 Dec 2015, at 20:29, Nick Lange notifications@github.com wrote:

@clinton-hall This bug is not present on SickRage/SickRage@aadeac6 with the same config (no user/password set).

— Reply to this email directly or view it on GitHub.

rr0ss0rr commented 8 years ago

It started with a sickragetv update 7-10 days ago

afraguela commented 8 years ago

Ok, I've just had this issue and setting a username and password in SickRage and then amending my autoProcessMedia.cfg with it solved the issue.

cannfoddr commented 8 years ago

I have been doing some manual runs with a watch dir to try and track this further. Interestingly they seem to work and I don't see the error.

Just tried adding the username and password to sickrage and autoprocessMedia.cfg. Did a restart and now I am getting the same error in manual runs.

Removing the username and password makes no difference I now see the error with and without the username password in place.

shredthegnar commented 8 years ago

Are the quotes supposed to remain around the password in the .cfg file.

rr0ss0rr commented 8 years ago

Mine does not have the quotes .. You may want to try the sickrage/sickrage fork .. someone mentioned that version does not have this issue

shredthegnar commented 8 years ago

i am using a freenas system. Would it be simple to switch to the sickrage/sickrage fork?

rr0ss0rr commented 8 years ago

The developers were extremely helpful with any installation questions .. Just head over to their issue tracker on github for help

shredthegnar commented 8 years ago

Thanks for your help. Did a little research and it looks like people are saying sickrage is the official repo now and not sickragetv. Is that the case? Not sure why I was using sickrage tv.

rr0ss0rr commented 8 years ago

It seems that there was a defection of most of the developers from sickragetv to sickrage. You can probably find more on the web on what happened. But I made the switch to sickrage.