sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

ndoty

Cadet
Joined
Sep 27, 2012
Messages
3
Just got into freenas. Also just got into usenet stuff. I just want to say thanks for putting this stuff up. So far i have the plugins installed and connect to my usenet accounts. the only issue i am having is actually getting stuff to download. I haven't tried yet thoguh as i want to setup all of my post processing stuff so it goes into the correct folders. My question with that is how do i handle all of the files since they are in the jail and i want to see the files on my share? Do i just do all the processing in the jail then mount point the final folder the data is in? Is there a good tutorial explaining how to do this. I searched and found tons of info on sickbeard and sabnzbs+ but they are slightly different as i am not sure how let the data flow and how to setup permissions.
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
Just got into freenas. Also just got into usenet stuff. I just want to say thanks for putting this stuff up. So far i have the plugins installed and connect to my usenet accounts. the only issue i am having is actually getting stuff to download. I haven't tried yet thoguh as i want to setup all of my post processing stuff so it goes into the correct folders. My question with that is how do i handle all of the files since they are in the jail and i want to see the files on my share? Do i just do all the processing in the jail then mount point the final folder the data is in? Is there a good tutorial explaining how to do this. I searched and found tons of info on sickbeard and sabnzbs+ but they are slightly different as i am not sure how let the data flow and how to setup permissions.

What post-processing do you want SAB to do?

Here's how I have my stuff set up, and it works great with SickBeard, CouchPotato, and HeadPhones

  1. In the plugins GUI, mount your zfs pools so that they're available to your plugins. Note where you mounted them.
  2. In SAB, set the download directory to somewhere in the mount where you want to save stuff (in my case, /mnt/public/downloads, because I'm boring like that). While you're in here, set the file permission mask to 777 (technically unnecessary since the 0.9 PBIs, but still useful)
  3. Still in SAB, setup a watch folder if you want to have "blackhole" support (SB/CP/HP should use the API, but this is useful for one-off downloads).
  4. Still in SAB, add your categories as desired (Music, Movies, TV), give them folder names, and don't set any scripts. SAB will automatically create these folders in the download directory as needed, and will watch for subfolders in the blackhole to set categories that way. For example, if your blackhole is on /mnt/public/nzbs and you have a category of Movies with a folder defined of the same name, any nzb file put into /mnt/public/nzbs/Movies will download with "Movies" as its category. API users don't need to worry about the blackhole folder, but the categories do need to be set up.

That's it for SAB processing. For the rest, I use the built-in post-processing for SB/CP/HP and it works quite well. Just set your watch folder to the appropriate downloads/category folder, set your category appropriately, and enable whatever post-processing you want (you may want to change file permission masks for these as well, and for some you may have to do it from the config file rather than the GUI). The workflow will then look like:

  1. SB/CP/HP finds something it wants to download and sends that to SAB via the API and with the correct category
  2. SAB downloads the file and the only post-processing it does is repairing/unpacking into the download/category folder
  3. Once SAB completes, SB/CP/HP detect the new folder in the watch directory they're watching and run their post-processing, copying the files into your final destination and renaming them appropriately.

Because each category goes to a different root folder, you don't get SB/CP/HP stepping on each other (you're not downloading Movies with SB, you're not downloading Music with CP, you're not downloading TV with HP, etc).
 

ndoty

Cadet
Joined
Sep 27, 2012
Messages
3
What post-processing do you want SAB to do?

