sabnzbd / sickbeard / couchpotato pbi's

Status
Not open for further replies.

maikels86

Cadet
Joined
Sep 16, 2012
Messages
1
Im fairly new to unix & freenas.. but ive got it all working. After some research it all wasn't that hard as I expected.

There is however a minor problem on my side of which any of you could help me with. Im using sabnzbd to download, and sickbeard/couchpotato for post-processing.

This all works out well, however I many times get to see I dont have permissions to remove a file of which they processed.

I also see that not all programs are not running under media somehow...

Jail# ps -aux
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
media 22931 61.1 1.8 104052 37288 ?? SJ 11:48AM 37:16.31 /usr/pbi/headphon
media 8459 15.7 6.9 382292 143316 ?? IJ 8:01PM 451:27.27 /usr/pbi/sabnzbd -
media 23366 0.7 2.8 157040 58468 ?? SJ 12:02PM 1:31.16 /usr/pbi/sickbear
root 3130 0.0 0.0 6924 488 ?? SsJ 6:56PM 0:00.26 /usr/sbin/syslogd
root 3317 0.0 0.0 7980 548 ?? SsJ 6:56PM 0:00.28 /usr/sbin/cron -s
root 25070 0.0 0.5 74012 10940 ?? IsJ 12:27PM 0:01.83 /usr/pbi/sabnzbd-
root 25075 0.0 0.5 74012 10328 ?? IsJ 12:27PM 0:01.86 /usr/pbi/sickbear
root 25080 0.0 0.5 74012 11060 ?? IsJ 12:27PM 0:01.79 /usr/pbi/headphon
root 25085 0.0 0.6 78108 13204 ?? IsJ 12:27PM 0:02.23 /usr/pbi/couchpot
media 25328 0.0 3.3 147064 67584 ?? SJ 12:28PM 1:15.70 /usr/pbi/couchpot
root 25637 0.0 0.1 10316 2260 0 SJ 12:49PM 0:00.04 /bin/tcsh
root 25641 0.0 0.1 8048 1076 0 R+J 12:49PM 0:00.00 ps -aux


I think that is the reason why my files do not get right permissions sometimes. But i dont know how to solve it.

My sab category locations are:

/usr/pbi/Downloads/TV
/usr/pbi/Downloads/Films
/usr/pbi/Download/Muziek

sickbeard/couch/headphones postprocess them to:
/usr/pbi/Media/TV
/usr/pbi/Media/Films
/usr/pbi/Media/Muziek

both have a mount point and are accesable via cifs as a guest account.
 

toddos

Contributor
Joined
Aug 18, 2012
Messages
178
Your main processes are running under media. The ones running under root are processes that handle the GUI monitoring. Add "w" to your ps command line, like "ps waux", to get "wide" output and be able to see more (or all) of the command line so you'll see what's going on.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@maikels86
Your processing are running correctly as toddos said. Your deletion permission problems have to do with the world permissions of the files and the user that samba is having you act as. Not really an expert at the samba stuff as I don't use it much but either set up samba differently or just set the files to be 777 in sabnzbd/sickbeard/ect...
 

Tyrith

Dabbler
Joined
Aug 31, 2012
Messages
21
As my pile of information is still sitting there looking a bit overwhelming, it looks like the only issue I'm having now after a few days of leaving everything, is that

a) SickBeard still won't run, it's still thinking there's something sitting on port 8081. Nothing shows up when checking with ps -ux. Unable to connect to 8081. The specific error is in my previous post.
b) I upgraded to 0.9 on everything, the only thing that caught me off guard was the lack of plugin "extra" screens on the Services list. I'm not seeing anything there that would hint to a place to edit ports and whatnot which was said to be added in. I'm not sure if the lack of headphones/sabnzbd/couchpotato indicates anything related to the fact there's some sort of ghost haunting my sickbeard port.

