sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@Josh i could host a VM for you, if that would be of any help to you.

@whyisacow Thanks for the write up. i'll check your approach out later.

Thanks for the offer, I think I'll just build it on another freebsd system I have that it 32bit (the one hosting the git, lol). Only thing is I can't test them, but that should be ok as someone else will surely find bugs in them
 

centex99

Dabbler
Joined
Jul 29, 2012
Messages
45
Josh, seems like great work. I'm fixing to install and just wanted to make sure 0.7 was your latest edition... are you going to have any new updates soon? If so, I may just hold off...
 

centex99

Dabbler
Joined
Jul 29, 2012
Messages
45
ok... I've gotten Sickbeard to run and pass information to sabnzbd... but now I'm trying to get it all to work together to extract the files, rename the files, put them in the tv folder, etc... anyone have any good tutorials/etc for that? I've searched the web and can't seem to find a really good one to follow that is based upon linux/freebsd/nas...
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
Just wondering how to change settings within a file. I have ssh'd into freeenas and ran
Code:
sudo /mnt/tank/Jail/pluginjail/etc/rc.conf

but returns
Code:
sudo: /mnt/tank/Jail/pluginjail/etc/rc.conf: command not found


what am I missing?

thanks
 

Wolfeman0101

Patron
Joined
Jun 14, 2012
Messages
428
Just wondering how to change settings within a file. I have ssh'd into freeenas and ran
Code:
sudo /mnt/tank/Jail/pluginjail/etc/rc.conf

but returns
Code:
sudo: /mnt/tank/Jail/pluginjail/etc/rc.conf: command not found


what am I missing?

thanks

You need to enter the jail. Then edit the rc.conf.

Code:
FreeNAS in dis bitch!
[Bryan@nibbler] ~> su
Password:
[Bryan@nibbler] /mnt/Vol1# jls
   JID  IP Address      Hostname                      Path
     1  -               Attica                        /mnt/Vol1/Jail/Attica
[Bryan@nibbler] /mnt/Vol1# jexec 1 csh
Attica# ee /etc/rc.conf
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
well your running 'sudo', all that does is elevated your permissions, then your running the files name, so your trying to execute rc.conf (not sure if it is even executable). To edit it run an editor on the filename (from within the jail)
Code:
vi /etc/rc.conf
 

Nineset

Cadet
Joined
Aug 11, 2012
Messages
4
Thank you for putting this together. I'm migrating from windows home server after a crash to FreeNAS, sab and sickbeard are major hurtles for getting me to feel like I'm making a good choice. I have 2 dumb questions:

What is the web gui address for sickbeard? I thought it was http://jail.IP:8181...

Second is when I create mounts to link my complete and incomplete folders in the jail to folders outside of the jail, SABNZBD fails when creating folders and thus fails to download anything. If I remove the mounts (links) then the file downloads just fine. What's going on... is it a setting I'm missing or is the the permissions that people have been having trouble with? :confused::confused::confused:

Thanks for the help.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
default port for sickbeard is 8081
or just run 'sockstat' and see what ports stuff is binding too
 

Nineset

Cadet
Joined
Aug 11, 2012
Messages
4
yes 8081 so goofy. Thanks. Sockstat will be good from now on thanks. <--sometimes I forget that I know these things.

Also it took some finagling but logged onto the jail and created some folders (/Usenet/finished; /Usenet/incomplete) ran chmod -R 0777 on them then created the mounts. Finally added /Usenet/finished; /Usenet/incomplete to sabnzbd and it worked. This just took some persistence on getting them all to jive. Final piece was naming it wouldn't work when named "/Usenet/complete"

Thanks for your help, great plugin. Will be following this thread. Much happier now that I have this working!

:D
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
well your running 'sudo', all that does is elevated your permissions, then your running the files name, so your trying to execute rc.conf (not sure if it is even executable). To edit it run an editor on the filename (from within the jail)
Code:
vi /etc/rc.conf

ok, so I this
Code:
vi /mnt/tank/Jail/pluginjail/etc/rc.conf


then added
Code:
sabnzbd_enable="YES"
sickbeard_enable="YES"
couchpotato_enable="YES"


