Page 1 of 1

SABnzbd Super Slow Over Reverse Proxy - Other RP Apps Fine

Posted: May 23rd, 2015, 8:38 pm
by bzowk
Hey Guys -

I've been using SABnzbd together with Sonarr, CouchPotato, Headphones, etc. for over a year now. I love it and have turned many onto it! I currently host everything on a PC running Windows 8.1 x64 (fully patched.) A couple of months ago, I set up Reverse Proxy for all of these services using Apache 2.4 for Windows which is also hosted locally.

Recently, I've noticed the following things when accessing only SABnzbd via Reverse Proxy:
  • Sometimes I must restart the Apache service to be able to connect to SABnzbd
  • When I have SABnzbd open, it's extremely slow. If I try to select an object or move a download, there's a 4-5 second lag (when using a browser on the same local system as the SABnzbd & Apache installation)
  • When I have SABnzbd open, it times out to where I must reload the page
The kicker is that if I use SABnzbd via the direct port, everything works normally. Also, these symptoms only occur in SABnzbd - all of the other "web apps" I access via Reverse Proxy (Sonarr, CouchPotato, Headphones, etc.) work great!

I do use an SSL cert which I have set up in Apache that is tied to my custom domain name so I access everything via HTTPs. Apache is set to access each site it redirects via standard HTTP, though. I also have added my domain name in my local DNS to point to the local IP of the system hosting the apps so I can use the same address locally or remotely. Below is the configuration I have for SABnzbd in my Apache conf file. It's set up the same as all the other services:

Code: Select all

<Location /sabnzbd>
order deny,allow
deny from all
allow from all
ProxyPass http://mydomain.com:8080/sabnzbd
ProxyPassReverse http://mydomain.com:8080/sabnzbd
</Location>
"http://mydomain.com:8080/sabnzbd" is the same address I go to directly where SabNZBD works perfectly. I am using the latest Chrome browser, BTW. The address I go to for SABnzbd locally or remotely to access it via Reverse Proxy is "http://mydomain.com/sabnzbd"

I don't believe slowness was an issue since starting Reverse Proxy, but not 100%

Any suggestions? Thanks!

Re: SABnzbd Super Slow Over Reverse Proxy - Other RP Apps Fi

Posted: May 25th, 2015, 10:15 am
by shypike
We don't really test SABnzbd with reverse proxies and most of the performance is determined by the CherryPy framework we use.
Have you tried SABnzbd 0.8.0Alpha1? It contains a much more recent version of CherryPy.

Re: SABnzbd Super Slow Over Reverse Proxy - Other RP Apps Fi

Posted: May 26th, 2015, 12:39 pm
by bzowk
Thanks for the reply.

No, I'm actually on 0.7.20 currently. I'll attempt an update in a few though and report the results. Thanks!

Re: SABnzbd Super Slow Over Reverse Proxy - Other RP Apps Fi

Posted: May 27th, 2015, 11:11 am
by bzowk
I updated to 0.8.0Alpha1 and experienced a couple of things...

- First, the speed issue over reverse proxy seems to have been resolved (at least so far) Thanks!
- When accessed via reverse proxy - OR - directly via port 9090 (using own SSL certs - 3rd party signed), the session crashes after a couple of hours. I don't have to exit / re-start SAB, but only have to refresh webpage. Perhaps only browser related? (Running latest version of Chrome)
- I did attempt to load a template for the first time - Glitter (the version for 0.8.0) After applying, it shows a Status section on the main page. Every 2 seconds, I got the error: HTTP Traceback (most recent call last). I switched back to the default Gold template and don't get the errors nearly as often, but still get them sometimes. I can't find what is wrong, though... When viewing the log file, it showed the following data:

2015-05-26 21:48:06,721::ERROR::[_cplogging:201] [26/May/2015:21:48:06] HTTP Traceback (most recent call last):
File "cherrypy\_cprequest.pyo", line 656, in respond
File "cherrypy\lib\encoding.pyo", line 188, in __call__
File "cherrypy\_cpdispatch.pyo", line 34, in __call__
File "sabnzbd\interface.pyo", line 691, in index
File "Cheetah\Template.pyo", line 1259, in __init__
File "Cheetah\Template.pyo", line 1546, in _compile
File "genericpath.pyo", line 54, in getmtime

Thanks again for your initial suggestion as so far it seems to have worked. Any ideas about these other 3 things? Thanks again!

Re: SABnzbd Super Slow Over Reverse Proxy - Other RP Apps Fi

Posted: May 27th, 2015, 3:05 pm
by shypike
We probably need to update CherryPy again,
although there's always some problem with it.
Is the trace back only happening with Glitter?