SABnzbd/SickRage/CouchPotato/Transmission In One Jail

Status
Not open for further replies.

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
Edit: seems to work now, didn't realize that I had to run portsnap fetch extract first before I could compile the ports.

I'm brand new to FreeNAS/FreeBSD, I set up my own server about 2 weeks ago and I'm slowly getting the hang of it. I'm not really new to RAID or Unix-like OSes considering I've been using Linux for about a decade and have had a software RAID 5 array setup for over a year.

After switching everything over to FreeNAS and installing my plugins, I noticed that each plugin is in it's own jail, which is good for some things, but not so good for others. I tried to live with it at first but trying to get post-processing with nzbToMedia and other things was quickly becoming confusing. What I'd like to do is put all my Usetnet stuff in one jail, I know it's possible and I have a basic FreeBSD jail setup, but I went to go install the SABnzbd port it breaks while trying to patch py-setuptools.

Code:
===> Fetching all distfiles required by py27-setuptools27-5.5.1 for building
===>  Extracting for py27-setuptools27-5.5.1
=> SHA256 Checksum OK for python/setuptools-5.5.1.tar.gz.
===>  Patching for py27-setuptools27-5.5.1
===>  Applying FreeBSD patches for py27-setuptools27-5.5.1
Ignoring previously applied (or reversed) patch.
2 out of 2 hunks ignored--saving rejects to pkg_resources.py.rej
=> Patch patch-pkg_resources failed to apply cleanly.
*** [do-patch] Error code 1

Stop in /usr/ports/devel/py-setuptools27.
*** [build-depends] Error code 1

Stop in /usr/ports/devel/py-cheetah.
*** [run-depends] Error code 1

Stop in /usr/ports/news/sabnzbdplus.
*** [install] Error code 1

Stop in /usr/ports/news/sabnzbdplus.


Fearing that I may be wasting hours, is there any easy way to accomplish this without building each thing from source/grabbing them from ports? I know the programs themselves are most python and don't require compiling, it's all the dependencies that I'm worried about.
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
If you take a look at my blog, I use those 4 plugins, in a single jail, with nzbToMedia. It's not super n00b friendly but might be helpful.

Google 'jruehlig freenas', please don't link it here.
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
I was looking for your blog before I posted this but couldn't find it, I managed to get it all figured out on my own.
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
After moving all my plugins to a new jail on my SSD I can't seem to get nzbToSickbeard working in SickRage, I'm copying the exact same configs that I had when it was working but can't figure out what's wrong.

I get this error when the the script tries to run.

Code:
Traceback (most recent call last):
File "/usr/local/sabnzbd/nzbToMedia/nzbToSickBeard.py", line 255, in <module>
result = nzbToMedia.main(sys.argv, section)
AttributeError: 'module' object has no attribute 'main'


I turned on debug logging in SABnzbd to see if it would help but it didn't really. I paused my queue after a successful download and checked the log after it errored out.

After a successful unpack, I'm only left with this in the logs

Code:
2015-01-14 23:08:18,368::INFO::[newsunpack:150] Running external script /usr/local/sabnzbd/nzbToMedia/nzbToSickBeard.py(/usr/local/sabnzbd/Downloads/Complete/TV/The.Middle.S06E11.HDTV.x264-LOL, The.Middle.S06E11.HDTV.x264-LOL.nzb, The.Middle.S06E11.HDTV.x264-LOL, , tv, alt.binaries.teevee, 0, )


2015-01-14 23:08:19,678::INFO::[postproc:543] Cleaning up The.Middle.S06E11.HDTV.x264-LOL (keep_basic=False)
2015-01-14 23:08:19,679::INFO::[__init__:908] /usr/local/sabnzbd/Downloads/Incomplete/The.Middle.S06E11.HDTV.x264-LOL/__ADMIN__/SABnzbd_nzf_mywzmo removed
2015-01-14 23:08:19,680::INFO::[__init__:908] /usr/local/sabnzbd/Downloads/Incomplete/The.Middle.S06E11.HDTV.x264-LOL/__ADMIN__/SABnzbd_nzf_7ZKJ11 removed
2015-01-14 23:08:19,681::INFO::[__init__:908] /usr/local/sabnzbd/Downloads/Incomplete/The.Middle.S06E11.HDTV.x264-LOL/__ADMIN__/SABnzbd_nzf_PgtZCN removed
2015-01-14 23:08:19,681::INFO::[__init__:908] /usr/local/sabnzbd/Downloads/Incomplete/The.Middle.S06E11.HDTV.x264-LOL/__ADMIN__/SABnzbd_nzf_NIQpcT removed
2015-01-14 23:08:19,682::INFO::[__init__:908] /usr/local/sabnzbd/Downloads/Incomplete/The.Middle.S06E11.HDTV.x264-LOL/__ADMIN__/SABnzbd_nzf_1mFpJh removed
2015-01-14 23:08:19,686::INFO::[postproc:85] Saving postproc queue
2015-01-14 23:08:19,687::INFO::[__init__:919] Saving data for postproc1.sab in /usr/local/sabnzbd/admin/postproc1.sab
2015-01-14 23:08:19,688::INFO::[downloader:246] Post-processing finished, resuming download
 
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
After moving all my plugins to a new jail on my SSD I can't seem to get nzbToSickbeard working in SickRage, I'm copying the exact same configs that I had when it was working but can't figure out what's wrong.

I get this error when the the script tries to run.

Code:
Traceback (most recent call last):
File "/usr/local/sabnzbd/nzbToMedia/nzbToSickBeard.py", line 255, in <module>
result = nzbToMedia.main(sys.argv, section)
AttributeError: 'module' object has no attribute 'main'
to me it sounds like an issue with nzbToMedia files getting messed up somehow. Maybe just redownload the nzbToMedia files. If that doesn't work, I'd post on the nzbToMedia section of the SickRage forums. The dev checks there I believe.
Code:
mv  /usr/local/share/nzbToMedia/autoProcessMedia.cfg /tmp
rm -r /usr/local/share/nzbToMedia
git clone git://github.com/clinton-hall/nzbToMedia.git /usr/local/share/nzbToMedia
mv /tmp/autoProcessMedia.cfg /usr/local/share/nzbToMedia
chown -R media:media /usr/local/share/nzbToMedia
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
They were pretty fresh but just for the hell of it, I did it anyway and it didn't change anything. I'll post over there, thanks. BTW the links on your blog relating to this topic don't work.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
They were pretty fresh but just for the hell of it, I did it anyway and it didn't change anything. I'll post over there, thanks. BTW the links on your blog relating to this topic don't work.
k, goodluck. Not sure what links you are talking about?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Status
Not open for further replies.
Top