sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

Ravefiend

Dabbler
Joined
Jun 1, 2011
Messages
37
I noticed a similar issue. The new services were all created as uid:gid 1000:1000 (I don't have a uid or gid of 1000). I manually recursively chowned the folders with their corresponding users and groups (chown -R sickbeard.sickbeard sickbeard-amd64/) and then everything worked fine. But until I did that, the services wouldn't start at all.

I got the same behavior today on FreeNAS 8.2.0 (x64). Installed the Sabnzbd 1.0 plugin into the jail which I had already set up with the Subsonic plugin. The sabnzbd files are set up with 1000:1000 permissions and there's no user like sabnzbd. Any reason why this happened? Subsonic uses the media user, which has UID/GID 40001/40001.

Code:
software# pwd
/usr/pbi/sabnzbd-amd64
software# ls -l
total 429
drwxr-xr-x   2 root   1000        2 Sep 27 19:52 .headerdir
-rw-------   1 root   1000      181 Oct 10 12:28 .oauth
-rw-r--r--   1 root   1000   336972 Sep 27 19:56 .pbi-hash-list
drwxr-xr-x   2 root   1000        6 Sep 27 19:52 .sbin
drwxr-xr-x  13 root   1000       26 Oct 10 12:54 SABnzbd
drwxr-xr-x   2 root   1000       56 Sep 27 19:52 bin
-rwxrwxr-x   1 1000   1000       99 Sep 15 19:30 control
-rwxrwxr-x   1 1000   1000     2310 Sep 15 19:30 control.py
drwxr-xr-x   5 media  media       8 Oct 10 12:54 data
-rw-rw-r--   1 1000   1000      885 Sep 15 19:30 default.png
drwxr-xr-x   3 root   1000        5 Oct 10 12:28 etc
-rw-rw-r--   1 1000   1000       15 Sep 15 19:30 freenas
drwxr-xr-x   5 root   1000       13 Sep 27 19:52 include
drwxr-xr-x   4 root   1000       42 Sep 27 19:52 lib
-rwxrwxr-x   1 1000   1000      610 Sep 15 19:30 sabnzbd-update.sh
drwxrwxr-x   3 1000   1000       11 Oct 10 12:28 sabnzbdUI
-rwxrwxr-x   1 1000   1000      203 Sep 15 19:30 tweak-rcconf
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
Unless it's been updated, it's probably 0.7.3, but it does come with a script that will easily update sab (since sab doesn't update through the gui like the others). I used that to update to 0.7.4 and it worked flawlessly.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
ravefiend and sharkaccident

all the plugins here use the 'media' user.
What I do is have a dataset for my videos/downloads/music called media that lives at '/mnt/tank/media' on freenas' userland.
I use a mount point to mount it in the jail as '/mnt/media'
Inside media folder are folders named downloads, videos(tv+movies), music

Inside the jail I recursively set the owner of the '/mnt/media' folder as 'media'
Code:
chown -R media:media /mnt/media

In sabnzbd I just set the folders starting with root, ex. '/mnt/media/downloads/complete' and '/mnt/media/downloads/incomplete'

Tell me if you have any more problems with permission. As they say with unix, if your having problems, it's probably permissions.
 

Child

Dabbler
Joined
Sep 25, 2011
Messages
44
Hey guys - What hardware do you user in your freeNAS System that run sabnzbd and sickbeard? Just asking because my NAS runs on a AMD E-350 and I tried both pbis - both produce rather high System/CPU-loads rendering the machine useless for any other tasks - like playing videofiles from my NFS shares through WD TV live.

So I'm wondering if its just that my System can't handle it?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey guys - What hardware do you user in your freeNAS System that run sabnzbd and sickbeard? Just asking because my NAS runs on a AMD E-350 and I tried both pbis - both produce rather high System/CPU-loads rendering the machine useless for any other tasks - like playing videofiles from my NFS shares through WD TV live.

So I'm wondering if its just that my System can't handle it?

I use an e350 too. I really doubt it's system load that is causing your streaming to not be watchable. What is your zpool setup like? I noticed very high disk use when sabnzbd is unpacking a file (reading parts and writing parts at the same time). I don't have problems on this with on my zpool but have had issue when streaming from a single harddrive while unpacking files.
 

Dagdaraz

Cadet
Joined
Oct 11, 2012
Messages
1
hey guys, so I've currently got both SAB+ and sickbeard working almost flawlessly on my freenas box however when i tried to install the couchpotato PBI, freenas gives me an error "Error: This file was not identified as in PBI format, It might as well be corrupt" this was with the version 1.0 couchpotato PBI on freenas 8.2.0 p1 x64, has anyone else had this issue/has a solution? I've tried re-downloading the PBI multiple times and constantly receive the same error so not sure if its my freenas box or the download?
 

amen

Dabbler
Joined
Sep 22, 2012
Messages
24
[root@FreeNas] ~# jls
JID IP Address Hostname Path
1 - JailPlugins /mnt/Downloads/Jail/JailPlugins
[root@FreeNas] ~# jexec 1 csh
JailPlugins# /usr/pbi/sabnzbd-amd64
/usr/pbi/sabnzbd-amd64: Permission denied.
JailPlugins#

what is missing here I am trying to upgrade the SABnzbd
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
[root@FreeNas] ~# jls
JID IP Address Hostname Path
1 - JailPlugins /mnt/Downloads/Jail/JailPlugins
[root@FreeNas] ~# jexec 1 csh
JailPlugins# /usr/pbi/sabnzbd-amd64
/usr/pbi/sabnzbd-amd64: Permission denied.
JailPlugins#

what is missing here I am trying to upgrade the SABnzbd

/usr/pbi/sbnzbd-amd64 is not an executable. You need to use "cd" to change directories into there. You're going to need basic *nix knowledge on how to navigate the command line if you're going to play around in the jail.
 

amen

Dabbler
Joined
Sep 22, 2012
Messages
24
ahahhaha got it

[root@FreeNas] ~# jexec 1 csh

[root@FreeNas] ~#/usr/pbi/sickbeard-`uname -m`/sickbeard-autoprocess.sh not this bad copy and paste lol

edit [root@FreeNas] ~#/usr/pbi/sabnzbd-`uname -m`/sabnzbd-update.sh

thank you very much toddos

works but in the end it appears this

chown: sabnzbd: Invalid argument

is important?

i start sabnzbd and is 0.7.4 ehehehe :)
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
ahahhaha got it

[root@FreeNas] ~# jexec 1 csh
[root@FreeNas] ~#/usr/pbi/sickbeard-`uname -m`/sickbeard-autoprocess.sh

thank you very much toddos

works but in the end it appears this

chown: sabnzbd: Invalid argument

is important?

i start sabnzbd and is 0.7.4 ehehehe :)