e.g
sendmail_enable="NONE"
syslogd_flags="-ss"
pbid_enable="YES"
transmission_enable="YES"
transmission_watch_dir="/usr/pbi/transmission-amd64/etc/transmission/home/Downlo ads"
transmission_conf_dir="/usr/pbi/transmission-amd64/etc/transmission/home"
transmission_download_dir="/usr/pbi/transmission-amd64/etc/transmission/home/Dow nloads"
transmission_flags="-Y -gsr 2 -B -t -P 51413 --utp -l 60 -m -o -p 9091 -L 240 "
sabnzbd_enable="YES"
sickbeard_enable="YES"
couchpotato_enable="YES"
~
~
~
~
~
~
~
~
~
~
/mnt/tank/Jail/pluginjail/etc/rc.conf: unmodified: line 1

then tried to run SAB
Code:
service sabnzbd start


e.g. this is what i got
[TrentMackness@freenas] ~/tank/Jail/pluginjail/etc> service sabnzbd start
md5: /data/freenas-v1.db: Permission denied
/etc/rc.conf.local: cannot create /var/tmp/rc.conf.freenas: Permission denied

am I doing something wrong.

also I have tried

[root@freenas ~]# cd /mnt/tank/Jail/pluginjail
[root@freenas /mnt/tank/Jail/pluginjail]# jexec 1 csh
pluginjail# service sabnzbd onestart
Starting sabnzbd.
daemon: /usr/local/bin/python: No such file or directory
pluginjail# service sabnzbd start
Starting sabnzbd.
daemon: /usr/local/bin/python: No such file or directory

Thanks
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
well the first one failed because you were starting a service as someone other than root, either switch to root or run 'sudo' before it.

The second parts seems to suggest your jail didn't come with python, this would be weird as all the freenas jails I have looked at seemed to have come with python pre installed. you might want to run 'pkg_info' and see if you have python2.7 installed, is so your stuff got deleted somehow (I have some ideas). Otherwise my assumption the freenas jails come with python may be incorrect. What version freenas jail are you on btw?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
In official plugins python is included within PBI, you might want to consider doing the same.

yeah this is what i was doing before, stopped cause I noticed the jail had python upon install. guess i'll start packaging it again just incase
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
well the first one failed because you were starting a service as someone other than root, either switch to root or run 'sudo' before it.

The second parts seems to suggest your jail didn't come with python, this would be weird as all the freenas jails I have looked at seemed to have come with python pre installed. you might want to run 'pkg_info' and see if you have python2.7 installed, is so your stuff got deleted somehow (I have some ideas). Otherwise my assumption the freenas jails come with python may be incorrect. What version freenas jail are you on btw?

ok so I have tried
Code:
sudo service sabnzbd start

both from cd into the pluginjail and just as freenas root but get this below

[root@FreeNAS /mnt/tank/Jail/pluginjail]# sudo service sabnzbd start
Sorry, user root is not allowed to execute '/usr/sbin/service sabnzbd start' as
root on FreeNAS.local.
also tried not being cd into the jail
and
[root@FreeNAS ~]# sudo service sabnzbd start
Sorry, user root is not allowed to execute '/usr/sbin/service sabnzbd start' as
root on FreeNAS.local.
Really want this to work, but starting to give up hahah. Anyone up for a video on youtube hahaha??
 

Nineset

Cadet
Joined
Aug 11, 2012
Messages
4
There are some instructions on how to install on pg 17, but to start the service you need to run this command to get you inside the jail you will know because your prompt will change:

jexec 1 csh

then run this:

service sabnzbd onestart

You have to do this every time you restart your freenas server too (i my experience).
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
There are some instructions on how to install on pg 17, but to start the service you need to run this command to get you inside the jail you will know because your prompt will change:

jexec 1 csh

then run this:

service sabnzbd onestart

You have to do this every time you restart your freenas server too (i my experience).

got it working. thanks heaps. worked fine. Is there anyway to get it to work automatically on boot some how??

cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
yeah I think you were just confusing 'cd'ing into the jail as running commands in the jail 'jexec' sounds all good now. once you add..
Code:
sabnzbd_enable="YES"

into the /etc/rc.conf in your jail it should start upon boot of the jail
 

Nineset

Cadet
Joined
Aug 11, 2012
Messages
4
Just a note: If Sabnzbd hangs on unpacking or quick checking etc etc.

I've found that using shell to removing the folder for the file be downloaded and then restarting sabnzbd service inside the jail resolves the issue.

jexec 1 csh
service sabnzbd restart (or onerestart if your rc.conf is not configured)

This is great getting these running, thanks a million.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
well there's that too =P
Hopefully looking into fixing that soon, have no idea why that's happening. started a gui branch in the git repo so thats the current priority but auto start will need to get fixed too
 
Status
Not open for further replies.
Top