Page 1 of 2
Web GUI Crashing
Posted: September 22nd, 2012, 1:49 pm
by FlexibleToast
I've been having issues with the web gui of SABnzbd+ on my Ubuntu Server 12.04.1 crashing. I was told to change the defopts in the init script to contain "-l 2" instead of --daemon. I've noticed that while sometimes I can't access the web gui (it takes between a few hours and a day to crash) it was still downloading things. What could be possible causes of just the web interface crashing? I've even tried purging and reinstalling SAB and just restoring my sabnzbd.ini file to get my configs back, it is still crashing.
Re: Web GUI Crashing
Posted: September 22nd, 2012, 2:00 pm
by shypike
What exactly is crashing in your case?
Simply not responding? Giving error messages, complaining about syntax errors?
On small systems, SABnzbd can have performance problems under heavy load.
What is your system? How fast does it download?
Re: Web GUI Crashing
Posted: September 22nd, 2012, 10:05 pm
by FlexibleToast
shypike wrote:What exactly is crashing in your case?
Simply not responding? Giving error messages, complaining about syntax errors?
On small systems, SABnzbd can have performance problems under heavy load.
What is your system? How fast does it download?
Thanks, for responding. It is up right now, when it goes down again I'll pay more attention to the website error. The website just doesn't respond, but I really haven't paid attention to why I guess.
My system is a custom build I built a while back. It's a Intel Core 2 Quad Q6600 2.4GHz, 6GB DDR2 RAM. I really don't think it would be that my system isn't powerful enough, it is really overkill for what it is doing. The only time the system gets taxed is when Plex Media Server is transcoding, and even then it's about 50% of the CPU.
Re: Web GUI Crashing
Posted: September 23rd, 2012, 12:38 am
by FlexibleToast
It just crashed again. The webpage just says that it is taking too long to respond. Sickbeard, Couchpotato, and Headphones all still work though. Based on you being the second person to mention it might just be struggling I checked top, about 2% of my CPU is being used, but when I looked at free memory...
total used free shared buffers cached
Mem: 5969 5537 431 0 776 3935
-/+ buffers/cache: 824 5144
Swap: 5719 0 5719
Free space is still around 5GB and it hasn't even touched swap.
Also, this has been working for months now and it recently started doing this. The hardware did not change at all and I haven't changed any software configurations (why change what's working?). If there is no way to trouble shoot, I might just be rebuilding this.
Re: Web GUI Crashing
Posted: September 23rd, 2012, 1:29 am
by shypike
CouchPotato, right.
Do you happen to have a large history in SABnzbd?
If so, upgrade to 0.7.4RC1
Re: Web GUI Crashing
Posted: September 23rd, 2012, 8:20 am
by FlexibleToast
shypike wrote:CouchPotato, right.
Do you happen to have a large history in SABnzbd?
If so, upgrade to 0.7.4RC1
Good call, I did have a large history. I've since cleared it out. I guess we'll see what happens now.
Re: Web GUI Crashing
Posted: September 23rd, 2012, 4:49 pm
by FlexibleToast
Unfortunately, that didn't do the trick. It has crashed a couple times today. How do I upgrade to 0.7.4RC1?
Re: Web GUI Crashing
Posted: September 23rd, 2012, 5:16 pm
by sander
FlexibleToast wrote:How do I upgrade to 0.7.4RC1?
Stop SABnzbd. Then:
Code: Select all
wget http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus-beta/0.7.4RC1/SABnzbd-0.7.4RC1-src.tar.gz
tar xvzf SABnzbd-0.7.4RC1-src.tar.gz
cd SABnzbd-0.7.4RC1/
./SABnzbd.py
But I have a question: do you use SAB's HTTPS port? If so, can you turn it off, and try again?
Re: Web GUI Crashing
Posted: September 23rd, 2012, 8:07 pm
by FlexibleToast
I switched to the unofficial repository found on this forum and now I'm running 0.7.3, the version that is in the Ubuntu repos is 0.6 something. And yes, I do use HTTPS. I've been using HTTPS since I've had it installed. You're asking for me to turn it off completely, or recycle it?
Re: Web GUI Crashing
Posted: September 23rd, 2012, 8:29 pm
by sander
FlexibleToast wrote: And yes, I do use HTTPS. I've been using HTTPS since I've had it installed. You're asking for me to turn it off completely, or recycle it?
I don't know what you mean with "recycle", but ... yes, turn off HTTPS in SABnzbd completely.
It might be this problem:
http://wiki.sabnzbd.org/faq#toc33
Re: Web GUI Crashing
Posted: September 23rd, 2012, 8:32 pm
by FlexibleToast
Recycle, as in off/on. I'm off to read up on that problem. We'll see how this newer version fairs though.
Re: Web GUI Crashing
Posted: September 23rd, 2012, 8:45 pm
by sander
FlexibleToast wrote:Recycle, as in off/on. I'm off to read up on that problem. We'll see how this newer version fairs though.
Turning it off in Config -> General by unckecking "Enable HTTPS", and then restarting SABnzbd is the way to do it.
Re: Web GUI Crashing
Posted: September 23rd, 2012, 11:40 pm
by FlexibleToast
After reading the FAQ (which I looked through before, but I must have glanced through too quickly), it sounds like it might be getting accessed too much. It could have been an update to one of the services like sickbeard. I switched those all to use the http port instead of https, they are on the local network after all. Maybe decreasing the https traffic is enough. I really don't want to use http over the internet if I don't have to.
Re: Web GUI Crashing
Posted: September 24th, 2012, 3:06 pm
by FlexibleToast
So, I think you're absolutely right on the problem. It crashed again and I ran the
Code: Select all
netstat -apon | grep -e :8080 -e :9090
like the FAQ says to see if it is the problem. The FAQ says if you see dozens or hundreds of entries, that is the problem. Well, I had to pipe it to more because there was so many. I counted over 20 pages of more and there are 22 entries per page... So, 440 half open connections. It also makes sense because the only thing that has changed is where I'm accessing SAB from. All the stuck connections are from my hotel's IP. That kind of sucks because that is when I would want to use https the most. I do have my VPN that I can use to access everything securely from still I guess.
Re: Web GUI Crashing
Posted: September 24th, 2012, 3:23 pm
by sander
As a workaround, you could try to restart SABnzbd each hour from crontab. A simple wget / curl / lynx should work. See
http://wiki.sabnzbd.org/api#toc21
Disclaimer: I assume but I'm not 100% sure a restart solves the half open connections. So ... test it. :-)
EDIT:
easier method: let SABnzbd restart itself via the builtin scheduler. See
http://localhost:8080/config/scheduling/