What do you have at "hotel" end. Just a laptop with a browser?
I assume all the other software is running on your server.
It is possible to have SABnzbd listen on both HTTP and HTTPS, on different ports.
Just make sure that only the HTTPS port is made available for internet access by your router.
SickBeard and CouchPotato can use the internal-only HTTP port.
Why HTTPS is leaving so many sockets open, I don't know.
Sander: any idea whether these are left open by SABnzbd or by the other two apps?
Web GUI Crashing
Forum rules
Help us help you:
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.
-
- Newbie
- Posts: 17
- Joined: January 8th, 2012, 3:50 pm
Re: Web GUI Crashing
That is how I had it setup before it crashed the most recent time. All the apps are using the internal HTTP connection (Sickbeard, Couchpotato, and Headphones). It was purely the laptop/phone using the hotel's wifi that had crashed it.shypike wrote:What do you have at "hotel" end. Just a laptop with a browser?
I assume all the other software is running on your server.
It is possible to have SABnzbd listen on both HTTP and HTTPS, on different ports.
Just make sure that only the HTTPS port is made available for internet access by your router.
SickBeard and CouchPotato can use the internal-only HTTP port.
Why HTTPS is leaving so many sockets open, I don't know.
Sander: any idea whether these are left open by SABnzbd or by the other two apps?
I was going to say, in sudo's crontab I could just add a service sabnzbdplus restart. I didn't even think about using the scheduler... I go home tomorrow, next time I'm away if I run into the problem again I can try that.sander wrote: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/
Re: Web GUI Crashing
Like I said, I have no explanation for the crashes.
My own downloading is done on a small Ubuntu 12.04 server,
on which SABnzbd runs for weeks with https.
Sander: any bright ideas?
BTW: do you also use a browser plugin like nzbStatus?
My own downloading is done on a small Ubuntu 12.04 server,
on which SABnzbd runs for weeks with https.
Sander: any bright ideas?
BTW: do you also use a browser plugin like nzbStatus?
Re: Web GUI Crashing
I would say: something wrong in the TCP handling / handshake between client and server (=cherrypy, right?) See http://en.wikipedia.org/wiki/File:Tcp_s ... _fixed.svgshypike wrote: Why HTTPS is leaving so many sockets open, I don't know.
Sander: any idea whether these are left open by SABnzbd or by the other two apps?
I can easily imagine that some small plugin code does not handle that state diagram as it should.
Another possible cause: the certificate for SAB's HTTPS is not an official one. Browsers give a warning. Maybe embedded code leaves some session open?
Anyway: I think it's cherrypy's fault it does not clean up those old, half open sessions; cherrypy should protect itself against those sessions and clean them up after some time.
Re: Web GUI Crashing
But why is it not a problem for everyone else?
Is there something "special" in FlexibleToast's setup?
Is there something "special" in FlexibleToast's setup?
Re: Web GUI Crashing
I'm not sure. Things that might play a role:shypike wrote:But why is it not a problem for everyone else?
Is there something "special" in FlexibleToast's setup?
- HTTPS. I'm quite sure it only happens on HTTPS, not on HTTP. If so, that is important information in root-causing the problem
- the Operating System SAB is running on? Does it only happen with Linux (or even only Ulubuntu), or also on Windows, OSX?
- plugins that are used to access SAB? Might be a caused by a nasty plugin: high frequency, or not beautifully programmed
- non-official HTTPS certificate?
- HTTP version used: 0.9, 1.0 or 1.1?
- cherrypy version? Which cherry version does SAB use on Windows?
- known bug in cherrypy?
It would be nice if we could reproduce the problem in a controlled environment. I tried myself yesterday evening: a lot of wget's against SAB's https, and the number of open connections went up (which is strange; the wgets had already finished), but they disappeared automatically after a few minutes (which is good). So, so far I can't reproduce the problem.
Until the root cause has been found, I think a patch would be useful:
I wonder if Cherrypy itself can see it's open connections. And if Cherrypy can close old, hanging connection. A kind of garbage collection
If not, SAB could use a netstat method, and restart itself if the number goes above a certain threshold.
Re: Web GUI Crashing
I found a HTTPS load generator for Linux: "siege".
I ran it for a few minutes, and ... alas no problems: no (half) open sessions in netstat ...
I ran it for a few minutes, and ... alas no problems: no (half) open sessions in netstat ...
Code: Select all
sander@R540:~$ siege https://localhost:9090/
** SIEGE 2.70
** Preparing 15 concurrent users for battle.
The server is now under siege...
HTTP/1.1 200 0.06 secs: 5143 bytes ==> /
HTTP/1.1 200 0.09 secs: 5143 bytes ==> /
HTTP/1.1 200 0.10 secs: 5143 bytes ==> /
HTTP/1.1 200 0.12 secs: 5143 bytes ==> /
HTTP/1.1 200 0.13 secs: 5143 bytes ==> /
HTTP/1.1 200 0.04 secs: 5142 bytes ==> /
HTTP/1.1 200 0.04 secs: 5142 bytes ==> /
HTTP/1.1 200 0.03 secs: 5142 bytes ==> /
HTTP/1.1 200 0.03 secs: 5142 bytes ==> /
HTTP/1.1 200 0.04 secs: 5142 bytes ==> /
^C
Lifting the server siege... done.
Transactions: 8200 hits
Availability: 100.00 %
Elapsed time: 297.03 secs
Data transferred: 40.21 MB
Response time: 0.04 secs
Transaction rate: 27.61 trans/sec
Throughput: 0.14 MB/sec
Concurrency: 1.15
Successful transactions: 8200
Failed transactions: 0
Longest transaction: 0.17
Shortest transaction: 0.01
-
- Newbie
- Posts: 17
- Joined: January 8th, 2012, 3:50 pm
Re: Web GUI Crashing
Yes, I have an extension for Chrome, it's called Sab Connect, I believe.shypike wrote:BTW: do you also use a browser plugin like nzbStatus?
It must be something somewhat common. The solution was discovered in the Frequently Asked Questions.shypike wrote:But why is it not a problem for everyone else?
Is there something "special" in FlexibleToast's setup?
I only ever had this problem when I was at the hotel though. I always connect from outside my network at my dyndns.org site vs the actual local IP. I'm thinking that how the hotel's network handled connections was the problem.
Re: Web GUI Crashing
Ah, SABconnect++, right? That is certainly a suspect. Can you disable it, or let it use plain HTTP?FlexibleToast wrote:Yes, I have an extension for Chrome, it's called Sab Connect, I believe.shypike wrote:BTW: do you also use a browser plugin like nzbStatus?
EDIT:
SABconnect++ should be the first item to check for in the case of unresponding HTTPS:
http://forums.sabnzbd.org/viewtopic.php ... tps#p63784
-
- Newbie
- Posts: 17
- Joined: January 8th, 2012, 3:50 pm
Re: Web GUI Crashing
I can switch it to local ip and http so it only connects if I'm connected by vpn. However, like I said before, while at home it works just fine and it connects to the external address.sander wrote:Ah, SABconnect++, right? That is certainly a suspect. Can you disable it, or let it use plain HTTP?FlexibleToast wrote:Yes, I have an extension for Chrome, it's called Sab Connect, I believe.shypike wrote:BTW: do you also use a browser plugin like nzbStatus?
EDIT:
SABconnect++ should be the first item to check for in the case of unresponding HTTPS:
http://forums.sabnzbd.org/viewtopic.php ... tps#p63784