sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
Going on a trip this weekend, but everything should be done next Tuesday. It'll definitely be a good release =]

Gotta say, this has bitten me more than once. Just when you think you're "That close" and ready to run your final build, some shit always happens at the last minute. You're in good hands with William's help.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yeah always some nagging thing somewhere holding things up..
 

Djdiddles

Cadet
Joined
Aug 25, 2012
Messages
9
I had an issue with starting Sickbeard, Sabnzbd, and the rest of them. I keep getting the error of "The Python module Cheetah is required". I was wondering how I would be able to get this setup and installed on the system.

Btw, thanks to everybody to contributed on this project. You guys are doing a heck of a job.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I had an issue with starting Sickbeard, Sabnzbd, and the rest of them. I keep getting the error of "The Python module Cheetah is required". I was wondering how I would be able to get this setup and installed on the system.

Btw, thanks to everybody to contributed on this project. You guys are doing a heck of a job.

So for people missing python or Cheetah that is a disign flaw in the way I originally wrote these plugins/the way freenas is implementing external links from pbis... I really recommend if your jail isn't in full production that you delete and reinstall your jail once version 0.8 comes out. I was externally linking all the dependencies which should be fine, but for some reason deletes the original dependencies from the system (even though I use the 'keep' option in the external links file). What this did was delete all python from the system once a plugin was uninstalled...

What I am doing now is only externally linking dependencies that need to be in /usr/local and can't just live out of /usr/pbi. So all python/modules are run locally. This will still cause some issues sometimes, but usually wont. Anyway just hold on a bit more..
 

noobster

Cadet
Joined
Aug 26, 2012
Messages
2
I might not be posting in the right section, but I got Sabnzbd, Sickbeard, Couchpotato & Maraschino all running great on FreeNAS 8.3.0 Beta1 PBI jail with very little issue. I can help anyone on that platform if needed :)
 

Djdiddles

Cadet
Joined
Aug 25, 2012
Messages
9
I figured out my problem *or so I think*. I was using the version .6 and not .7 plugins. I deleted the jail and set everything back up. Sabnzbd, Sickbeard, Headphones, and Couchpotato all work flawlessly. The file mounting system is kinda strange but I'm getting use to it.

No joke, you guys have done a heck of a job and I, along with everybody else who downloads and uses these plugins, thank you VERY much for all the hard work. :)


edit / update: I had an issue with the permissions on the folders "mounted" inside the jail for sab and sickbeard to access. Problem wasn't mounting or getting the folders to work, it was once I had downloaded something, I would get a permissions error when I tried to open the downloaded content in Windows. After looking back through the WHOLE guide, I saw the post that somebody had to chmod -R 777 the folders.

to do this:
1) log into your freenas machine
2) click on Shell
3) type jexec 1 csh
4) now here's the command to change the permissions on the folders: chmod -R 777 /insert the file directory that is giving you problems/

an example is the following: chmod -R 777 /usr/pbi/sabnzbd-amd64/data/Downloads

I figured I'm not the only person with this problem and since it took me half a day of jacking around to get it right, i thought I would help people and hopefully save some time.

Also NOTE: You MUST change the settings in SABnzbd so when it creates a folder, that folder ALSO HAS PERMISSIONS! to do this, log into sabnzbd, config, folders, and then place 777 in the box for Permissions for completed downloads.

Edit edit: for anybody wondering, I couldn't get the sickbeard script autoprocesstv.cfg to function so I just set it up in sickbeard to process files in my download folder every so often and to delete the originals. It will transfer them to another folder labeled TVshows where they will be renamed and processed.

It's pretty much the script, autoprocesstv.cfg, but set inside of sick beard and not really setup on SABnzbd.

please keep in mind that this is coming from a guy that's a total noob with Freenas, Unix, Linux, or FreeBSD. I've only had a Freenas rig for about 2 weeks and loved it. Now I love it even more.
 

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
Funny - I just came to ask about autoprocesstv along with another question I had. First, onto autoprocess - has anyone gotten it to work and if so, is it possible to post a step by step for us noobs? I have my AutoprocessTV directory under Sickbeard (which I believe is the default), is there a requirement to chmod -R 777 that directory as well? I am getting a little nervous about all of the chmodding required when I don't really know what I am doing! :)

Second question and more theoretical in nature - if the purpose of using a FreeBSD jail is to isolate the system from the base FreeNAS system, does it make sense for us to then be creating mount points into our base system? If I have a port open for sab that allows an intruder into by jail, they can then delete anything that is in my mounted folders...Is there a way to avoid that or am I being unreasonably paranoid or do I have it completely wrong?

Thanks very much!
Chris
 

Craysh