Here's how I have my stuff set up, and it works great with SickBeard, CouchPotato, and HeadPhones

  1. In the plugins GUI, mount your zfs pools so that they're available to your plugins. Note where you mounted them.
  2. In SAB, set the download directory to somewhere in the mount where you want to save stuff (in my case, /mnt/public/downloads, because I'm boring like that). While you're in here, set the file permission mask to 777 (technically unnecessary since the 0.9 PBIs, but still useful)
  3. Still in SAB, setup a watch folder if you want to have "blackhole" support (SB/CP/HP should use the API, but this is useful for one-off downloads).
  4. Still in SAB, add your categories as desired (Music, Movies, TV), give them folder names, and don't set any scripts. SAB will automatically create these folders in the download directory as needed, and will watch for subfolders in the blackhole to set categories that way. For example, if your blackhole is on /mnt/public/nzbs and you have a category of Movies with a folder defined of the same name, any nzb file put into /mnt/public/nzbs/Movies will download with "Movies" as its category. API users don't need to worry about the blackhole folder, but the categories do need to be set up.

That's it for SAB processing. For the rest, I use the built-in post-processing for SB/CP/HP and it works quite well. Just set your watch folder to the appropriate downloads/category folder, set your category appropriately, and enable whatever post-processing you want (you may want to change file permission masks for these as well, and for some you may have to do it from the config file rather than the GUI). The workflow will then look like:

  1. SB/CP/HP finds something it wants to download and sends that to SAB via the API and with the correct category
  2. SAB downloads the file and the only post-processing it does is repairing/unpacking into the download/category folder
  3. Once SAB completes, SB/CP/HP detect the new folder in the watch directory they're watching and run their post-processing, copying the files into your final destination and renaming them appropriately.

Because each category goes to a different root folder, you don't get SB/CP/HP stepping on each other (you're not downloading Movies with SB, you're not downloading Music with CP, you're not downloading TV with HP, etc).

I just want my TV and Movies to go to the repectable folder that xbmc will use. This includes Naming and tagging them with metadata that xbmc will use.
Excellent, thanks for the advice and help on that. I understand all of that with exception of how to mount my pool so all the plugins can see it. From my understanding a mount point keeps the actual data with in the jail filesystem and creates a pointer for your actual pools. Is that correct? So my setup is /mnt/z/Media/ then some folders such as TV Movies which is where i will point my xbmc htpc to. So would i create a mount from both TV and Movies to the respectable TV and Movies i would create under /mnt/z/pj/usr/pbi ? Also i suppose another folder to watch for manually added nzb's and another for anyhting that would get downloaded from transmission or manual downloads?
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
Read this. Mount points, from a jail perspective, are a way to expose your external stores to your sandboxed jail.
 

ndoty

Cadet
Joined
Sep 27, 2012
Messages
3
Okay yeah missed that part. Thanks for the help. Hopefully i can get this all setup tonight. Glad to see there are some nice members here to help out the ones in need. Hopefully in due time i can be one that is also providing help.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Version 1.0

Changes include..
+ init that has intelligence to remove stale pidfiles
+ update maraschino source


I probably won't update these plugins for a while, the next step is too add a way to backup+restore your program's data and that may take me a while to figure out how to do in django.
 

GreatOne

Cadet
Joined
Sep 29, 2012
Messages
3
Hi,

I have a freshly installed freenas system. I installed the correct jail plugin (FreeNAS-8.2.0-RELEASE-x86.Plugins_Jail.pbi) and then I downloaded the sabnzbd-1.0-i386.pbi from the provided link. I went into ssh and into my jail. There I entered vi /etc/rc.conf. I added the line sabnzdb_enable="YES". After this I left the vi editor and put in the command service sabnzbd onestart. It returns a message that the config.ini file is not found. I have checked the folder and the ini file is not there. How can I fix this???
 

GreatOne

Cadet
Joined
Sep 29, 2012
Messages
3
Guys,

I am really stuck here. I went back and updated my freenas 8.2 to 8.3 beta3. After this I imported my volumes again. One is a 160 gig ide drive and one is a 500 gig sata drive. I named the 160 gig Zeta. I created two datasets, one named Jail and another named sotware. I set the permissions to read write execute for owner and group for Zeta, Jail and software. Then I created added the Jail plugin. After this I enabled the plugins service. Next step was to install the sabnzbd-1.0-i386.pbi plugin. The installation was ok. I again went into ssh and entered service sabnzbd onestart.

I get the following output

