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

NzbDrone: Server did not respond #614

Closed Mirabis closed 9 years ago

Mirabis commented 9 years ago

2014-11-12 07:33:24 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ## 2014-11-12 07:33:24 INFO ::MAIN: ######################################################### 2014-11-12 07:33:24 DEBUG ::MAIN: Options passed into nzbToMedia: ['C:\Program Files (x86)\NZBGet\scripts\nzbToNzbDrone.py', '*'] 2014-11-12 07:33:24 INFO ::MAIN: Script triggered from NZBGet Version 13.0. 2014-11-12 07:33:24 DEBUG ::MAIN: Adding NZB download info for directory M:\tmp\nzbget\nzbdrone\The.Ultimate.Fighter.S20E02.720p.HDTV.x264-KYR to database 2014-11-12 07:33:24 INFO ::MAIN: Auto-detected SECTION:NzbDrone 2014-11-12 07:33:24 INFO ::MAIN: Calling NzbDrone:nzbdrone to post-process:The.Ultimate.Fighter.S20E02.720p.HDTV.x264-KYR 2014-11-12 07:33:25 ERROR ::NZBDRONE: Server did not respond. Exiting 2014-11-12 07:33:25 ERROR ::MAIN: A problem was reported in the C:\Program Files (x86)\NZBGet\scripts\nzbToNzbDrone.py script.

