nzbToMedia for NZBGet V11+

Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
hildebrau
Posts: 4
Joined: 21 Oct 2014, 21:32

Re: upgrading mono on debian/ubuntu for SSL w/ intermediate

Post by hildebrau » 23 Oct 2014, 22:16

Ok.. just to close the loop on this a little bit.. this was a bug in mono.. I'm posting this here and in the sonarr.tv forums in case others run into issues and look in either place.

I found a repository that has up to date mono releases built.. I did jump through some hoops before I found this out, so what I'm outlining below isn't the exact process I went through.. but it is what I think will work for someone else if anyone is having SSL troubles w/ nzbdrone.

Add this repo to debian/ubuntu:
sudo add-apt-repository ppa:inizan-yannick/mono
sudo apt-get update
sudo apt-get upgrade

That should update mono to 3.10 (or newer) (which looks older than the stock ubuntu package, but apparently the decimal system doesn't mean anything in versioning.. 3.10 is > 3.2 believe it or not..

Then you can TRY firing up nzbdrone and seeing if openssl reports a proper cert via this test:
openssl s_client -host localhost -port <sslport>

As mentioned before, this is not the exact path I took.. so if that doesn't work right off the bat, you can try these two things..
1) rerun the httpcfg step @ https://github.com/NzbDrone/NzbDrone/wi ... inux--os-x to see if the updated mono/httpcfg will fix your cert install
OR
2) follow the linux instructions on http://help.screenconnect.com/SSL_certi ... stallation which is just another application that uses "mono" and had similar issues.. they patched their version of mono (which you just did above) and then they run this exe from http://help.screenconnect.com/images/f/ ... urator.zip, which is a package of CMD scripts that needs to be run on a Windows box. To run that, drop your private key in your current directory (on windows) and name it ScreenConnectPrivateKey.key and have your third party signed cert in the same current directory named with a .CER extension (not .CERT or anything else).. then follow the script's prompts to set your current directory and doing the linux path and then the 3rd step to build a linux package for your cert. I forget how they worded it exactly. You'll end up with a ScreenConnectSslFiles.tar.gz tarball that you can transfer back to your linux box and untar it, then rsync (or whatever recursive copy/move method you desire) the .mono subdirectory out of the App_Runtime/etc/ path prefix over to where ever your nzbdrone/sonarr .mono directory tree is.. if you run nzbdrone on a port other than 443, you'll need to go rename the two port files in .mono/httplistener from 443.* to whatever.*..

That should be it.. just restart nzbdrone/sonarr afterwards and rerun the openssl test.. It worked for me.. I did the ScreenConnect script step first and it didn't work because my mono version was too old.. then after upgrading mono, it works wonderfully. If you have/had this issue, please report back if you had to do the ScreenConnect step or not.

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 24 Oct 2014, 01:17

Thanks for posting the fix...
Sorry you had such a hard time with this setup... but good work...

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 19 Nov 2014, 23:03

Hi All,

I have removed ResetDateTime and DeleteSamples from nzbToMedia
These scripts, along with a few others I have put together, are now available from https://github.com/clinton-hall/GetScripts

This should work better fro those using these scripts who are not using all of nzbToMedia (and nzbToMedia scripts themselves accomplish these same functions anyway).

naan
Posts: 17
Joined: 11 Jun 2013, 14:21

Re: nzbToMedia for NZBGet V11+

Post by naan » 22 Nov 2014, 19:33

I looked through this thread but couldn't find the my answer so..

What would be the minimum required components from your script to just run nzotosickbeard ? I'd like to remove most other scripts which I don't use like gamez, headphones and so on to keep my nzbget settings page a bit less cluttered.

Thanks in advance!

hugbug
Developer & Admin
Posts: 7417
Joined: 09 Sep 2008, 11:58
Location: Germany

Re: nzbToMedia for NZBGet V11+

Post by hugbug » 22 Nov 2014, 19:43

Remove all py-files from the root folder of nzbtomedia (except for the script you want to keep) and don't remove any files (which may be required).

There is a feature request to provide an ability to hide unwanted scripts from web ui settings but it's not implemented yet.

naan
Posts: 17
Joined: 11 Jun 2013, 14:21

Re: nzbToMedia for NZBGet V11+

Post by naan » 23 Nov 2014, 16:54

Seems to work! Thanks for your reply.

jstraw4663
Posts: 2
Joined: 28 Nov 2014, 23:27

Re: nzbToMedia for NZBGet V11+

Post by jstraw4663 » 28 Nov 2014, 23:39

I have a question regarding using this with Sonarr on OSX using NZBGet 14.0. I am having an issue with the script not recognizing FFMPEG and FFPROBE, I have tried messing with the file path in the autoProcessMedia.cfg file and I can't seem to get it to work.

Currently my ffmpeg, ffprobe, and ffserver executables are located in /Users/Mac Mini/Server/FFMPEG/

I have tried messing with the file path for the config file and these are two different options I've tried:

File Path: /Users/Mac Mini/Server/FFMPEG
http://pastebin.com/a8yF1J2U

File Path: /Users/Mac Mini/Server/
http://pastebin.com/QiiummUM

It seems like in the second log file it located ffmpeg but it didn't locate ffprobe Does anyone have any ideas?

On a side note, I know my ffmpeg install is correct because I am using the script linked below with sabnzbd currently and it works fine but I am looking to switch over to NZBGet
https://github.com/mdhiggins/sickbeard_mp4_automator

clintonhall
Posts: 449
Joined: 15 Dec 2012, 01:52
Location: Australia
Contact:

Re: nzbToMedia for NZBGet V11+

Post by clintonhall » 28 Nov 2014, 23:52

What are the permissions/owner of the ffmpeg path and binaries? What user runs NZBGet?

The easiest way to do this is to ignore the ffmpeg_path in autoProcessMedia.cfg and just ensure this path is exported to PATH in your NZBGet init script...

In anycase, your first setting looks correct, but if nzbToMedia can't find it, it suggest permissions issues.

jstraw4663
Posts: 2
Joined: 28 Nov 2014, 23:27

Re: nzbToMedia for NZBGet V11+

Post by jstraw4663 » 29 Nov 2014, 00:54

Thank you so much! I don't know why I didn't think of that but that seems to work!

noxy
Posts: 11
Joined: 27 Oct 2013, 18:21

Re: nzbToMedia for NZBGet V11+

Post by noxy » 30 Nov 2014, 20:49

getting pp failures but it seems to move the file but this comes up

INFO Sun Nov 30 2014 21:08:07 DeleteSamples: Script triggered from NZBGet Version 14.1.
INFO Sun Nov 30 2014 21:07:50 Executing post-process-script DeleteSamples.py for xxxxx
ERROR Sun Nov 30 2014 21:07:50 Post-process-script nzbToSickBeard.py for xxxxx
INFO Sun Nov 30 2014 21:07:49 nzbToSickBeard: SickBeard: Failed to post-process - Returned log from SickBeard was not as expected.!
INFO Sun Nov 30 2014 21:07:49 nzbToSickBeard: [21:07:49] [ERROR]::MAIN: A problem was reported in the /volume1/@appstore/nzbget/share/nzbget/scripts/nzbToMedia/nzbToSickBeard.py script.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests