sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I'm so close I can taste it! I have CP and SB both pumping stuff to SAB no problem. But.. post-processing is not working at all. I am not sure this is related to the PBIs in any way, but as I don't know I'll post the problem here anyway.

I have no script window open to me in the SAB categories tab, so I can't select the sick script as I would be used to doing. I have (via a mount point) got SB making the TV show directories I want, but when SAB has finished dling the episodes, the completed files sit in the SAB temporary folder and nothing happens to them!

I've tried the renaming .cfg.sample to .cfg and selecting that folder for post-processing scripts, but it doesn't stick. What is the magic bullet I am missing to make SAB talk to SB and CP when it's done?

Probably need to be a .sh file. Are you just trying to move TV to a certain directory or what?
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Yup. Trying to get it from the temp directory where it should go when completed to the perm directory where the media is stored. Nothing doing!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
This is how I have post processing working for Sickbeard
*in sickbeard make 'SABnzbd Category' = 'tv'
*edit /usr/pbi/sickbeard-amd64/autoProcessTV/autoProcessTV.cfg to have the correct sickbeard information
*in sabznbd make 'Post-Processing Scripts Folder' = '/usr/pbi/sickbeard-amd64/SickBeard/autoProcessTV'
*in sabnzbd make a category with 'Category' = 'tv', 'Script' = 'sabToSickBeard.py', and 'Folder/Path' = 'tv'

This is what I have for CouchPotato v2
*I linked my dataset '/mnt/tank/media' to '/mnt/media' under 'Services > Plugins > Management > Mount Points' in FreeNAS gui
*in sabnzbd choose my completed downloads folder, that's '/mnt/media/downloads/complete' for me
*in sabnzbd make a category with 'Category' = 'movies', 'Script' = 'Default', and 'Folder/Path' = 'movies'
*in couchpotato setup the 'Downloader' 'Sabnzbd' with 'Category' = 'movies'
*in couchpotato under 'Renamer' for 'From' input where sabnzbd will put completed files in the 'movie' category, thats '/mnt/media/downloads/complete/movies' for me

Hope that helps
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
It does help, and I think the problems I am getting are twofold:

1) With Sickbeard, I can't get the Post-Processing Scripts Folder to 'stick'. I rename, point to the correct folder, save the config, and the next time I navigate to that page, the box is empty again. Ergo, no script box for me on the categories page. As I haven't been able to get a script box up at all, I haven't been able to make any progress here.

2) With CP, I have mount points setup as follows:

/[SAB in the jail]/completed_movies_folder --> /mnt/pool/moviepool
[Mounts in the jail]/movies --> /mnt/tank/movies

CP is looking in the SAB completed movies folder (itself mounted to my 'staging area') to move to the Media mount (linking to the completed movie library). I wonder if, somehow, the presence of two mounted folders is throwing off the post-processing? If that's not it then I really have no clue. I'm pretty sure my settings are correct :-/

Despite these problems, even if post-processing doesn't work, it's only a few minutes effort every few days to use a media manager and do it in that semi-automated fashion. It would be nice to crack this final piece and have genuine automation, but what I've got is pretty close as it is.
 

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
Quick question guys - perhaps for Joshua...Is the development of the pbi's at a point where they are "stable" or would they be considered still "beta". I'm very very keen to get these three working on Freenas as it will complete what I wanted my system to do from the get go. That being said, these programs work beautifully on my normal computer and I don't want to mess up the NAS part if the bugs are still being ironed out. So with that in mind, is there a plan to publish a "how to" for noobs like me (in the FreeNAS manual after the Transmission and Firefly sections) and secondly, who and how can I donate beer money to, as this one's near and dear to my heart...

Thanks for all your hard work on this stuff guys, I'm so keen to get this up and running.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I would consider these pbi's stable, at least the backend that's running them is stable. There just an init script controlling python, packaged up to run on our FreeBSD jail. The part I wouldn't consider stable is maraschio, but that's because that particular program has a tendency of randomly forking and it has no config file support, but I know by reading through their xbmc thread the developer wants to eventually fix that. I still need config file support to get maraschino to properly shutdown.

Now I wouldn't consider these v1.0 (ready for production), they still require 2-3 commands to be run from the commandline, though I'll start to look into implementing the FreeNAS gui stuff today hopefully.

If you want you could donate to my paypal account 'joshruehlig@gmail.com', but if that's not convenient it might be easier to just donate to the python projects. I know Headphones has a premium service to pay to use their musicbrainz server (which is less bogged down then the official one).
 

Symbiot