But the port, host and api key are correct :( Tried looking into the log and settings more but couldn't find the issue. Happens with every download for NzbDrone.

clinton-hall commented 9 years ago

can you confirm the settings you have in NZBGet web ui, nzbToMedia? don't worry about user/pass, but confirm the host and port etc.

Mirabis commented 9 years ago

NZBGet Settings: Host: localhost Port: 8082 Root: /nzbdrone SSL: off

NzbDrone Settings: Host: localhost Port: 8082 Url Base: /nzbdrone Authentication: on

Api keys are same and the username/pw don't really matter.

clinton-hall commented 9 years ago

and what happens when you navigate to http://localhost:8082/nzbdrone without authenticating?

I might need to add some more logging to see what error condition is happening here...

Mirabis commented 9 years ago

Sorry for late response:

localhost:8082/nzbdrone asks for a verification : username / password. --cancelling it leaves me at a blanc page

Mirabis commented 9 years ago

Any idea on how to fix it?

Mirabis commented 9 years ago

2014-11-17 13:27:27 INFO ::MAIN: ## ..::[nzbToMedia.pyc]::.. ## 2014-11-17 13:27:27 INFO ::MAIN: ######################################################### 2014-11-17 13:27:27 INFO ::MAIN: Script triggered from NZBGet Version 14.0. 2014-11-17 13:27:27 INFO ::MAIN: Auto-detected SECTION:NzbDrone 2014-11-17 13:27:27 INFO ::MAIN: Calling NzbDrone:tv to post-process:Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD 2014-11-17 13:27:28 INFO ::MAIN: Attempting to verify tv fork 2014-11-17 13:27:28 INFO ::MAIN: NzbDrone:tv fork set to default 2014-11-17 13:27:28 INFO ::TRANSCODER: Checking [Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv] for corruption, please stand by ... 2014-11-17 13:27:28 INFO ::TRANSCODER: SUCCESS: [Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv] has no corruption. 2014-11-17 13:27:41 ERROR ::SUBTITLES: Failed to download subtitles for M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv 2014-11-17 13:27:41 INFO ::MAIN: FLATTEN: Flattening directory: M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD 2014-11-17 13:27:41 INFO ::MAIN: FLATTEN: Flattening directory: M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD 2014-11-17 13:27:41 POSTPROCESS::NZBDRONE: SUCCESS: The download succeeded, sending a post-process request 2014-11-17 13:27:41 INFO ::MAIN: Checking for files to be transcoded 2014-11-17 13:27:41 INFO ::MAIN: Extracting eng subtitle from: M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv 2014-11-17 13:27:43 INFO ::MAIN: Extracting eng subtitle from M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv has succeeded 2014-11-17 13:27:43 INFO ::MAIN: Transcoding video: M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD-transcoded.mkv 2014-11-17 13:27:44 ERROR ::MAIN: Transcoding of video to M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD-transcoded.mkv failed 2014-11-17 13:27:44 ERROR ::NZBDRONE: FAILED: Transcoding failed for files in M:\tmp\nzbget\nzbdrone\Two.and.a.Half.Men.S12E03.Glamping.in.a.Yurt.1080p.WEB-DL.DD5.1.H.264-CtrlHD 2014-11-17 13:27:44 ERROR ::MAIN: A problem was reported in the C:\Program Files (x86)\NZBGet\scripts\nzbToNzbDrone.py script.

After changing the category in nzbget and nzbdrone to tv, it seems to pick it up fine... something with the category/settings file not liking nzbdrone as category.

Mirabis commented 9 years ago

[Transcoder]

getsubs. enable to download subtitles.

getSubs = 1
# subLanguages. create a list of languages in the order you want them in your subtitles. 
subLanguages = "eng,nld,ned"
# transcode. enable to use transcoder
transcode = 1
###### duplicate =1 will cretae a new file. =0 will replace the original
duplicate = 0
# concat. joins cd1 cd2 etc into a single video.
concat = 1
ignoreExtensions = .exe
# outputFastStart. 1 will use -movflags + faststart. 0 will disable this from being used.
outputFastStart = 1
# outputQualityPercent. used as -q:a value. 0 will disable this from being used.
outputQualityPercent = 0
# outputVideoPath. Set path you want transcoded videos moved to. Leave blank to disable.
outputVideoPath = ""
# processOutput. 1 will send the outputVideoPath to SickBeard/CouchPotato. 0 will send original files.
processOutput = 1
# audioLanguage. set the 3 letter language code you want as your primary audio track.
audioLanguage = eng
# allAudioLanguages. 1 will keep all audio tracks (uses AudioCodec3) where available.
allAudioLanguages = 1
# allSubLanguages. 1 will keep all exisiting sub languages. 0 will discare those not in your list above.
allSubLanguages = 0
# embedSubs. 1 will embded external sub/srt subs into your video if this is supported.
embedSubs = 0
# burnInSubtitle. burns the default sub language into your video (needed for players that don't support subs)
burnInSubtitle = 0
# extractSubs. 1 will extract subs from the video file and save these as external srt files.
extractSubs = 1
# externalSubDir. set the directory where subs should be saved (if not the same directory as the video)
externalSubDir = ""
# hwAccel. 1 will set ffmpeg to enable hardware acceleration (this requires a recent ffmpeg)
hwAccel = 0
# generalOptions. Enter your additional ffmpeg options here with commas to separate each option/value (i.e replace spaces with commas).
generalOptions = ""
# outputDefault. Loads default configs for the selected device. The remaining options below are ignored.
# If you want to use your own profile, leave this blank and set the remaining options below.
# outputDefault profiles allowed: iPad, iPad-1080p, iPad-720p, Apple-TV2, iPod, iPhone, PS3, xbox, Roku-1080p, Roku-720p, Roku-480p, mkv
outputDefault = None
#### Define custom settings below.
outputVideoExtension = .mkv
outputVideoCodec = libx264
VideoCodecAllow = "libx264,h264,h.264,mpeg4,msmpeg4,MPEG-4"
outputVideoPreset = medium
outputVideoResolution = 1920:1080
outputVideoFramerate = 24
outputVideoBitrate = ""
outputAudioCodec = libfdk_aac
AudioCodecAllow = "libfaac,libfdk_aac,aac"
outputAudioChannels = 6
outputAudioBitrate = ""
outputAudioTrack2Codec = libfaac
AudioCodec2Allow = "libfaac,libfdk_aac,aac"
outputAudioTrack2Channels = 2
outputAudioTrack2Bitrate = ""
outputAudioOtherCodec = libmp3lame
AudioOtherCodecAllow = "mp3,libmp3lame,libfaac,libfdk_aac,aac,libmp3lame,ac3"
outputAudioOtherChannels = ""
outputAudioOtherBitrate = ""
outputSubtitleCodec = mov_text

Not specifying bitrates, as u said that would leave them as is right? I have custom install of ffmpeg with libfdk_aac etc enabled.. works fine from command line

clinton-hall commented 9 years ago

so what was the final ffmpeg command that nzbToMedia tried to run? you need to enable debug logging to see the command thatis used.

Mirabis commented 9 years ago

C:\ffmpeg\ffmpeg.exe -loglevel warning -hwaccel auto -i M:\tmp\nzbget\nzbdrone\The.Ultimate.Fighter.S20E08.iNTERNAL.720p.HDTV.x264-KOENiG\The.Ultimate.Fighter.S20E08.iNTERNAL.720p.HDTV.x264-KOENiG.mkv -map 0:0 -map 0:1 -map 0:1 -c:v libx264 -r 24.0 -vf scale=-1:1080 -c:a:0 libfdk_aac -b:a:0 384000 -c:a:1 libfaac -b:a:1 192000 -sn -movflags +faststart M:\tmp\nzbget\nzbdrone\The.Ultimate.Fighter.S20E08.iNTERNAL.720p.HDTV.x264-KOENiG\The.Ultimate.Fighter.S20E08.iNTERNAL.720p.HDTV.x264-KOENiG-transcoded.mkv

Mirabis commented 9 years ago

You may close this ticket, seems unrelated to the transcoding. NzbDrone responds fine now :)