sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Being very new to freenas....

Is there a guide to installing sabnzbd & sickbeard from the previous posts links?

I just move from WHS...with some difficulty.... and want to get my old sabnzbd+sickbeard setup again.... am missing important TV-episodes :smile: :)

So a guide to installing the files and getting them running/configured would be grand!!

* 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
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
Yay, what a great surprise for the weekend! Can’t wait to get home from work and test this :D

Now i just need to find a disk to migrate my data...
Though i could probably just take the old internal drive, put it in an USB enclosure and connect it to the new NAS....
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
First of all, thank you. Awesome stuff. I've got Sab, SB and HP all visible. Only hiccup is that I can't find Couchpotato. It's not on the jail IP or the FreeNAS IP on Ports 5000 or 8082. Anywhere else I should be looking?

NB - I've started it within the jail as described.
 

pie3

Cadet
Joined
Jul 7, 2012
Messages
8
So here's my take on it.
I followed the guide and succesfully did:

jail1# service sabnzbd onestart
Starting sabnzbd.

but it's not reachable under http://ip:8080/sabnzbd/, neither am I able to stop it:

jail1# service sabnzbd stop
Will not 'stop' sabnzbd because sabnzbd_enable is NO.


Tho I deleted everything in the SABNZBD folder (the 0.6) and copied over newer 7.X sources from the official site.
I guess I shouldn't have done that?

I can confirm plugins should run in principle, transmission is succesfully up and running.

How can I check if it's running?
I guess with "service -e" ?, SABNZBD doesn't show up

EDIT: I reinstalled the 0.6 PBI, restarted the plugin service, did the onestart, still doesn't work, "service -e" shows nothing.
EDIT EDIT: Oh snap, I just realized 0.7 PBI is out, will try with that.

EDIT EDIT EDIT: Oh snap! New error.
Deleted sab 0.6 PBI, installed sab 0.7 PBI, restarted plugin and did the onestart:

jail1# service sabnzbd onestart
Starting sabnzbd.
daemon: jail1# /usr/local/bin/python: No such file or directory

EDIT EDIT EDIT EDIT: Tried to reinstall the PLUGIN-service, so I shutdown the PLUGIN-service, I update the PLUGIN-service with the same PLUGIN PBI, I start it again and all my plugins don't start anymore (transmission such as sabnzbd) and I'm unable to update them again from the GUI, they're simply broken.

Just noticing, seems you should never update your PLUGIN-service when there are already plugins installed or else you will break them?

EDIT EDIT EDIT EDIT EDIT: On FreeNAS restart, I always get this in my log:
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

EDIT EDIT EDIT EDIT EDIT EDIT: I deleted the whole PLUGIN-service and did a complete re-install of the whole thing and it finally works. Haven't yet put transmission or anything else on it, but it seems to work with only sabnzbd (0.7 PBI) now, tho I still get:

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


It looks like SABNZBD cann't be deleted that easily? - Don't know what else, I'm using the same jail-pbi. Something went wrong.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Further to my post just now (which isn't showing up from some reason) go into your jail and do a netstat -a to see if you can see the 8080 port there.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@munificent
couchpotato v2's default port is 5050, you can always check 'sockstat' to see where stuff is listening.

@pie3
That's alot of EDITs =], not sure if upgrades works, especially because of the way I ripped dependencies out of the plugin from 0.6 - 0.7 and rely on dependencies from the FreeNAS Jail (this should no longer be a problem though). I wish they had documentation on the upgrade system, if I ca find it I'll start implementing it.

Also I said use 'service sabnzbd onestart' because then you don't need to edit /etc/rc.conf. If you want to stop use 'service sabnzbd onestop' instead. I think checking the status still works with just 'service sabnzbd status'

I always recommend stopping the programs within their own web gui though, instead of using stop command, just has a slightly higher success rate.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Got it now, thanks for that Josh. Once again, I wanted to thank you and all the others throughout this thread who have been so helpful and done a cracking job getting the non-technical up and running with all the good stuff. I'm sure I speak for the silent majority when I say thanks a lot!
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
When I install couchpotato v0.7 it broke sickbeard and sabnzbd again.

Code:
Attica# service sickbeard start
Starting sickbeard.
daemon: /usr/local/bin/python: No such file or directory
Attica#
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
When I install couchpotato v0.7 it broke sickbeard and sabnzbd again.

Code:
Attica# service sickbeard start
Starting sickbeard.
daemon: /usr/local/bin/python: No such file or directory
Attica#

