FreeNAS 8.3, SABnzbd, Sickbeard and Headphones Setup Guide

DominionZA

Executive Member
Joined
May 5, 2005
Messages
8,306
Reaction score
73
Location
Edenvale, Gauteng
My configuration
HP Microserver N40L with 5 * 2TB drives in Raid Z configuration.

I originally had SABnzbd, Sickbeard and Headphones on my Windows Core2Duo machine and my HP MS was just a NAS box.
Tonight I decided to make time to setup the plugin architecture in FreeNAS 8.3 and get my HP MS to do all the work. The Core2Duo can finally be laid to rest (well I will use it for something else :))

I am sharing this guide with you guys in the hopes it helps someone else. It was a bit of a challenge gathering all the information and putting it together to end up with an awesome solution.

This guide was done for my setup and configuration. You should find it easy to adapt to your configuration and to also handle torrents etc... If I have made any mistakes, please let me know and I will correct.

----------- GUIDE START -----------

Overview of setup

  1. Install Jail and start it
  2. Install all plugins and start them
  3. Create folder /mnt/Volume1/SABNZBD
  4. Create folders for each plugin under /usr/pbi/<Plugin Name>/data. Make a SABZNBD and Movies/TVShows/Music
  5. Create mount points
  6. Login to each of the plugin via the web and configure.

Assumptions

  1. You are running FreeNAS 8.2 or 8.3. I am currently on 8.3 RC1 but this should work on 8.2. Upgrade if you are unsure.
  2. My FreeNAS mount is /mnt/Volume1. Wherever you see Volume1, substitute it for your volume name.
  3. I have the folders Movies, TVShows and Music each created directly under /mnt/Volume1 and contain the actual media. Ex: /mnt/Volume1/Movies, /mnt/Volume1/Music, etc..
  4. I don't use SABNZBD for the post processing. It just downloads and puts the content in respective category folders. The plugins will watch for completed downloads and handle them.

1. Install Plugin Jail and start it

  1. Create two ZFS datasets called "jail" and "software". Jail is for the plugins themselves, and software is for the installed software.
  2. Select "FreeNAS / Storage / Volumes / Create ZFS Dataset"
    Dataset Name: "jail"
    Leave the rest as default unless you feel like tweaking.
  3. Repeat step 2 except make the Dataset Name "software"
  4. Download the plugins_jail for your architecture
    http://sourceforge.net/projects/fre...eeNAS-8.3.0-RC1-x64.Plugins_Jail.pbi/download
  5. Install the plugin.
    FreeNAS / Services / Plugins / Management / Settings
    Plugins Jail Path: /mnt/Volume1/jail
    Jail Name: software
    Jail IP Address: 192.168.1.9 (You must allocate an IP on your network for this - and it must be unique)
    Jail IP Netmask: /24 (255.255.255.0) (adapt this for your own network)
    Plugins Archive Path: /mnt/Volume1/software
  6. Click "Upload Jail PBI"
  7. Select the PBI you downloaded in step 4 above and upload it.
  8. Start the Plugins service
    FreeNAS / Services / Control Services / Plugins.
  9. If all went well you will have the plugins jail installed and running.

2. Install all plugins and start them

  1. Download plugins you want from http://freenas.synergames.com//browse.php?action=browse&userid=7&folder=amd64
  2. Install plugins from FreeNAS / Services / Control Services / Install Plugin.
    Select the plugins you downloaded in step 1 and select Upload.
  3. Start them each. Sometimes they can take a while to start so be patient.

3. Create folder /mnt/Volume1/SABNZBD
We need a folder that is accessable to all plugins to handle post processing.

  1. Access your volume via windows explorer (or whatever you use) and create the folder /mnt/Volume1/SABNZBD