Cadet
Joined
Jul 13, 2012
Messages
7
* First you need to be on FreeNAS 8.2 RC
* then install the FreeNAS Jail (Check the FreeNAS docs)
* Install the pbi's in the FreeNAS gui
* In a shell on you FreeNAS system enter the jail 'jexec 1 csh'
* 'service plugin onestart' where plugin=sabnzbd or sickbeard or couchpotato or headphones or maraschino

The last 2 steps will be in the gui eventually


Thank you... I am getting this error:..

[root@Server ~]# jexec 1 csh
Software# service SABNZBD onestart
SABNZBD does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)

The sabnzbd plugin cannot be started from gui, I assume that's what you meant by evetually being available in gui...

I uploaded plugin sabnzbd from your usenet package, and did the above commands...
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thank you... I am getting this error:..

[root@Server ~]# jexec 1 csh
Software# service SABNZBD onestart
SABNZBD does not exist in /etc/rc.d or the local startup
directories (/usr/local/etc/rc.d)

The sabnzbd plugin cannot be started from gui, I assume that's what you meant by evetually being available in gui...

I uploaded plugin sabnzbd from your usenet package, and did the above commands...

maybe the uppercase? the service names are all lowercase
 

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
Thanks Joshua.

Does anyone know if the issues around the jail have been fixed? At one point I remember reading that if you deleted the jail without uninstalling the pbi's you could corrupt your zpool or something to that effect. Anyone know if there's any issue (and what the steps are) to uninstall the pbi's and jail? If I know I can back out of pbi's without any danger of blowing away my data, I'd like to join the party testing out sab, sickbeard and cp.

Thanks
Chris
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Nah.. I tried lowercase as well.. didn't try with S abnzb.. but will try that when I get a chance..

I don't need to do anything in the gui apart from installing the plugin right? no on/off or anything?

in your jail run 'ls /usr/local/etc/rc.d/' and see what startup scripts you have in there. Did you update your jail, I think when I updated my jail pbi (8.2RC1 > 8.2) it nuked the links that were created from /usr/pbi/$PROGRAM-$ARCH directory to /usr/local, this should n't happen and I don't know what FreeNAS expects us to do for updating the plugins jail.
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
I'm having the SABnzbd permissions error again :( I attached my logs and here are the permissions inside and outside the jail.

Code:
[Derp@nibbler] /mnt/Vol1# ls -lh
total 366
drwxrwxr-x   11 nobody  Users    12B Jul 20 14:47 ./
drwxr-xr-x    4 root    wheel   512B Jul 22 00:13 ../
drwxr-xr-x    7 root    1003     10B Jul 22 00:09 .freenas/
drwxrwxrwx    3 Bryan   Users     3B Jul 10 20:50 .recycle/
-rw-rw-rw-    1 Bryan   Users   575B Jul 18 20:07 .recycle.lnk
drwxrwxrwx    4 40001   Users     4B Jul 23 15:32 BT/
drwxrwxrwx   92 40001   Users    98B Jul 23 15:32 Downloads/
drwxr-xr-x    3 root    wheel     3B Jul 20 14:28 Jail/
drwxrwxrwx  118 40001   Users   129B Jul 22 21:36 Movies/
drwxrwxrwx   52 40001   Users    52B Jul  2 00:25 Music/
drwxr-xr-x    4 root    wheel    11B Jul 20 16:17 Plugins/
drwxrwxrwx   11 40001   Users    15B Jul 23 15:46 Temp/
[Derp@nibbler] /mnt/Vol1#


Code:
Attica# ls -lh
total 318
drwxrwxrwx    4 sabnzbd  1001        4B Jul 23 15:32 BT
drwxrwxrwx   92 sabnzbd  1001       98B Jul 23 15:32 Downloads
drwxrwxrwx  118 sabnzbd  1001      129B Jul 22 21:36 Movies
drwxrwxrwx   52 sabnzbd  1001       52B Jul  2 00:25 Music
drwxrwxrwx    2 sabnzbd  sabnzbd     2B Jul 20 15:53 Scripts
drwxrwxrwx    3 sabnzbd  sabnzbd    12B Jul 23 15:32 admin
-rwxrwxrwx    1 sabnzbd  sabnzbd   3.6K Jul 22 00:14 config.ini
-rwxrwxrwx    1 sabnzbd  sabnzbd   3.6K Jul 22 00:14 config.ini.bak
drwxrwxrwx    6 sabnzbd  wheel      12B Jul 20 10:43 data
drwxrwxrwx    2 sabnzbd  sabnzbd     9B Jul 23 00:43 logs
-rw-------    1 sabnzbd  sabnzbd     5B Jul 22 00:14 sabnzbd-9090.pid
Attica#
 

