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.
Is duplicate of FreeNAS - Bug #37806: Create SabNZBD iocage plugin Not Started Related to Is duplicate of Has duplicate Blocks Blocked by Precedes Follows Copied to Copied from Issue # Delay: days Cancel.
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.
Install Jail and start it. Install all plugins and start them. Create folder /mnt/Volume1/SABNZBD. Create folders for each plugin under /usr/pbi//data. Make a SABZNBD and Movies/TVShows/Music. Create mount points. Login to each of the plugin via the web and configure.
Assumptions. 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. My FreeNAS mount is /mnt/Volume1. Wherever you see Volume1, substitute it for your volume name. 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. 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. Install Plugin Jail and start it. Create two ZFS datasets called 'jail' and 'software'. Jail is for the plugins themselves, and software is for the installed software.
Select 'FreeNAS / Storage / Volumes / Create ZFS Dataset' Dataset Name: 'jail' Leave the rest as default unless you feel like tweaking. Repeat step 2 except make the Dataset Name 'software'.
Download the pluginsjail for your architecture. 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. Click 'Upload Jail PBI'. Select the PBI you downloaded in step 4 above and upload it. Start the Plugins service FreeNAS / Services / Control Services / Plugins.
If all went well you will have the plugins jail installed and running. Install all plugins and start them. Download plugins you want from.
Install plugins from FreeNAS / Services / Control Services / Install Plugin. Select the plugins you downloaded in step 1 and select Upload. Start them each. Sometimes they can take a while to start so be patient. Create folder /mnt/Volume1/SABNZBD We need a folder that is accessable to all plugins to handle post processing.
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). Open a shell window FreeNAS / Shell. 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. Type 'jexec 1 csh' where 1 is the JID from step 2. Your prompt will change to 'software#'. 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. 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. Go to FreeNAS / Services / Control Services and select 'View Mount Points'. You can also do this from FreeNAS / Services / Plugins / Management / Mount Points.
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: Complete initial setup then access the Web GUI and click 'Config'. 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. Click 'Folders' Temporary Download Folder: /SABZNBD/Incomplete Completed Download Folder: /SABZNBD/Complete Watched Folder: /SABZNBD/Watch. 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. Sickbeard Configuration Host:. Click 'Config / General' Set a username and password if you wish (advised) and enable API Key. Click 'Config / Search Settings' Tick 'Seach NZB's' NZB Method: SABnzbd SABnzbd URL: Set SABnzbd Username and Password if you configured it in SABNZBD configuration above.
Set SABnzbd API Key. SABnzbd Category: tv. Click 'Config / Post Processing' TV Download Dir: /SABNZBD/Complete/TVShows. Setup everything else as you require. Couchpotato Configuration Host: (we will be changing this port to 8082) Complete initial configuration.
Click Settings (top right gear icon) / General. Set username and password if required (advised) Port: 8082. Click Settings / Downloaders Tick SABNZBD Set host and API Key Category: movies.
Click Settings / Renamer From: /SABNZBD/Complete/Movies/ To: /Movies/ Set naming to whatever your preference is. Set subtitles, etc. Headphones Configuration Host: (we will be change this port to 8083). Click Settings (top right gear icon) / Web Interface HTTP Port: 8083 Set username and password if you wish (advised) Tick 'Enable API'. Click Settings / Download Settings SABnzbd Host: SABnzbd Category: music Configure username, password and API Key Music Download Directory: /SABNZBD/Music.
Click Settings / Quality & Post Processing Under Post Processing I tick all check boxes. You don't have to.
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. 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? 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? 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. If you're lazy, then you can fix the permissions by running: 'chmod 777 -R ' 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. 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). Open a shell window FreeNAS / Shell.
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.
Type 'jexec 1 csh' where 1 is the JID from step 2. Your prompt will change to 'software#'. 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. 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. Go to FreeNAS / Services / Control Services and select 'View Mount Points'.
You can also do this from FreeNAS / Services / Plugins / Management / Mount Points. 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. 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: Complete initial setup then access the Web GUI and click 'Config'.
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. Click 'Folders' Temporary Download Folder: /SABZNBD/Incomplete.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:. Click 'Config / General' Set a username and password if you wish (advised) and enable API Key. Click 'Config / Search Settings' Tick 'Seach NZB's' NZB Method: SABnzbd SABnzbd URL: Set SABnzbd Username and Password if you configured it in SABNZBD configuration above. Set SABnzbd API Key.
SABnzbd Category: tv. Click 'Config / Post Processing' TV Download Dir: /SABNZBD/Complete/TVShows.
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 downloaddir 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 downloaddir 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.