4. Create folders for each plugin under /. Make a SABZNBD and Movies | TVShows |Music
Each of our plugins need access to their respective Movie | TVShow | Music folder.
Each of our plugins also need access to the SABNZBD downloads folder for post processing (or polling)

  1. Open a shell window
    FreeNAS / Shell
  2. Type "jls" to identify the Jail ID of our "software" dataset.
    You will be presented with a list of records. Look for hostname "software" and take note of it's JID.
    Mine is JID 1
  3. Type "jexec 1 csh" where 1 is the JID from step 2.
    Your prompt will change to "software#"
  4. To get a list of your plugins, type "ls /usr/pbi".
    You will see a list of your plugins. The ones I am interested in for this are sabnzbd-amd64, sickbeard-amd64 and couchpotato-amd64.
  5. Create the folders we need. Remember we need for respective media and each one needs SABNZBD.

    Type the following commands
    mkdir /SABNZBD
    mkdir /TVShows
    mkdir /Movies
    mkdir /Music

5. Create mount points
For the plugins to be able to gain access to your main media folders and to SABNZBD we need to create mount points.

  1. Go to FreeNAS / Services / Control Services and select "View Mount Points".
    You can also do this from FreeNAS / Services / Plugins / Management / Mount Points.
  2. Select "Add Mount Point" Repeat this step for the following.

    Source: /mnt/Volume1/SABNZBD
    Destination: /SABNZBD

    Source: /mnt/Volume1/Music
    Destination: /Music

    Source: /mnt/Volume1/TV Shows
    Destination: /TVShows

    Source: /mnt/Volume1/Movies
    Destination: /Movies

6. Login to each of the plugin via the web and configure.
Now we need to access each of our web GUI's and configure. The hard work is over. The fun starts.
I like SABNZB on port 8080, Sickbeard on 8081, Couchpotato on 8082 and Headphones on 8083. Modify as you see fit.


SABNZBD Configuration
Host: http://192.168.1.9:8080
Complete initial setup then access the Web GUI and click "Config"

  1. Click "General"
    SABNZBD Port: 8080
    Configure anything you think you may need here. I pretty much leave it all default except I create a username and password.
  2. Click "Folders"
    Temporary Download Folder: /SABZNBD/Incomplete
    Completed Download Folder: /SABZNBD/Complete
    Watched Folder: /SABZNBD/Watch
  3. Click "Categories" - This is a very important config to make to integrate with the plugins.
    The plugins will instruct SABNZBD to place the completed downloads in their respective folders. The plugins will then "watch" these folders and post process them when done - placing them in their correct homes.

    Add the following 3 categories

    Category: movies
    Folder/Path: /Movies

    Category: tv
    Folder/Path: /TVShows

    Category: music
    Folder: /Music
  4. Those are the basics for SABNZBD. Don't forget to setup your Servers and Index Sites.

Sickbeard Configuration
Host: http://192.168.1.9:8081

  1. Click "Config / General"
    Set a username and password if you wish (advised) and enable API Key.
  2. Click "Config / Search Settings"
    Tick "Seach NZB's"
    NZB Method: SABnzbd
    SABnzbd URL: http://localhost:8080/
    Set SABnzbd Username and Password if you configured it in SABNZBD configuration above.
    Set SABnzbd API Key.
    SABnzbd Category: tv
  3. Click "Config / Post Processing"
    TV Download Dir: /SABNZBD/Complete/TVShows
  4. Setup everything else as you require.

Couchpotato Configuration
Host: http://192.168.1.9:5050 (we will be changing this port to 8082)
Complete initial configuration

  1. Click Settings (top right gear icon) / General.
    Set username and password if required (advised)
    Port: 8082
  2. Click Settings / Downloaders
    Tick SABNZBD
    Set host and API Key
    Category: movies
  3. Click Settings / Renamer
    From: /SABNZBD/Complete/Movies/
    To: /Movies/
    Set naming to whatever your preference is.
    Set subtitles, etc... if you wish.

Headphones Configuration
Host: http://192.168.1.9:8181 (we will be change this port to 8083)

  1. Click Settings (top right gear icon) / Web Interface
    HTTP Port: 8083
    Set username and password if you wish (advised)
    Tick "Enable API"
  2. Click Settings / Download Settings
    SABnzbd Host: http://localhost:8080
    SABnzbd Category: music
    Configure username, password and API Key
    Music Download Directory: /SABNZBD/Music
  3. Click Settings / Quality & Post Processing
    Under Post Processing I tick all check boxes. You don't have to. Your choice.
    Path to destination folder: /Music

