Version: (0.5.0)
OS: (Windows 7 x64 FR)
Install-type: (Windows Installer)
Skin: irrelevant
Firewall Software: (Windows own)
Are you using IPV6? (no)
Is the issue reproducible? (yes)
I installed sabnzbd on default port (8080). And I wanted to make it available through a Apache2 reverse proxy (on the same computer), via the port 443 (https). I did that with version 0.4.2 and it worked fine.
Now, when I'm trying to access my application, I get an error : 503 Service Temporarily Unavailable.
My question is... Does this new version have a different behavior that could block my Apache ?
Here is an extract of my apache log :
[Fri Mar 26 08:36:10 2010] [error] (OS 10061)Aucune connexion n’a pu être établie car l’ordinateur cible l’a expressément refusée. : proxy: HTTP: attempt to connect to 127.0.0.1:8080 (localhost) failed
[Fri Mar 26 08:36:10 2010] [error] ap_proxy_connect_backend disabling worker for (localhost)
[Fri Mar 26 08:36:10 2010] [error] proxy: HTTP: disabled connection for (localhost)
The first part of the first line says : "no connection could have been established because the target computer expressly rejected".
As I don't want to use the newly included HTTPS support, but I really want to do this HTTPS redirection with my Apache (partially because I've got my own access rules defined in my virtualhost), is there any way for me, to do this ?
Thanks in advance !
Release 0.5.0 - Reverse Proxy
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.
Re: Release 0.5.0 - Reverse Proxy
I'm also using SAB behind a reverse proxy (nginx in my setup) in exactly same HTTP/HTTPS configuration as yours.
It is working perfectly even with 0.5.0 version.
The error message indicates there is no server (no port opened):
- Check if SAB is running
- Check SAB configuration (particularly web server port)
- Try to connect manually on 8080 port to see if SAB web server responds.
- Check Apache reverse proxy settings (I guess not modified since previous working SAB version, but one never knows)
It is working perfectly even with 0.5.0 version.
The error message indicates there is no server (no port opened):
- Check if SAB is running
- Check SAB configuration (particularly web server port)
- Try to connect manually on 8080 port to see if SAB web server responds.
- Check Apache reverse proxy settings (I guess not modified since previous working SAB version, but one never knows)
Re: Release 0.5.0 - Reverse Proxy
What I have noticed sometimes is that once Apache sees that SABnzbd
is offline, it takes a long time before it checks if it's back online.
I used to restart Apache when I was hit by the 503 message.
Other than that: it's all handled by the internal CherryPy webserver
whose internals we'd rather not touch.
We did apply a patch (in 0.5.0) that solved an issue with your use case.
is offline, it takes a long time before it checks if it's back online.
I used to restart Apache when I was hit by the 503 message.
Other than that: it's all handled by the internal CherryPy webserver
whose internals we'd rather not touch.
We did apply a patch (in 0.5.0) that solved an issue with your use case.
Re: Release 0.5.0 - Reverse Proxy
Hi all,
Thanks for your answers, it's encouraging... That prooves it's supposed to work, I just messed with it somewhere... That's cool...
By the way, SAB is working (as I can access it locally, from port 8080), and I restarted my Apache after changing my VirtualHost (old SAB url was : "http://localhost:8080/sabnzbd/" now it's "http://localhost:8080/") ... But even after this restart, I had the 503 error.
I'll find what's wrong and be back to you !
Regards,
Thanks for your answers, it's encouraging... That prooves it's supposed to work, I just messed with it somewhere... That's cool...
By the way, SAB is working (as I can access it locally, from port 8080), and I restarted my Apache after changing my VirtualHost (old SAB url was : "http://localhost:8080/sabnzbd/" now it's "http://localhost:8080/") ... But even after this restart, I had the 503 error.
I'll find what's wrong and be back to you !
Regards,
Re: Release 0.5.0 - Reverse Proxy
Found it !
It just reinstalled the new version (0.5.1RC2), and in the wizard, instead of choosing "make it available only from my PC" (I don't know why I checked this yesterday), I put "make it available from all the PCs of my network".
And now it works just great ! ... And outside of the wizard, the difference would be in Configuration / General, and in "Sabnzbd Host", instead of "localhost", I should have put "0.0.0.0" it seems to be part of some kind of .htaccess rule !
Now I'll check if this new release fixes my charset issue (other thread) !
Thanks anyway !
It just reinstalled the new version (0.5.1RC2), and in the wizard, instead of choosing "make it available only from my PC" (I don't know why I checked this yesterday), I put "make it available from all the PCs of my network".
And now it works just great ! ... And outside of the wizard, the difference would be in Configuration / General, and in "Sabnzbd Host", instead of "localhost", I should have put "0.0.0.0" it seems to be part of some kind of .htaccess rule !
Now I'll check if this new release fixes my charset issue (other thread) !
Thanks anyway !
-
- Newbie
- Posts: 2
- Joined: August 14th, 2009, 10:11 am
- Location: Dallas, TX
Re: Release 0.5.0 - Reverse Proxy
Thank you so much for posting a follow up with your fix as it helped me out. I changed my apache2 reverse proxy configuration to use the IP address that was entered in the sabnzbd configuration option that you mentioned (instead of localhost) and this appears to have resolved my issue.
Re: Release 0.5.0 - Reverse Proxy
Hi,
I run the same reverse proxy configuration (HTTP sabnzbd 8080 --> https lighttpd 443) using lighttpd.
For security reasons, I have only opened https in the firewall and let http closed.
Now, that configuration generally works fine, but when I try to enter the configuration menu I get redirected to http:
In the web interface the link is https://host/sabnzbd/connections which gets redirected to http://host/sabnzbd/connections/ and as the http port is not open, that doesn't work. manually entering https://host/sabnzbd/connections/ works perfectly, though.
Just wondering whether that's a lighttpd issue, as you seem to have the same configuration, except you likely also have http open. Could one of you please check whether you get redirected to http as well?
I run the same reverse proxy configuration (HTTP sabnzbd 8080 --> https lighttpd 443) using lighttpd.
For security reasons, I have only opened https in the firewall and let http closed.
Now, that configuration generally works fine, but when I try to enter the configuration menu I get redirected to http:
In the web interface the link is https://host/sabnzbd/connections which gets redirected to http://host/sabnzbd/connections/ and as the http port is not open, that doesn't work. manually entering https://host/sabnzbd/connections/ works perfectly, though.
Just wondering whether that's a lighttpd issue, as you seem to have the same configuration, except you likely also have http open. Could one of you please check whether you get redirected to http as well?