grep: /usr/pbi/sabnzbd-i386/data/config.ini: No such file or directory
Starting sabnzbd.
software# Traceback (most recent call last):
File "/usr/pbi/sabnzbd-i386/SABnzbd/SABnzbd.py", line 65, in <module>
import sabnzbd
File "/usr/pbi/sabnzbd-i386/SABnzbd/sabnzbd/__init__.py", line 69, in <module>
from sabnzbd.nzbqueue import NzbQueue
File "/usr/pbi/sabnzbd-i386/SABnzbd/sabnzbd/nzbqueue.py", line 41, in <module>
import sabnzbd.downloader
File "/usr/pbi/sabnzbd-i386/SABnzbd/sabnzbd/downloader.py", line 39, in <modul
e>
import sabnzbd.scheduler
File "/usr/pbi/sabnzbd-i386/SABnzbd/sabnzbd/scheduler.py", line 29, in <module
>
import sabnzbd.rss as rss
File "/usr/pbi/sabnzbd-i386/SABnzbd/sabnzbd/rss.py", line 35, in <module>
import sabnzbd.emailer as emailer
File "/usr/pbi/sabnzbd-i386/SABnzbd/sabnzbd/emailer.py", line 282, in <module>
from email.message import Message
File "/usr/pbi/sabnzbd-i386/lib/python2.7/email/message.py", line 88
seturn utils.unquote(value)
^
SyntaxError: invalid syntax

I can not find anything anywere how to correct this. Please someone help me!!! :)
 

GreatOne

Cadet
Joined
Sep 29, 2012
Messages
3
Thanks so much for all your efforts!

What is that supposed to mean. I am not one to give up easily. I have a freenas 0.7.2 system running with sabnzb plus. It all runs like a dream. the only problem is that the machine is very limited in case of hardware and space. So I decided to build a new nas system. But I cant seem to figure out how to get this one working. :(

Could someone help me please!
 

KenNashua

Explorer
Joined
Feb 24, 2012
Messages
62
Dumb question, I'm sure, but I've been searching for the answer on Maraschino sites to no avail...

Is the Maraschino "Recently Added Episodes" module only good if I have xmbc installed on the network? It's not using Sick Beard as the backend?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Dumb question, I'm sure, but I've been searching for the answer on Maraschino sites to no avail...

Is the Maraschino "Recently Added Episodes" module only good if I have xmbc installed on the network? It's not using Sick Beard as the backend?

Yeah, recently added episodes connects to the xbmc webserver and grabs info from xbmc's database.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
What is that supposed to mean. I am not one to give up easily. I have a freenas 0.7.2 system running with sabnzb plus. It all runs like a dream. the only problem is that the machine is very limited in case of hardware and space. So I decided to build a new nas system. But I cant seem to figure out how to get this one working. :(

Could someone help me please!

Why did you use vi to start sabnzbd in the first place? You don't need to touch the command line at all to run the plugins since version 0.8.
Check the youtube link in the OP to see me install and start+enable a plugin. Also the i386 one's are not tested so I don't know if they actually work or not, if your running FreeNAS on a newer system that supports 64bit I recommend switching to 64bit.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I probably won't update these plugins for a while, the next step is too add a way to backup+restore your program's data and that may take me a while to figure out how to do in django.

Actually you don't need to know any django to do this.

Create a mountpoint to a dataset with snapshots, create a link from the settings folder to this mountpoint and you have automatic backup of your settings. If you reinstall your plugin, just remap the mountpoint and your settings are restored. Voila, no django needed!
 

ljw1

Dabbler
Joined
Apr 29, 2012
Messages
16
What is that supposed to mean. I am not one to give up easily. I have a freenas 0.7.2 system running with sabnzb plus. It all runs like a dream. the only problem is that the machine is very limited in case of hardware and space. So I decided to build a new nas system. But I cant seem to figure out how to get this one working. :(

Could someone help me please!

Sorry wasn't clear. Was thanking Joshua for all his efforts.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Actually you don't need to know any django to do this.

Create a mountpoint to a dataset with snapshots, create a link from the settings folder to this mountpoint and you have automatic backup of your settings. If you reinstall your plugin, just remap the mountpoint and your settings are restored. Voila, no django needed!

Well I wanted a way people could backup and restore their settings moving from one system to another as well, but that works for using the same zpool. That's why snapshots are awesome!
 

pete2789

Cadet
Joined
Jul 24, 2012
Messages
8
Maraschino appears to have a problem when stopping.
I get the error
Code:
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
fetch: http://127.0.0.1://xhr/shutdown: Connection refused
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Maraschino appears to have a problem when stopping.
I get the error
Code:
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
SQLite header and source version mismatch
2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e
2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc
fetch: http://127.0.0.1://xhr/shutdown: Connection refused

Thanks, I'll see what's mismatched, might be able to debug it this weekend, but I might be busy...
 
Status
Not open for further replies.
Top