Overclock.net › Forums › Specialty Builds › Servers › SABnzbd install guide on CentOS
New Posts  All Forums:Forum Nav:

SABnzbd install guide on CentOS

post #1 of 19
Thread Starter 
Hey everyone. Not sure if this is allowed here on OCN, but I just finished a How-To guide on my blog about installing SABnzbd from source, on CentOS 6.5. Just thought I'd share, and see if anyone sees anything wrong with it.

http://deviantengineer.com/2014/01/sabnzbd-from-source/

Thanks!
Edited by tycoonbob - 3/5/14 at 9:33am
post #2 of 19
Thread Starter 
I've modified the init script for SABnzbd, to one which I think is better. I've also added a new post for installing SickBeard, using similar instructions. Headphones is next, with CouchPotatoServer to follow!

http://deviantengineer.com/2014/02/sickbeard-from-source/
Edited by tycoonbob - 3/5/14 at 9:33am
post #3 of 19
Install? i just run ./SABnzbd.py -d and I'm done. I get the new version, copy my config and restart the daemon....
post #4 of 19
Thread Starter 
Quote:
Originally Posted by herkalurk View Post

Install? i just run ./SABnzbd.py -d and I'm done. I get the new version, copy my config and restart the daemon....

Yes, and that's included in my guide. What you have not mentioned are pre-requisites (python, which is already installed, but python-cheetah, par2, and others are not pre-installed with CentOS), nor init script. Do you start SAB manually every time you want to use it? I don't. I want it to start automatically at boot, and I want it to run as a service, thus using init.d. Lastly, I do not like my config files being in a home directory, which is why I've modified the 'norm' to put the config in the application directory. I see no reason for it to be in a home dir, honestly, at least for my uses.
post #5 of 19
I made a small bash script that runs in cron every 15 minutes which does a check to see if the processes(SABnzbd, Sickbeard, Couchpotato) are running and if not, restart them. On reboot, which only happens about once every 6 - 12 months, they will restart automatically and send me an email telling me those processes were restarted. I run a usenet indexer as well and have lots of processes emailing me all day long. I get unhappy when I don't have log emails to delete, it means something is broken.

Also, the only config file in the users home directory is couch potato. For sickbeard and sabnzbd the configs are in the app directory already.
Edited by herkalurk - 2/3/14 at 9:33am
post #6 of 19
Thread Starter 
Quote:
Originally Posted by herkalurk View Post

Also, the only config file in the users home directory is couch potato. For sickbeard and sabnzbd the configs are in the app directory already.

This is not true. if you run "python SABnzbd.py" and no other parameters, sabnzbd.ini will be created in your users directory (/home/user/.sabnzbd/sabnzbd.ini). I believe this is the same for Headphones as well, and I know it is for CP.

The first guide (for SAB) is a work in progress, but I wanted to share it out there. When I first set these products up, I ran them on Windows (and have for well over a year) because I didn't know how to run them on Windows. They are being moved to Linux, which is why I'm working on a complete solution to have all 4 products setup in CentOS, with proper init scripts. There isn't much out there for setting these up on CentOS (or similar), so I thought I would post something to help those non-Linux guru's.

Yeah, a cronjob every 15 minutes will work to keep them running, but there is something about not having a proper init script that bothers me, which is why I'm doing it this way. But I'm pretty well the opposite; I only get emails from my systems when things aren't working.
post #7 of 19
I've had issues with my VPS provider, so I'd rather have the email once an hour to let me know everything is ok, then rather have no emails, then come to find out the VPS has been offline for 6 hours. It's better just to get the heartbeat and know it's still up and running. That's where most of my emails come from. My home server running the sabnzbd and such only emails for problems.

I also wasn't worried about a walk through like you made because I've had to support so many undocumented software for my work. I work for a university, and there are always new opensource programs this professor or that one wants installed. I've learned to just do things on my own and google the errors.
post #8 of 19
Thread Starter 
Yeah, it's not difficult getting software like this running, from source, but for someone without the experience it can be difficult. My biggest hurdle for setting all of this up on Linux was getting the iSCSI volume to work as desired, but it works.

I actually have 3 VPS servers, all with different providers. I host a few websites for various small businesses (as well as my tech blog, and a personal blog) which are all WordPress based. I do have a custom PHP application running on one of these VPS, which I wrote, and is basically a CRUD-style inventory system (with authentication, and user levels). I actually have each VPS pinging the other on a scheduled (5 pings every 2 minutes, via cron) and I will get a notification if 0/5 pings respond. If one of my VPS goes down, I should get two notifications, actually. I have the script emailing my Pushover email, so I get Pushover notifications on my phone, which is more desirable than an email. One of the main websites I host (for a small business that brings in good revenue per month for me) is actually load balanced between two of the VPS, as I have the company paying for a virtual load balancer. I can't remember the last time that site wen't down, but one of the VPS was down a month ago, for a good 6 hours (hardware failure from my host -- got a free month out of it, and I felt no pain from the outage). All in all, I pay ~$15/mo for all three of my VPS. I would wager they bring in a good $500/mo or, between AdSense revenue and payment from these small businesses.

Anyway, not to get off topic, I am setting up Ansible here at home to monitor my services, like SB, SAB, CP, HP, SubSonic, bliss, Splunk, etc. If they fail to respond for more than 10 minutes, bounce the service. If that doesn't resolve it, bounce the server. If the service doesn't come back up, I get another notification. Oh, and Observium will send me a notification that the server rebooted, so I will have that too. Works for me.
post #9 of 19
I've seen some of your other posts and new you had a large setup at home running VMs for different applications. I just have my 2 physical servers (1 running centos 6 and the other server 2008 r2). I have a VPS out in the cloud running a usenet indexer. The VPS only cost me $50 a year, so not expensive, but I only have the 1, so it's easier to have it heartbeat me emails and let me know it's ok. Sounds to me like you could quit your day job and push more toward taking over the internet ad revenue if you put your mind to it. Working from home isn't usually a bad solution.
post #10 of 19
Thread Starter 
Quote:
Originally Posted by herkalurk View Post

I've seen some of your other posts and new you had a large setup at home running VMs for different applications. I just have my 2 physical servers (1 running centos 6 and the other server 2008 r2). I have a VPS out in the cloud running a usenet indexer. The VPS only cost me $50 a year, so not expensive, but I only have the 1, so it's easier to have it heartbeat me emails and let me know it's ok. Sounds to me like you could quit your day job and push more toward taking over the internet ad revenue if you put your mind to it. Working from home isn't usually a bad solution.

Actually, I'm trying to get to a point of working from home and working for myself. If I can pick up a few other small eCommerce gigs like the main one I have, I will be doing good. The one I do have, is expanding quite a bit and adding several new product lines and I get a straight 15% of net profits. The bigger they grow, the bigger my monthly cut grows. As long as their site stays up, I keep products updated, and the inventory system is working for them, it's pretty hands off.
Aside from that, I'm pushing myself into a Web Development/DevOps mindset, which is where I want to be (HTML, CSS, PHP, Python, Ansible, Nginx, Varnish, etc). I make pretty good money in my day job (also in IT, but more of a Systems Engineer working with Microsoft, Citrix, and VMware) so it will be hard to leave that constant, steady pay. My 5-year plan involves working for myself though!
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Servers
Overclock.net › Forums › Specialty Builds › Servers › SABnzbd install guide on CentOS