Web GUI Crashing

Support for the Debian/Ubuntu package, created by JCFP.
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Web GUI Crashing

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Web GUI Crashing

Post 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?
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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.
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Web GUI Crashing

Post by shypike »

CouchPotato, right.
Do you happen to have a large history in SABnzbd?
If so, upgrade to 0.7.4RC1
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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.
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post by FlexibleToast »

Unfortunately, that didn't do the trick. It has crashed a couple times today. How do I upgrade to 0.7.4RC1?
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Web GUI Crashing

Post 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?
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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?
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Web GUI Crashing

Post 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
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Web GUI Crashing

Post 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.
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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.
FlexibleToast
Newbie
Newbie
Posts: 17
Joined: January 8th, 2012, 3:50 pm

Re: Web GUI Crashing

Post 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.
User avatar
sander
Release Testers
Release Testers
Posts: 9061
Joined: January 22nd, 2008, 2:22 pm

Re: Web GUI Crashing

Post 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/
Post Reply