Are you on 8.2RC1 with the corresponding Jail installed?
Weird, can you run 'pkg_info' and see if python2.7 is on the list. If it is, somehow the python files got deleted without the package being deleted. If it isn't you need to get python back.

A quick fix would be to 'pkg_add -r python2.7' (there some other dependencies that might have been screwed with too that you may need to check)
The dependencies that I expect the jail to be shipped with include python2.7, py27-sqlite3, sqlite3, and gettext.
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
Hi everyone,

i had to uninstall the whole plugin/jail too to make it work - using the latest plugin-jail pbi. Also remember to reboot FreeNAS after uninstalling, reinstalling and such. BTW: Prior to these steps i upgraded to 8.2 RC1.
So far everything is working well. i am not done fully configuring all programs though. But i expect since they already started successfully, they will also run - that is at least my experience with these :smile:

i expect that i still need to add something to rc.conf to make it autostart. i haven't checked thoroughly. i just wanted to let everyone know that it's running well for me so far.

Thank you a lot Josh. Also for the further explanation in your previous posts. Helped me setting this up.
And thank you so much more for your hard work on the plugins (and more) ;-)
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
Awww. i just upgraded a few hours ago xD
Thanks for letting me know. Upgrading again should work most likely.
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
Question about upgrading: should we resist the temptation to upgrade these within the software? I am presuming so but wanted to check. I have the slightly annoying niggle that my CP userscript isn't working in Chrome, but I can live with the minor inconvenience rather than risk my installation.
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
disclaimer for all my posts: i'm using FreeNAS as playground. Since there is no vital data, i test all sort of things and rebuild whenever necessary. i wouldn't recommend doing whatever i suggest without a proper backup... (maybe i should use this as my signature. Though it seems signatures aren't supported here.)

So far i haven't had any problems upgrading within. Also i recall Josh saying that apart from sabnzbd all other plugins use upgrade features within the webinterface. i'm interpreting that as: go ahead and use the upgrade function. i've also upgraded within the programs before using the plugin jail without problems. Seems to be one of the benefits of using Unix.


P.S.: after upgrading from 8.2 RC1 to 8.2 Final i get "WARNING: The volume FreeNAS (ZFS) status is UNKNOWN" after a reboot. This might be related to the drive making weird noises when rebooting or shutting down :smile:
So probably my fault or my hardwares fault.
Oh, might have caused this by deleting/unistalling the plugin jail. Guess i'll redo everything from start tomorrow.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
disclaimer for all my posts: i'm using FreeNAS as playground. Since there is no vital data, i test all sort of things and rebuild whenever necessary. i wouldn't recommend doing whatever i suggest without a proper backup... (maybe i should use this as my signature. Though it seems signatures aren't supported here.)

So far i haven't had any problems upgrading within. Also i recall Josh saying that apart from sabnzbd all other plugins use upgrade features within the webinterface. i'm interpreting that as: go ahead and use the upgrade function. i've also upgraded within the programs before using the plugin jail without problems. Seems to be one of the benefits of using Unix.

Feel free to try upgrading the plugins, but to be safe shutdown the programs and backup their data/ folder. Upgrading within the program's gui only upgrades the programs themselves, not the plugin (which I wrap the program in)
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
It's hard to distinguish between plugins, programs and services - wordwise. Having a webinterface, i'm not sure how to call it anyway. Nowadays i guess that "App" would be what most people would use. Maybe it's because i'm coming from a windows-world ;-)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yeah, it's alot of similarly used terms. This is how I like to define it.
(python) program = sabnzbd, sickbeard, ect...
plugin = the pbi

Lol, doing my weekly upgrades I need to upgrade my os (freenas8.2), jail, plugins, and always stay on latest program...
Guess that's partly why I love opensource, it keeps me busy trying new software, (gotta flash my galaxy s3 phone with the new cyanogenmod 10 today too)
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
After completely redoing everything the plugins seem to work fine now. i still need to configure them though.
i cannot get sabnzbd to autostart though. i added

sabnzbd_enable="YES"

to rc.conf (within the jail), but it doesn't work. All other plugins startup with the system using this method. Any ideas?
When booting i can see something along the lines of "is sabnzbd already running? PID ***X"

Oh and again as a warning: don't uninstall the plugin-jail. There seems to be a bug: http://forums.freenas.org/showthread.php?6808-Help!-Storage-Pool-status-Unknown
 

munificent

Explorer
Joined
Jul 3, 2012
Messages
54
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?
 
Status
Not open for further replies.
Top