----------- GUIDE END -----------

I hope this helps someone. It sure helped me. My little N40L is being put to extremely good use now.
 
Last edited:
Good thanks for the guide!

For those on windows, the little machine can easily handle SABnzbd, Sickbeard and Headphones. Mine also runs Flexraid and YAMJ! I just prefer working in windows ;) Thanks again though!
 
Tonight I had to rebuild my NAS box cause I fiddled with settings and effectively took it down.
Had to rebuild from scratch and found I did not have to create folders for mount points in each and every plugin. Did it off the root of the /software mount and all worked great. Simplified the setup quite a bit.

OP has been updated.
 
Hi Mike

Thanks for the info. I've installed everything and got all working, but there seems to be weird permission errors. For example Sickbeard cannot read or write any files in my tvshows folder (thus I cannot add shows that I currently have on my tvshows dataset - error 13 is what I get). Could this have something to do with the fact that the jail has a different IP address from the freenas system? Do I have to setup a sickbeard user with root access, how would that work? Sorry I'm quite noob with the whole jail story. I've googled alot but all suggest just chmod 777 the tvshows dataset - I've done this and it does work, however I do not wish everyone to have such high level access. Have you come across this or have any idea how to resolve it?

Thanks alot
 
Hi Mike

Thanks for the info. I've installed everything and got all working, but there seems to be weird permission errors. For example Sickbeard cannot read or write any files in my tvshows folder (thus I cannot add shows that I currently have on my tvshows dataset - error 13 is what I get). Could this have something to do with the fact that the jail has a different IP address from the freenas system? Do I have to setup a sickbeard user with root access, how would that work? Sorry I'm quite noob with the whole jail story. I've googled alot but all suggest just chmod 777 the tvshows dataset - I've done this and it does work, however I do not wish everyone to have such high level access. Have you come across this or have any idea how to resolve it?

Thanks alot

Sorry for the late response. My bad.

The plugins cannot access folders outside their root. That is what the mount points are.

You basically need a TV Shows folder under the sickbeard root that is a mount point to the actual TV Shows archive. This is for post processing though.

Do the same for SABNZBD. The local download finders must exist under the SABNZBD root.

Make sense?
 
Hi Mike

Thanks for the reply. I've redone my setup exactly as yours and still I have an issue with the permissions. Now when I add a show from my existing dataset it seems to be able to read it but cannot move the file after download, I get "cannot move file to new home" I've tried adding the show from the mount point /TVshows and created a mount point in the sickbeard root and added from there. In both cases I get the same error. Do mind explaining in a bit more detail. Thank you very much for the guide and your assistance.
 
Hi Mike

Thanks for the reply. I've redone my setup exactly as yours and still I have an issue with the permissions. Now when I add a show from my existing dataset it seems to be able to read it but cannot move the file after download, I get "cannot move file to new home" I've tried adding the show from the mount point /TVshows and created a mount point in the sickbeard root and added from there. In both cases I get the same error. Do mind explaining in a bit more detail. Thank you very much for the guide and your assistance.

I have not encountered any permission errors on mine dude, so not sure how to assist with that.
I am a bit of a Linux n00b but I know there are commands you can run to change permissions. Hopefully one of the Linux gurus around here can hop in and help.
 
Hi Mike

Think I'm missing something simple here, can I perhaps bother you for a screenshot of your mount points? Thanks again for all the help :D
 
If you're lazy, then you can fix the permissions by running: 'chmod 777 -R <your location that needs to be fixed>'
This will give read + write + execute permissions to EVERYONE for that path, and do it recursively.
Also take note that you may have to change the permissions of the parent folder too if that didn't fix it.

So for instance, if you were to have issues moving files from /home/sickbeard/downloads to say /home/media/downloads, then you'll have to run 'chmod 777 -R /home/media/downloads' and if that didn't fix it, then try its parent folder with 'chmod 777 -R /home/media'

