sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Thanks for your nginx tips, i've been wanting to set it up for a long time, i think now is the time :)


About your Sabnzbd plugin, since i've installed it, i first rebooted last night, and i just found out SAB didn't automatically start at jail boot.
The problem seems to be a pid file not being deleted at reboot (via gui) :
Code:
Aug  5 03:15:20 nas kernel: sabnzbd already running? (pid=3447).
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
djoole, check out the posts just a few pages earlier. You're not alone and Josh already knows about the bug. This is related to sickbeard also starting automatically. You can remove sickbeard from autostart and sabnzbd will startup just fine.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
I'm confused : i'm talking about sabnzbd not starting automatically correctly because the stop just before reboot seems not to delete the pid file, and you are referring to a sickbeard bug..
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
I haven't spent much time troubleshooting yet. But from quick testing I found out that removing Sickbeard from rc.conf somehow allows sabnzbd to autostart.
Someone else here confirmed that as well. though it might just be a coincidence in or cases.
 

djoole

Contributor
Joined
Oct 3, 2011
Messages
158
Okay, that's reaaaally wierd :)
Well so we have to choose to automatically start sab or SB :/
Ok whatever, i never reboot my nas ;)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Yeah, not sure if their related. Just spun up my test FreeNAS system today but I probably wont take a look at stuff for a few days.

Sabnzbd should delete its pidfile when it's shutdown, and it should bu shutdown (serivce sabnzbd stop) when the jail is shutdown, and the jail should be shutdown when FreeNAS is shutdown from the gui. So something along that process is messed up.

Something seems really screwy, can't wait to get some time and see what's going on.
 

tmacka88

Patron
Joined
Jul 5, 2011
Messages
268
hey guys, I have just got my hands on SABnzbd, Sickbeard and CouchPatato. I cant wait for the plugins to become available as ATM sickbeard cannot access my freenas from my Mac. Looking forward to the finished product. Any ideas how far off? I would help with the plugin but unfortunately my programming skills are non-desirable.

cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
K, setup a git server. If you want read or write access just post or send me you public key, and tell me what kind of access you want

you can clone it with..
Code:
git clone ssh://git@fawnhill.no-ip.info:2222/freenas_usenet


I still gotta add the repos and make sure everything is working but this should be helpful in making changes more open / incremental
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Whats wrong with github? :P

Too easy lol, learnig how to setup my own git server will help in giving me an Aneurysm =]
any yeah, the git will contain binaries (which are open source, but are pre compiled)

EDIT 1
Everything should be working, gonna throw in the initial commit soon

EDIT 2
Initial commit is up, everything's ready to be pulled, I just need your public keys
 

calgarychris

Contributor
Joined
Aug 27, 2011
Messages
124
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#

In a similar vein to the problems Wolfeman was having, I am trying to sort out permissions. I would like a watched folder where I can manually dump the occasional nzb from my mac and have it picked up by sab in the jail. I set a mount point that has /mnt/Volume1/Watched as source in Freenas and /mnt/Watched as destination (in the jail) but I get the same issues with sabnzbd on the jail side and user 40001 on the FreeNAS side. I've tried changing permissions to allow "Others" to rwx but it still pops up on the mac asking for a username and pw. Can anyone advise how to set up a watched folder properly?

As an interesting twist in the course of mounting and unmounting a couple of different options, I managed to somehow get a three way mount (with only one source and destination listed under Mount Points) - anyone else experience this? I originally mounted directories on the jail side that were under usr/pbi/sabnzbd-amd64/data/Downloads and then changed my mind and set them to mnt/Downloads/. On the FreeNAS side it was always just /mnt/Volume1/Downloads/. When I downloaded a file with sab it appeared in all three directories. Anyway, it went away after I rebooted the server.


Thanks!
Chris
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
i'm also having troubles with permissions. Especially the NZB blackhole where i want Sickbeard and Couchpotato to store the NZBs. Initiating the downloads via API is quicker, but since sabnzbd doesn't autostart for me yet, i decided to go this way. But as you stated, the plugins don't seem to have permission to write outside of the jail, even if it's rwx for all.

i haven't played around and read enough to justify asking here yet though. But i'm happy to see that i'm not the only one with this issue.
 

whyisacow

Cadet
Joined
Jul 29, 2012
Messages
6
Okay with permission, I only have one problem, nothing really to do with the plugins. Let me explain as it may help others.

My setup:
In freenas I only have one share setup which is /mnt/tank/mediacentre with the permission of 777 and all sub directories and files.

Inside of the above directory path I have setup a directory called /downloads in that directory I setup the following directories;
/mnt/tank/mediacentre/download/sabnzbdb
/mnt/tank/mediacentre/download/sickbeard
/mnt/tank/mediacentre/download/couchpotato

As sabnzbd does all of my downloading I setup the following directory structure;
/mnt/tank/mediacentre/download/sabnzbdb/complete
/mnt/tank/mediacentre/download/sabnzbdb/complete/tv
/mnt/tank/mediacentre/download/sabnzbdb/complete/movie
/mnt/tank/mediacentre/download/sabnzbdb/incomplete
/mnt/tank/mediacentre/download/sabnzbdb/watch

