[FreeNAS 9 Plugins] - SAB / SB / CP / HP / Maraschino / HTPC / Mylar / LL / Gamez

Status
Not open for further replies.

Ryan Beall

Dabbler
Joined
Mar 8, 2014
Messages
26
I'm having issues with the SabNZBD post processing using sabtosickbeard.py. I'm fairly certain it has to do with my folder path in categories not being correct. I fixed this about 2 months ago with my initial setup and I just updated SAB and now for the life of my I can't remember what I did.

SABnzbd 0.7.17 installed and working fine
I installed Sickbeard on the same jail using your pbi

I added a storage to the jail under /mnt directly to my media folder (/mnt/FreeNAS/Media_Server/Server)
Then in SABnzbd under categories I put the "folder/path" for the sabtosickbeard.py script as /mnt/TV.

It pops the Exit(127) env: python: No such file or directory. But the interesting thing is..... It puts the tvshow downloaded into a folder in that directory (not in the correct one but in one that isn't renamed). So the move part of the script is getting the file close to the correct place but it isn't renaming it or putting it into the sub folders.

I've tried a couple different paths etc but I'm simply missing something. I'm not sure if it is going to the jail's mnt or freensa's mnt? Could it be permissions. Sab and SB are on the same jail? Thoughts?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
this doesn't sound like a freenas specific issue.

you can see the steps I use to setup my system on my blog, it may help. Google 'jruehlig freenas'
 

Ryan Beall

Dabbler
Joined
Mar 8, 2014
Messages
26
Turns out it was sort of a FreeNAS problem. You have to change the python that sabtosickbeard.py uses to 2.7:

configure the python location in sabToSickBeard.py to #!/usr/local/bin/python2.7.

So the standard script that comes with your sick beard pbi is incorrect per FreeNAS.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Turns out it was sort of a FreeNAS problem. You have to change the python that sabtosickbeard.py uses to 2.7:

configure the python location in sabToSickBeard.py to #!/usr/local/bin/python2.7.

So the standard script that comes with your sick beard pbi is incorrect per FreeNAS.
I guess it's a FreeBSD compatibility issue.
The script assumes 'python' is available, but for the last few months FreeBSD has been distributing it version specific, though you can still install the meta-port 'python' which by default links to python2.7

If I were you I wouldn't change the code in the scripts because updates may overwrite that in the future. I recommend you install python system wide instead.
Code:
pkg install python
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Joshua I was wondering if I wanted to add Headphones in the same jail that Sab + Sick and Couch are, I should modify the 'nginx.conf' by adding the following line:

Code:
location ^~ /headphones {
        proxy_pass http://127.0.0.1:8181;


And in 'autoProcessMedia.cfg' I would not do anything, right?

Thanks for your attention
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I haven't used headphones before but that sounds correct. to setup post processing you may want to edit autoProcessMedia.cfg
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Thanks for your reply Joshua!

In 'autoProcessMedia.cfg' the fields I have are:

Code:
[HeadPhones]
hpCategory = music
apikey =
host = localhost
port = 8181
ssl = 0
web_root =
delay = 65 


So, before I wrote that might not have to change anything ... maybe 'web_root = / headphones' or I do not need it either?

Now, for the Sab, Transmission and Head linking each other I did:

Code:
mkdir -p /mnt/media/downloads/sabnzbd/complete/music
/mnt/media/downloads/transmission/complete/music
/mnt/media/music 


After that chowned 'chown -R media:media' these 3 new folders, right?

Something I should do more? Or something that should NOT have done? :confused:

Thank you very much
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks for your reply Joshua!

In 'autoProcessMedia.cfg' the fields I have are:

Code:
[HeadPhones]
hpCategory = music
apikey =
host = localhost
port = 8181
ssl = 0
web_root =
delay = 65 


So, before I wrote that might not have to change anything ... maybe 'web_root = / headphones' or I do not need it either?

Now, for the Sab, Transmission and Head linking each other I did:

Code:
mkdir -p /mnt/media/downloads/sabnzbd/complete/music
/mnt/media/downloads/transmission/complete/music
/mnt/media/music 


After that chowned 'chown -R media:media' these 3 new folders, right?

Something I should do more? Or something that should NOT have done? :confused:

Thank you very much
Sounds like you are on the right path. I recommend you check the nzbToMedia wiki on github. It should go over everything for headphones (which I don't have any experience with).
 

neto_hugo

Explorer
Joined
Mar 6, 2012
Messages
87
Unfortunately it is not working by doing everything I mentioned before...
Sab is returning the information:
Code:
15:45:53|INFO    ====================
15:45:53|INFO    nzbToHeadPhones V9.2
15:45:53|INFO    MAIN: Script triggered from SABnzbd, starting autoProcessMusic...
15:45:53|INFO    Loading config from /usr/local/share/nzbToMedia/autoProcessMedia.cfg
15:45:53|INFO    Waiting for 0.0 seconds to allow HeadPhones to process newly extracted files
15:45:53|ERROR  Unable to open URL
Traceback (most recent call last):
  File "/usr/local/share/nzbToMedia/autoProcess/autoProcessMusic.py", line 74, in process
    urlObj = urllib.urlopen(url)
  File "/usr/local/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/usr/local/lib/python2.7/urllib.py", line 208, in open
    return getattr(self, name)(url)
  File "/usr/local/lib/python2.7/urllib.py", line 345, in open_http
    h.endheaders(data)
  File "/usr/local/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/local/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/local/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/usr/local/lib/python2.7/httplib.py", line 772, in connect
    self.timeout, self.source_address)
  File "/usr/local/lib/python2.7/socket.py", line 571, in create_connection
    raise err
IOError: [Errno socket error] [Errno 61] Connection refused
15:45:53|INFO    MAIN: A problem was reported in the autoProcessMusic script.


I will continue researching about nzbToMedia wiki on github ..

But so far I get SAB downloading, Headphones renaming as I want and notify on NMA but not putting the folder that I want as well as makes for Sick on /mnt/media/videos/tvshows and Couch to /mnt/media/movies ...

Thank you guys
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Unfortunately it is not working by doing everything I mentioned before...
Sab is returning the information:
Code:
15:45:53|INFO    ====================
15:45:53|INFO    nzbToHeadPhones V9.2
15:45:53|INFO    MAIN: Script triggered from SABnzbd, starting autoProcessMusic...
15:45:53|INFO    Loading config from /usr/local/share/nzbToMedia/autoProcessMedia.cfg
15:45:53|INFO    Waiting for 0.0 seconds to allow HeadPhones to process newly extracted files
15:45:53|ERROR  Unable to open URL
Traceback (most recent call last):
  File "/usr/local/share/nzbToMedia/autoProcess/autoProcessMusic.py", line 74, in process
    urlObj = urllib.urlopen(url)
  File "/usr/local/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/usr/local/lib/python2.7/urllib.py", line 208, in open
    return getattr(self, name)(url)
  File "/usr/local/lib/python2.7/urllib.py", line 345, in open_http
    h.endheaders(data)
  File "/usr/local/lib/python2.7/httplib.py", line 969, in endheaders
    self._send_output(message_body)
  File "/usr/local/lib/python2.7/httplib.py", line 829, in _send_output
    self.send(msg)
  File "/usr/local/lib/python2.7/httplib.py", line 791, in send
    self.connect()
  File "/usr/local/lib/python2.7/httplib.py", line 772, in connect
    self.timeout, self.source_address)
  File "/usr/local/lib/python2.7/socket.py", line 571, in create_connection
    raise err
IOError: [Errno socket error] [Errno 61] Connection refused
15:45:53|INFO    MAIN: A problem was reported in the autoProcessMusic script.


I will continue researching about nzbToMedia wiki on github ..

But so far I get SAB downloading, Headphones renaming as I want and notify on NMA but not putting the folder that I want as well as makes for Sick on /mnt/media/videos/tvshows and Couch to /mnt/media/movies ...

Thank you guys
You might want to look into setting the API key? Also, this isn't the best place for this and I if almost no experience with Headphones.
 

Viper780

Dabbler
Joined
Mar 8, 2014
Messages
19
i'm heaving problem with the login - my set password won't work - how can i edit it?
i didn't find an sabnzbd.ini or config.ini like in the FAQ
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
i'm heaving problem with the login - my set password won't work - how can i edit it?
i didn't find an sabnzbd.ini or config.ini like in the FAQ
I believe it is in /var/db/sabnzbd/sabnzbd.ini
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
im getting this error on post proc "ImportError: No module named _sqlite3"
strange, what script was doing it the post-processing?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
did you 'pkg install python'?
 

i3luefire

Explorer
Joined
Jan 4, 2014
Messages
69
yes. it was part of the instructions "pkg install git nginx python" i followed from the internet
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yes. it was part of the instructions "pkg install git nginx python" i followed from the internet
hmm, you could try running 'python', then try to import sqlite3 and see what comes up
 

i3luefire

Explorer
Joined
Jan 4, 2014
Messages
69
Code:
>>> import sqlite3                                                             
Traceback (most recent call last):                                             
  File "<stdin>", line 1, in <module>                                         
  File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>   
    from dbapi2 import *                                                       
  File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in <module>     
    from _sqlite3 import *                                                     
ImportError: No module named _sqlite3 
 
Status
Not open for further replies.
Top