I said this is the "lazy" way of doing it, because you're simply giving EVERYONE access to do ANYTHING. The correct way of doing it would be find out what user the process is running as that is trying to move the files and then to additionally give only that user the write permissions to the destination folder.
 
okay i registered just so i could reply to this.

I've done everything so far in par to your directions but I can't connect when i use 192.168.1.9:8080.

It just says page interrupted (Chrome)

maybe there's something I have to do prior to this tutorial? Also, how do I know if I need to use /24 vs anything else?
 
okay. so it worked at first after i changed the IP and rebooted. then when in the Wizard it wouldn't connect to my newsgroup server. so i just pushed forward, now after completing the wizard, it won't work at all again.
 
Last edited:
okay i registered just so i could reply to this.

I've done everything so far in par to your directions but I can't connect when i use 192.168.1.9:8080.

It just says page interrupted (Chrome)

maybe there's something I have to do prior to this tutorial?

That is the IP I used. My network is on the 192.168.1.x range.
What is the IP of your own computer on the same network?

Also, how do I know if I need to use /24 vs anything else?

Most home users use a subnet mask 255.255.255.0. /24 is this subnet. Check the subnet of your computer and check it is as above.
 
Found the problem, the downloaders didn't have write access as suggested by Mike. To give write access you need go into the jail through shell and type the following command:
'chown -R media:media /source/directory' thus in this case it would look like: chown –R media:media /SABNZBD (and then /Tvshows etc).

So everything working perfectly, thanks Mike.

Too bad Nzbmatrix just went down, so much for my lifetime VIP subscription :/
 
Found the problem, the downloaders didn't have write access as suggested by Mike. To give write access you need go into the jail through shell and type the following command:
'chown -R media:media /source/directory' thus in this case it would look like: chown –R media:media /SABNZBD (and then /Tvshows etc).

So everything working perfectly, thanks Mike.

Too bad Nzbmatrix just went down, so much for my lifetime VIP subscription :/

Glad to hear you are up and running dude. Enjoy :)
 
UPDATE:

A guy by the name of Joe Morganelli is shutting down sites ,as we speak, that are used for Usenet due to Copyright content.

NZBMatrix and a few others have been shut down already. We might see http://sabnzbd.org/ get shut down too.
 
Thanks much. This DOES help. But I still haven't managed to get the folders right.

4. Create folders for each plugin under /. Make a SABZNBD and Movies | TVShows |Music
Each of our plugins need access to their respective Movie | TVShow | Music folder.
Each of our plugins also need access to the SABNZBD downloads folder for post processing (or polling)
  1. Open a shell window
    FreeNAS / Shell
  2. Type "jls" to identify the Jail ID of our "software" dataset.
    You will be presented with a list of records. Look for hostname "software" and take note of it's JID.
    Mine is JID 1
  3. Type "jexec 1 csh" where 1 is the JID from step 2.
    Your prompt will change to "software#"
  4. To get a list of your plugins, type "ls /usr/pbi".
    You will see a list of your plugins. The ones I am interested in for this are sabnzbd-amd64, sickbeard-amd64 and couchpotato-amd64.
Up until here, everything works swimmingly. But this is where you lose me. SO is the idea that under EACH folder we 'see' when we do "ls usr/pbi", we create FOUR subfolders?
[*]Create the folders we need. Remember we need for respective media and each one needs SABNZBD.

Type the following commands
mkdir /SABNZBD
mkdir /TVShows
mkdir /Movies
mkdir /Music
[/LIST]
So we have to cd our way to say the folder usr/pbi/sabnzbd-amd64 and the create these 4 folders there?
5. Create mount points
For the plugins to be able to gain access to your main media folders and to SABNZBD we need to create mount points.

  1. Go to FreeNAS / Services / Control Services and select "View Mount Points".
    You can also do this from FreeNAS / Services / Plugins / Management / Mount Points.
  2. Select "Add Mount Point" Repeat this step for the following.

    Source: /mnt/Volume1/SABNZBD
    Destination: /SABNZBD

    Source: /mnt/Volume1/Music
    Destination: /Music

    Source: /mnt/Volume1/TV Shows
    Destination: /TVShows

    Source: /mnt/Volume1/Movies
    Destination: /Movies