Any advice on how to fix this? Reinstalls, reboots, tweaks. The only thing I haven't done is manual installs on everything.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
As my pile of information is still sitting there looking a bit overwhelming, it looks like the only issue I'm having now after a few days of leaving everything, is that

a) SickBeard still won't run, it's still thinking there's something sitting on port 8081. Nothing shows up when checking with ps -ux. Unable to connect to 8081. The specific error is in my previous post.
b) I upgraded to 0.9 on everything, the only thing that caught me off guard was the lack of plugin "extra" screens on the Services list. I'm not seeing anything there that would hint to a place to edit ports and whatnot which was said to be added in. I'm not sure if the lack of headphones/sabnzbd/couchpotato indicates anything related to the fact there's some sort of ghost haunting my sickbeard port.

Any advice on how to fix this? Reinstalls, reboots, tweaks. The only thing I haven't done is manual installs on everything.

I looked at your last post your doing some wacky stuff. The plugin is supposed to start from the jail. you were running python from the freenas userland. That's why you were missing Cheetah, it was only installed in the local install of python, within the 'jail_dir'/usr/pbi/plugin-arch/lib/python2.7 directory.

Did you try starting stuff from the gui? if that doesn't work run the below
Code:
jls #find your jail id
jexec 1 csh # assuming it's 1
service sickbeard onestatus #check the plugins status
service sickbeard onestart # try and start it and look for errors


Also, why do you use 'ps' to see what's sitting on ports? that's what 'sockstat' is for


It seems like your having alot of trouble, you can check the video on the OP, it shows me installing and starting a plugin. If you can't get it working that's why we do everything in a jail, just stop your jail, delete the directory, create a new one, and once you got everything working snapshot it.
Goodluck!
 

Tyrith

Dabbler
Joined
Aug 31, 2012
Messages
21
I looked at your last post your doing some wacky stuff. The plugin is supposed to start from the jail. you were running python from the freenas userland. That's why you were missing Cheetah, it was only installed in the local install of python, within the 'jail_dir'/usr/pbi/plugin-arch/lib/python2.7 directory.

Did you try starting stuff from the gui? if that doesn't work run the below

Also, why do you use 'ps' to see what's sitting on ports? that's what 'sockstat' is for