Dabbler
Joined
Aug 12, 2012
Messages
29
Funny - I just came to ask about autoprocesstv along with another question I had. First, onto autoprocess - has anyone gotten it to work and if so, is it possible to post a step by step for us noobs? I have my AutoprocessTV directory under Sickbeard (which I believe is the default), is there a requirement to chmod -R 777 that directory as well? I am getting a little nervous about all of the chmodding required when I don't really know what I am doing! :)

Second question and more theoretical in nature - if the purpose of using a FreeBSD jail is to isolate the system from the base FreeNAS system, does it make sense for us to then be creating mount points into our base system? If I have a port open for sab that allows an intruder into by jail, they can then delete anything that is in my mounted folders...Is there a way to avoid that or am I being unreasonably paranoid or do I have it completely wrong?

Thanks very much!
Chris

I would move the autoprocess tv stuff to a subdirectory under SABnzbd called PostProcess and chmod it.

For your second question, using the mount points should be safe. If someone gains access to your jail they will only be able to access those mount points and their child folders (not their parents) so the file system should be just fine.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Funny - I just came to ask about autoprocesstv along with another question I had. First, onto autoprocess - has anyone gotten it to work and if so, is it possible to post a step by step for us noobs? I have my AutoprocessTV directory under Sickbeard (which I believe is the default), is there a requirement to chmod -R 777 that directory as well? I am getting a little nervous about all of the chmodding required when I don't really know what I am doing! :)

Second question and more theoretical in nature - if the purpose of using a FreeBSD jail is to isolate the system from the base FreeNAS system, does it make sense for us to then be creating mount points into our base system? If I have a port open for sab that allows an intruder into by jail, they can then delete anything that is in my mounted folders...Is there a way to avoid that or am I being unreasonably paranoid or do I have it completely wrong?

Thanks very much!
Chris

I have gotten it to work, and have production systems at several of my friends / families houses with it working. that's the main reason I use Sickbeard, so I don't need to process the files myself =]
Not gonna writeup a guide for now, but by version 0.9 I will have something that should solve people who have problems with it. Got the groundwork of it setup, just gotta get the python part of it done.

For know, if you want to get it work, this is a great guide. I think it has info about setting up categories, you also gotta setup your autoProcess.cfg, Just ignore the instillation stuff cause it's for ubuntu
http://www.ainer.org/sick-beard-install-setup-configuration-guide-for-ubuntu-linux-mint
 

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
Thanks Joshua, for the link (and your work on the plug-in). I've gotten SB to work previously on my Mac, it's just a touch more challenging on FreeNAS...I don't want to toast my NAS! :)

I'll just move the AutoProcessTV directory as suggested and set it up...

Another question - when there is a new release of sab or SB (or CP), can we upgrade through the webgui or do you have to repackage it into a new pbi each time?

Cheers,
Chris
 

Craysh

Dabbler
Joined
Aug 12, 2012
Messages
29
Thanks Joshua, for the link (and your work on the plug-in). I've gotten SB to work previously on my Mac, it's just a touch more challenging on FreeNAS...I don't want to toast my NAS! :)

I'll just move the AutoProcessTV directory as suggested and set it up...

Another question - when there is a new release of sab or SB (or CP), can we upgrade through the webgui or do you have to repackage it into a new pbi each time?

Cheers,
Chris

I'm not sure if the next release will have the ability to update via the update button, but if you really need to update, use the in app upgrade tool (for SickBeard and CouchPotato) and just copy the updated files for SABnzbd directly into the folder in the jail.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks Joshua, for the link (and your work on the plug-in). I've gotten SB to work previously on my Mac, it's just a touch more challenging on FreeNAS...I don't want to toast my NAS! :)

I'll just move the AutoProcessTV directory as suggested and set it up...

Another question - when there is a new release of sab or SB (or CP), can we upgrade through the webgui or do you have to repackage it into a new pbi each time?

Cheers,
Chris

If your having any trouble setting up autoprocessing from sickbeard just ask. I've never had problems with it.

Yes, everything should update from within their respective webinterface. I noticed maraschino wont update till the database is initialized for the first time, maybe by changing a setting and restarting it from within it's gui. The only one that doesn't have in app updating is sabnzbd, but I have a solutions for that which will be in v0.9 of the plugins. =]
 

Craysh

Dabbler
Joined
Aug 12, 2012
Messages
29
If your having any trouble setting up autoprocessing from sickbeard just ask. I've never had problems with it.

Yes, everything should update from within their respective webinterface. I noticed maraschino wont update till the database is initialized for the first time, maybe by changing a setting and restarting it from within it's gui. The only one that doesn't have in app updating is sabnzbd, but I have a solutions for that which will be in v0.9 of the plugins. =]