Also this works fine. The destination usually looks more complicated when we select it, but it DOES end up looking like /Movies etc.
6. Login to each of the plugin via the web and configure.
Now we need to access each of our web GUI's and configure. The hard work is over. The fun starts.
I like SABNZB on port 8080, Sickbeard on 8081, Couchpotato on 8082 and Headphones on 8083. Modify as you see fit.


SABNZBD Configuration
Host: http://192.168.1.9:8080
Complete initial setup then access the Web GUI and click "Config"

  1. Click "General"
    SABNZBD Port: 8080
    Configure anything you think you may need here. I pretty much leave it all default except I create a username and password.
  2. Click "Folders"
    Temporary Download Folder: /SABZNBD/Incomplete
What would be the FULL folder then? The default base folder for sabnzbd is /usr/pbi/sabnzbd-amd64/data. So should the temporary download folder then be /usr/pbi/sabnzbd-amd64/data/SABZNBD/Incomplete?
Completed Download Folder: /SABZNBD/Complete
Watched Folder: /SABZNBD/Watch
Is this one that has to be created? And to what end?
[*]Click "Categories" - This is a very important config to make to integrate with the plugins.
The plugins will instruct SABNZBD to place the completed downloads in their respective folders. The plugins will then "watch" these folders and post process them when done - placing them in their correct homes.

Add the following 3 categories

Category: movies
Folder/Path: /Movies

Category: tv
Folder/Path: /TVShows

Category: music
Folder: /Music
[*]Those are the basics for SABNZBD. Don't forget to setup your Servers and Index Sites.
[/LIST]

Sickbeard Configuration
Host: http://192.168.1.9:8081

  1. Click "Config / General"
    Set a username and password if you wish (advised) and enable API Key.
  2. Click "Config / Search Settings"
    Tick "Seach NZB's"
    NZB Method: SABnzbd
    SABnzbd URL: http://localhost:8080/
    Set SABnzbd Username and Password if you configured it in SABNZBD configuration above.
    Set SABnzbd API Key.
    SABnzbd Category: tv
  3. Click "Config / Post Processing"
    TV Download Dir: /SABNZBD/Complete/TVShows
Once again - is this a folder that should be created? Because this is the first time that path appears in these instructions.

Would it be possible for you to post either some screenshots or the actual *.ini files so that things become (even) clearer to use? Thanks again.
 
Can somone please help me with SabNZB

I follow strickly the manual but i am getting still the autorisation error.. on step 6.2:
Temporary Download Folder: /SABZNBD/Incomplete
Completed Download Folder: /SABZNBD/Complete
Watched Folder: /SABZNBD/Watch

i getting the error: (SABNZB log file)
2013-05-06 11:05:07,504::INFO::[misc:362] download_dir directory: /SABNZBD/Incomplete does not exist, try to create it...

i try everything but still problems with the permissions..

i also try Chmod 777 but it cant find the directory

I Use FreeNAS 8.3 with SABNZBD 1.1
 
Can somone please help me with SabNZB

I follow strickly the manual but i am getting still the autorisation error.. on step 6.2:
Temporary Download Folder: /SABZNBD/Incomplete
Completed Download Folder: /SABZNBD/Complete
Watched Folder: /SABZNBD/Watch

i getting the error: (SABNZB log file)
2013-05-06 11:05:07,504::INFO::[misc:362] download_dir directory: /SABNZBD/Incomplete does not exist, try to create it...

i try everything but still problems with the permissions..

i also try Chmod 777 but it cant find the directory

I Use FreeNAS 8.3 with SABNZBD 1.1

It appears you don't have mount points setup. You need to create these to give the applications access to the secure folders.

I am a bit rusty on this now as I no longer use this method. Will try advise as best I can though.
 
It appears you don't have mount points setup. You need to create these to give the applications access to the secure folders.

I am a bit rusty on this now as I no longer use this method. Will try advise as best I can though.

I think i did it right.. see:
mountpoints_zps789e2555.jpg
 
Top
Sign up to the MyBroadband newsletter
X