Apparently that script didn't get updated when the rest of the system moved to use media:media instead of sabnzbd:sabnzbd. You probably ought to "chown -R media:media /usr/pbi/sabnzbd-amd64/SABnzbd" (without quotes) to make sure everything's configured correctly.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Apparently that script didn't get updated when the rest of the system moved to use media:media instead of sabnzbd:sabnzbd. You probably ought to "chown -R media:media /usr/pbi/sabnzbd-amd64/SABnzbd" (without quotes) to make sure everything's configured correctly.

Thanks for catching that bug! gonna fix it right now.
 

amen

Dabbler
Joined
Sep 22, 2012
Messages
24
I was doing some commands that do not know what they do and crashed .... lol
i do this chown 777 /usr/pbi/sabnzbd-amd64/data/Downloads/incomplete and
chown 755 /usr/pbi/sabnzbd-amd64/data/Downloads/incomplete

and now doesnt work any more couchpotato can't send movies to sab

in sab as a Warning EX: ERROR: Failed making (/usr/pbi/sabnzbd-amd64/data/Downloads/incomplete/The Matrix 1999 BRRip XviD AC3 WHiiZz)

Its Working Now!!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I was doing some commands that do not know what they do and crashed .... lol
i do this chown 777 /usr/pbi/sabnzbd-amd64/data/Downloads/incomplete and
chown 755 /usr/pbi/sabnzbd-amd64/data/Downloads/incomplete

and now doesnt work any more couchpotato can't send movies to sab

in sab as a Warning EX: ERROR: Failed making (/usr/pbi/sabnzbd-amd64/data/Downloads/incomplete/The Matrix 1999 BRRip XviD AC3 WHiiZz)

Its Working Now!!

lol, 'chown' changes the 'own'er of the file/directory. I doubt you have a 777 or 755 user. 'chmod' changes the permission levels for user,group,world
 

amen

Dabbler
Joined
Sep 22, 2012
Messages
24
I noticed in WebGUI that permissions and owner had changed in volume /mnt/Downloads/Incompleto that is my mount point to /usr/pbi/sabnzbd-amd64/data/Downloads/incomplete, and i set correct permissions and owner again and work
 

bmcclure937

Contributor
Joined
Jul 13, 2012
Messages
110
This piece is very important to get everything working properly. Thanks for sharing. Any chance this could be added to the main guide?
 

robotlover

Cadet
Joined
Sep 29, 2012
Messages
4
Hey Guys, I've been having a bit of trouble with couchpotato 1.0.

It seems like after a certain amount of time, anywhere from a few days to a few weeks couchpotato will just shut down and never be able to start up again.

Through the webgui the switch just switches itself to OFF right away and through the command line in the jail a onestart doesn't doesn't see to work either.

I've chowned the directory to make sure rights are all good for media but still it doesn't work. The only solution I can ever find is to reinstall the plugin.

I've saved my config so it's not like this is completely killing me but it would be nice if there was a better way to get it up and running again.

Any suggestions would be much appreciated!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Guys, I've been having a bit of trouble with couchpotato 1.0.

It seems like after a certain amount of time, anywhere from a few days to a few weeks couchpotato will just shut down and never be able to start up again.

Through the webgui the switch just switches itself to OFF right away and through the command line in the jail a onestart doesn't doesn't see to work either.

I've chowned the directory to make sure rights are all good for media but still it doesn't work. The only solution I can ever find is to reinstall the plugin.

I've saved my config so it's not like this is completely killing me but it would be nice if there was a better way to get it up and running again.

Any suggestions would be much appreciated!

mind saving the logs after a random shutdown. They'd be somewhere in /usr/pbi/couchpotato-amd64/data/
This might give us a clue of what's happening.
 
Status
Not open for further replies.
Top