I'm doing wacky stuff because as far as running the FreeNAS GUI to "install" these plugins and have an error-free time, I've been unable to :( The GUI itself seemed extremely problematic to me when I was recommended to turn it off/on because sometimes it would "flake out" and not let stuff get loaded (similar to the way you have to change screens after turning stuff off/on in order to verify them.) As I'm unsure on how to get actual logging from these things through the GUI, so I ran it off python (googling this stuff brings up a lot of 0.7 pages, which is where that was taken from I believe)

Anyhoo, Cheetah was there. I can replicate this by doing a wipe of the plugins, doing a reinstall, rebooting my system and having Cheetah being installed, while at the same time, none of the plugins start due to Cheetah not being found. Sounds wacky/goofy, but that's what it was doing :(

I had run the 'service sickbeard onestatus' before with no luck, however -- after running it in conjunction with the jls / jexec 1 csh, it's telling me that sickbeard is running as 4275. :S That's obviously the issue, apparently it's running when the GUI's saying it's off. After getting rid of it, and starting it with service sickbeard onestart, that seems to get me a proper running sickbeard version. :D

Sorry for the lack of experience here, despite being brought up as an 11 year old running slackware on my 486, there's still a lot of commands I'm not familar with, and I'll usually just fumble around with something until I find a way to get it to work. I was using ps simply because that's what I've always used to check lists of processes and was unaware there was something to check actual ports (other than a manual port scanner, which is what I used prior to having this pointed out haha.)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
I'm doing wacky stuff because as far as running the FreeNAS GUI to "install" these plugins and have an error-free time, I've been unable to :( The GUI itself seemed extremely problematic to me when I was recommended to turn it off/on because sometimes it would "flake out" and not let stuff get loaded (similar to the way you have to change screens after turning stuff off/on in order to verify them.) As I'm unsure on how to get actual logging from these things through the GUI, so I ran it off python (googling this stuff brings up a lot of 0.7 pages, which is where that was taken from I believe)

Anyhoo, Cheetah was there. I can replicate this by doing a wipe of the plugins, doing a reinstall, rebooting my system and having Cheetah being installed, while at the same time, none of the plugins start due to Cheetah not being found. Sounds wacky/goofy, but that's what it was doing :(

I had run the 'service sickbeard onestatus' before with no luck, however -- after running it in conjunction with the jls / jexec 1 csh, it's telling me that sickbeard is running as 4275. :S That's obviously the issue, apparently it's running when the GUI's saying it's off. After getting rid of it, and starting it with service sickbeard onestart, that seems to get me a proper running sickbeard version. :D

Sorry for the lack of experience here, despite being brought up as an 11 year old running slackware on my 486, there's still a lot of commands I'm not familar with, and I'll usually just fumble around with something until I find a way to get it to work. I was using ps simply because that's what I've always used to check lists of processes and was unaware there was something to check actual ports (other than a manual port scanner, which is what I used prior to having this pointed out haha.)

Make sure if you run any of the service commands to do it from your jail, otherwise they wont work. Weird the gui wasn't correctly showing the services as running.
Ignore all the 0.7 stuff, everything's is now run fro the jail so really that needs to be your mindset. Jailip, jail fileroot, jail (actually local) python
logs can be found in your pbi's 'data' directory, they can also be viewed from the applications gui once you can connect to it.

So you got everything working then?
 

Tyrith

Dabbler
Joined
Aug 31, 2012
Messages
21
So you got everything working then?

It would appear so on the "it runs" side of things. Any sort of issues I've had were fixed up by the 4 lines you gave me in the previous post. Not being familiar with the pbi services proved to be pretty detrimental as far as bumbling my way through it.

As far as the GUI working, it looks like there's still a wrench in the gear as far as reboots go. I don't expect to be rebooting very often from here on out, but I am required to manually start both sabnzbd and sickbeard after one. Both headphones, and couchpotato work fine after a reboot. Not really something that *needs* to be looked in to as I can just manually start them, but I know you like covering your bugs so if you need information on it, let me know I'll plug anything in there.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
It would appear so on the "it runs" side of things. Any sort of issues I've had were fixed up by the 4 lines you gave me in the previous post. Not being familiar with the pbi services proved to be pretty detrimental as far as bumbling my way through it.

As far as the GUI working, it looks like there's still a wrench in the gear as far as reboots go. I don't expect to be rebooting very often from here on out, but I am required to manually start both sabnzbd and sickbeard after one. Both headphones, and couchpotato work fine after a reboot. Not really something that *needs* to be looked in to as I can just manually start them, but I know you like covering your bugs so if you need information on it, let me know I'll plug anything in there.

If you can successfully start sabnzbd and sickbeard from the gui then it will be added to your jail's /etc/rc.conf which will have the service restart upon a jail reboot.
The next version will also have a reworked init which will better handle stale pidfiles and will have errors of services not starting.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hi there,
would it be possible to repack a new maraschino pbi with latest git files https://github.com/mrkipling/maraschino because i am getting massive exception errors and broken pipe errors , if i use the maraschino webguis updater.
Thank you in advance,
snitride

will do, hopefully that will fix any issues you have. You may also want to check the permissions of your jails '/usr/pbi/maraschino-arch/Maraschino/' directory, It should be owned by media if you on version 0.9
 

snitride

Cadet
Joined
Sep 19, 2012
Messages
2
will do, hopefully that will fix any issues you have. You may also want to check the permissions of your jails '/usr/pbi/maraschino-arch/Maraschino/' directory, It should be owned by media if you on version 0.9

Nice! Thank you.

Maybe you can help me, if i try to search something in CouchPotato with the Maraschino webinterface, i get this strange errors since i updated to the latest maraschino release,
i had to do a manual chmod 666 on the maraschino.db file to be able to update with maraschinos webupdater, because Maraschino was reporting a error not being able to open the maraschino.db file.
DEBUG :: CouchPotato :: EXCEPTION -- [Errno 32] Broken pipe

Both folders "data" and "maraschino" belong recursive to user media and group media.
Strange thing the broken pipe does not appear with every search, but nearly all..

Thank you for any help, hint you can give me,
greetings,
snitride
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Nice! Thank you.

Maybe you can help me, if i try to search something in CouchPotato with the Maraschino webinterface, i get this strange errors since i updated to the latest maraschino release,
i had to do a manual chmod 666 on the maraschino.db file to be able to update with maraschinos webupdater, because Maraschino was reporting a error not being able to open the maraschino.db file.


Both folders "data" and "maraschino" belong recursive to user media and group media.
Strange thing the broken pipe does not appear with every search, but nearly all..

Thank you for any help, hint you can give me,
greetings,
snitride

sorry not really up my alley. I just use the couchpotato userinterface directly and have never had any problems. file permissions shouldn't matter in the case of what your doin though, it's all done with the couchpotato api.
goodluck
 

pete2789

Cadet
Joined
Jul 24, 2012
Messages
8
Just a quick thought / question.
Could Maraschino be run on port 80.
I tried changing it to 80 in the config but when I do it doesn't appear on port 80.
I then have to stop the service using the command line, edit the config file then start the service again.
Is there something that would stop it from running on port 80?
 

amen

Dabbler
Joined
Sep 22, 2012
Messages
24
hello
I installed SABnzbd already managed to make a download but I can not open the folder complete.
it is possible to change the Default Base Folder path: / usr/pbi/sabnzbd-amd64/data to another? For other disk in FreeNAS
I already tried changing the settings are used but in SABnzbd only appears in me as root / usr/pbi/sabnzbd-amd64/data/Downloads/complete
I want to appear here \ \ FreeNAS \ Downloads \ movies

/ usr/pbi/sabnzbd-amd64/data/Downloads is inside \ \ FreeNAS \ Downloads \ Software
and the jail is \ \ FreeNAS \ Downloads \ Jail
 

SteelWolf

Dabbler
Joined
Jan 15, 2012
Messages
14
Has anybody successfully gotten the downloaders to work with .torrent files? I've been getting some strange errors and I am wondering if it has to do with this particular setup.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Just a quick thought / question.
Could Maraschino be run on port 80.
I tried changing it to 80 in the config but when I do it doesn't appear on port 80.
I then have to stop the service using the command line, edit the config file then start the service again.
Is there something that would stop it from running on port 80?

Config? maraschino doesn't have a config file. Just edit the port in maraschino's gui then restart maraschino, I've tested this as working.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
hello
I installed SABnzbd already managed to make a download but I can not open the folder complete.
it is possible to change the Default Base Folder path: / usr/pbi/sabnzbd-amd64/data to another? For other disk in FreeNAS
I already tried changing the settings are used but in SABnzbd only appears in me as root / usr/pbi/sabnzbd-amd64/data/Downloads/complete
I want to appear here \ \ FreeNAS \ Downloads \ movies

/ usr/pbi/sabnzbd-amd64/data/Downloads is inside \ \ FreeNAS \ Downloads \ Software
and the jail is \ \ FreeNAS \ Downloads \ Jail

You SABnzbd is living inside the jail's userland, it can't see outside of it. You must add mount points to allow programs in the jail to interact with files not inside the jail.
(In FreeNAS gui) Services > Plugins > View Mount Points > Add Mount Point
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Has anybody successfully gotten the downloaders to work with .torrent files? I've been getting some strange errors and I am wondering if it has to do with this particular setup.

Which 'downloader'? SABnzbd doesn't use torrents... Sickbeard / Couchpotato / Headphones all can send torrents to transmission if you set them up to.
 
Status
Not open for further replies.
Top