Now to the jail;

In the jail I created the following directories with 777 permissions
/usr/pbi/sabnzbd-amd64/data/Downloads/complete
/usr/pbi/sabnzbd-amd64/data/Downloads/incomplete
/usr/pbi/sabnzbd-amd64/data/Downloads/watch

In the freenas gui I created a mount between;
/mnt/tank/mediacentre/download/sabnzbdb/complete /usr/pbi/sabnzbd-amd64/data/Downloads/complete
/mnt/tank/mediacentre/download/sabnzbdb/incomplete /usr/pbi/sabnzbd-amd64/data/Downloads/incomplete
/mnt/tank/mediacentre/download/sabnzbdb/watch /usr/pbi/sabnzbd-amd64/data/Downloads/watch

In folder configuration of sabnzbd I have Permissions for completed downloads field set to 777

The only problem I have come across with this setup is if a down load goes wrong (not often but it does happen) some files will be left behind which I can't deleted using my windows or linux machines. I just quickly use a console and run the following command to fix the problem (I will most likely write a script to do this automatically through a cron job).
chomd -R 777 /usr/pbi/sabnzbd-amd64/data/Downloads

Don't forget everything has the 777 permissions, this may not suit your set-up.


Cheers
 

whyisacow

Cadet
Joined
Jul 29, 2012
Messages
6
PS I forgot to mention.

My one share that allows all my media devices and computers to connect to has guest permissions with full access and no password.

Cheers
 

kramer

Cadet
Joined
Aug 10, 2012
Messages
2
Well I'm just giving FreeNAS 8.2 a shot. I have been running 8.0.4 for a while now and love it. I'm kind of stuck on a couple of things though. I have the plugins service setup and I can access the jail (jexec 1 csh). I am able to install the SABnzbd plugin but that's where I have some issues when starting it. For some reason it does not put any file in the /usr/local/etc/rc.d folder so 'service sabnzbd onestart' fails. I went ahead and copied the file from /usr/pbi/sabnzbd-amd64/etc/rc.d into /usr/local/etc/rc.d. I tried using a symbolic link first but that gave me the same results as if the file wasn't there. Once the file is there and I have edited the /etc/rc.conf with sabnzbd_enable="YES" I get the following error:

/usr/local/bin/python: can't open file '/usr/pbi/sabnzbd-i386/SABnzbd/SABnzbd.py': [Errno 2] No such file or directory

I have verified that the file is there and the permissions look ok:

software# ls -al /usr/pbi/sabnzbd-amd64/SABnzbd/SABnzbd.py
-rwxr-xr-x 1 root wheel 64911 Jul 19 21:50 /usr/pbi/sabnzbd-amd64/SABnzbd/SABnzbd.py

One thing that I noticed is that I'm on the 32bit version of FreeNAS with the 32bit version of the jail and I downloaded the 32bit version of the plugins. The pbi that I installed looked like a 32bit version (sabnzbd-0.7-i386.pbi) but yet after it installs it shows as 'sabnzbd-0.7-amd64' in the list of installed plugins. Also you will notice that the paths are all 'sabnzbd-amd64'. Could that have something to do with it?

Any ideas?

Thanks

EDIT: amazing how typing things out helps you see something you didn't see before. The path in the error is 'sabnzbd-i386' and the path on my system is 'sabnzbd-amd64' so it definitely has something to do with the 32/64bit pbi files. I have reinstalled the plugin and even the entire jail and I know I'm using the i386 pbi but after it installs it shows up as amd64.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
sorry I think the i386 plugins are borked. I should have a 32bit system to build packages on in a few weeks, otherwise you could just git the source and compile it in the jail.

Just give me your public key, 'package_add -r git', setup your jail user's private key, clone the freenas_usenet repo, and run the './build_all' file
 

kramer

Cadet
Joined
Aug 10, 2012
Messages
2
No problem Joshua. If you can give me a little more details on getting you my public key and setting up my system to compile it I would be happy to help and post it here. Do I need to install 'package_add' command into my jail? If so where would I find that?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
No problem Joshua. If you can give me a little more details on getting you my public key and setting up my system to compile it I would be happy to help and post it here. Do I need to install 'package_add' command into my jail? If so where would I find that?

ssh, then enter your jail 'jexec 1 csh'
*create a public key for your root user (or use a key you already have, and or create a dedicated git user) 'ssh-keygen -t rsa'
*send me your public keyfile or just post the contents '~/.ssh/id_rsa.pub' (I'll give your user access to the source)
*download the source 'git clone ssh://git@fawnhill.no-ip.info:2222/freenas_usenet'
*execute the buils script './build_all'
*the pbi's will be in the i386 folder
 

gesshoku

Dabbler
Joined
Jun 23, 2012
Messages
46
@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.
 
Status
Not open for further replies.
Top