Fantastic! Is it still on track to be released today? Feel free to use my hosting service.
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
Funny - I just came to ask about autoprocesstv along with another question I had. First, onto autoprocess - has anyone gotten it to work and if so, is it possible to post a step by step for us noobs? I have my AutoprocessTV directory under Sickbeard (which I believe is the default), is there a requirement to chmod -R 777 that directory as well? I am getting a little nervous about all of the chmodding required when I don't really know what I am doing! :)

Second question and more theoretical in nature - if the purpose of using a FreeBSD jail is to isolate the system from the base FreeNAS system, does it make sense for us to then be creating mount points into our base system? If I have a port open for sab that allows an intruder into by jail, they can then delete anything that is in my mounted folders...Is there a way to avoid that or am I being unreasonably paranoid or do I have it completely wrong?

Thanks very much!
Chris

Yes as others have already stated you will need to chmod these scripts.
This is how I setup my scripts

1. create a folder named 'sripts' within /usr/pbi/sabnzbd-amd64/data by doing this
Code:
jexec 1 csh

Code:
mkdir /urs/pbi/sabnzbd-amd64/data/scripts
This will make a scripts folder
then setup a share if you dont already have one for the jail and go to /usr/pbi/sickbeard-amd64/SickBeard/autoProcessTV and copy all the files over to the scripts folder. (You may need to copy them to your desktop first (Mac User) before putting them into the scripts folder).

rename
autoProcessTV.cfg.sample
to
autoProcessTV.cfg
and open in text editing program (Mac - textedit)
Add your details e.g change local host to your IP of your jail IP
NOTE: if you have a space in your username make sue you replace the space with a \
Save the file and move it into the scripts folder with the others if you have done so already.
then
Code:
chmod -R 777 /urs/pbi/sabnzbd-amd64/data/scripts

Code:
chmod -R 777 /urs/pbi/sabnzbd-amd64/data/Downloads

and also do this to any Mount Points that you are using to you TV Shows.

Note: If the script files won't let you transfer over to the script folder you will need to chmod it first and then again when the files are in the folder (as I believe the files have permissions).
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
For sickbeard post processing all I do is..

1) in sabnzbd under Folders..
Post-Processing Scripts Folder=/usr/pbi/sickbeard-amd64/SickBeard/autoProcessTV

2) in sabnzbd under Categories create a category with..
Category=tv
Processing=Default
Script=sabToSickBeard.py
Folder/Path=tv

3) Create the file /usr/pbi/sickbeard-amd64/SickBeard/autoProcessTV/autoProcessTV.cfg
Code:
[SickBeard]
host=127.0.0.1
port=8081
username=user
password=pass
web_root=/sickbeard
ssl=0


4) in sickbeard under Config>Search Settings..
put in sabnzbd url, username, password, apikey, and..
SABnzbd Category=tv

Hope that helps
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
I do it even simpler.

In SAB:

  • Don't set up any scripts folder
  • Set up categories for TV, Movies, and Music, with Priority and Processing as Default, folder as the folder where you want these to go under your SAB download directory, and groups/indexer tags as TV, Movies, and Music respectively.
  • Create the folders in the download directory, or don't and let SAB do it automatically
  • If you're going to use the blackhole (which you shouldn't with SB/CP/HP -- let them use the API), go ahead and create subfolders in the blackhole for your categories. NZBs dropped into the subfolders will pick up the subfolder name as their category.

In Sickbeard:
  • In Search Settings, when setting up Sickbeard to talk to SAB using your API key, set the category to TV
  • Under Post-Processing, set the "TV Download Dir" to the download/TV path SAB writes to.
  • Check the "Scan and Process" checkbox

Sickbeard will now watch that folder and process anything that lands there into the appropriate path for the TV show it identifies.

In CouchPotato:
  • In the Downloaders section, set the category for SAB to Movies
  • In the Renamer section, turn on the Renamer
  • Set the From folder to the download/Movies folder from SAB, and the To folder for the root of your Movies storage

CouchPotato will now watch the Movies download folder and process movies out of it into their correct locations.

For HeadPhones:
  • In Download Settings, set the SAB category to Music and set the Music Download Directory to the download/Music path from above
  • In Quality & Post-Processing, tick the "Move downloads to Destination Folder" checkbox and the "Rename files" checkbox
  • Set the destination folder to the root of your music storage, and set any other options you like

Headphones will now watch the Music download folder and process downloads out of that into your music storage under the correct artist/album path.

I get that a long time ago sickbeard and others didn't have their own post-processors, or what they did have wasn't all that good. But that's no longer the case, and they all work flawlessly for me. Let the app that knows about the content do the moving, not SAB. SAB should just download into a deterministic location.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks for the update Joshua!

I sent you a beer in celebration ^_^

Thanks! Much appreciated. Hope you guys enjoy the changes.
 
Status
Not open for further replies.
Top