Attachments

  • jail_sabnzbd.zip
    43.8 KB · Views: 388
  • SABnzbd.jpg
    SABnzbd.jpg
    19.9 KB · Views: 370

pie3

Cadet
Joined
Jul 7, 2012
Messages
8
Hey,

I'm getting loads of:
"Jul 20 03:11:33 nas manage.py: [freeadmin.navtree:413] Couldn't retrieve http://<IP-of-the-NAS-NOT-the-JAIL>/plugins/sabnzbd/_s/treemenu: HTTP Error 502: Bad Gateway"
in my FreeNAS console, even when the sabnzbd service isn't even running - only the plugin-service (jail) is running.

It's really annoying.
Any help would be greatly appreciated.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey,

I'm getting loads of:
"Jul 20 03:11:33 nas manage.py: [freeadmin.navtree:413] Couldn't retrieve http://<IP-of-the-NAS-NOT-the-JAIL>/plugins/sabnzbd/_s/treemenu: HTTP Error 502: Bad Gateway"
in my FreeNAS console, even when the sabnzbd service isn't even running - only the plugin-service (jail) is running.

It's really annoying.
Any help would be greatly appreciated.

Sorry about that. This wont be fixed till I figure out how to do everything in the gui. Gonna be busy for a few days at the least so if anyone wants to grab the source I posted and start adding the files from the source of transmission they are welcome to.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
It does help, and I think the problems I am getting are twofold:

1) With Sickbeard, I can't get the Post-Processing Scripts Folder to 'stick'. I rename, point to the correct folder, save the config, and the next time I navigate to that page, the box is empty again. Ergo, no script box for me on the categories page. As I haven't been able to get a script box up at all, I haven't been able to make any progress here.

2) With CP, I have mount points setup as follows:

/[SAB in the jail]/completed_movies_folder --> /mnt/pool/moviepool
[Mounts in the jail]/movies --> /mnt/tank/movies

CP is looking in the SAB completed movies folder (itself mounted to my 'staging area') to move to the Media mount (linking to the completed movie library). I wonder if, somehow, the presence of two mounted folders is throwing off the post-processing? If that's not it then I really have no clue. I'm pretty sure my settings are correct :-/

Despite these problems, even if post-processing doesn't work, it's only a few minutes effort every few days to use a media manager and do it in that semi-automated fashion. It would be nice to crack this final piece and have genuine automation, but what I've got is pretty close as it is.

So, turns out my CP problems were permissions based. Seems like whenever new folders are created, the permissions set for them are not good old 777. This is a PITA. Is there any rock solid way (preferably command line based, to be sure) that will lock down 777 permissions for all created folders?

I've got around the Sickbeard one by just telling Sick to post process from the folder Sab drops stuff off in. It's not elegant, perhaps, but it works!
 

ljw1

Dabbler
Joined
Apr 29, 2012
Messages
16
@munificent Did you check what permissions are set in sabnzbd. It has a setting for when it is creating new files that allows you define the permissions.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Soooooo... just as with the Post-Processing Folder in the same section, when I type in 777 in the permissions box and hit Save Changes, if I navigate away from that tab to another one then go back again, the permissions box is empty again. Sab won't accept my changes! Can I edit the config file by hand or is there some trick I'm missing?
 

ljw1

Dabbler
Joined
Apr 29, 2012
Messages
16
It sounds like the permissions are set wrong on the ini file that is used by sabnzbd. In the config pages there should be folder name for the root of the install, in that folder will probably be the configuration file. If you can't find it let me know and I will look for the exact filename.
 

robertchas

Cadet
Joined
Jul 25, 2012
Messages
3
wow, what a thread read it from start to finish before atempting anything, done a fresh install of 8.2 release and installed sabnzbd, couchpotato, sickbeard etc and everything worked complete access to all the setup gui's.

Only problem I am having is with the absolute file path in sabnzbd, basically my structure is like this

/mnt/ST2/
/mnt/ST2/jail (dataset)
/mnt/ST2/software (dataset)

I want to have a watched folder for nzb in say /mnt/ST2/watched and conigure sab using this file path /mnt/ST2/ this has worked for me in the past but I am assuming it is something to do with sab running within the jail as in different IP address and does not recognise the /mnt/ST2 path do I need to specify the IP of the mnt outside the jail for this too work or am I over complicating things.

Sabnzbd is creatining all the folders in the default pbi data path which due to permissions I cant access or even change via ftp.

Other than that all seems fine and thanks for a excellent guide any help on this would be great tho.

chas
 
Status
Not open for further replies.
Top