Page 1 of 2

SOLVED: Proxy 502 error help.

Posted: Thu Jan 22, 2015 7:28 am
by panzer
Hi

I get this strange error when trying to access SABnzbd after a reboot

Code: Select all

Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /. Reason: DNS lookup failure for: localhost
To resolve the problem i have to reinstall via the amahi dashboard, but when i reboot i have to reinstall again because of the above error " proxy 502".
Does anyone know what is happening with this ?

Thank you

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 8:16 am
by bigfoot65
Uninstalling and reinstalling is not the solution. Are you using the HDA as your DHCP and DNS server?

This could be related to the web browser or something else local to your HDA.

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 9:41 am
by panzer
Hi, yes I am using the HDA as the DHCP and DNS.
If I uninstall and reinstall SAB through the HDA it comes back. Its strange because it works fine just when I reboot it has this issue.

[ Post made via Android ] Image

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 11:21 am
by bigfoot65
Please check /var/log/amahi-app-installer.log for errors.

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 11:44 am
by panzer
There are no errors in the log file for uninstall or installation.

[ Post made via Android ] Image

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 12:28 pm
by bigfoot65
Interesting. What about in /var/log/boot.log?

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 1:16 pm
by panzer
No errors in there either ? Strange?

Maybe linked to Apache? I recall this might have started after an update. This link may shed some light ?

https://devcentral.f5.com/questions/502-proxy-error


Some log file from Apache

AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Thu Jan 22 14:32:19.788813 2015] [auth_digest:notice] [pid 838] AH01757: generating secret for digest authentication ...
[Thu Jan 22 14:32:19.790420 2015] [lbmethod_heartbeat:notice] [pid 838] AH02282: No slotmem from mod_heartmonitor
[Thu Jan 22 14:32:19.825131 2015] [mpm_prefork:notice] [pid 838] AH00163: Apache/2.4.10 (Fedora) PHP/5.5.19 Phusion_Passenger/3.0.21 configured -- resuming normal operations
[Thu Jan 22 14:32:19.825153 2015] [core:notice] [pid 838] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu Jan 22 18:34:19.449968 2015] [mpm_prefork:notice] [pid 838] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jan 22 18:35:23.355573 2015] [suexec:notice] [pid 811] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00557: httpd: apr_sockaddr_info_get() failed for tiger
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
[Thu Jan 22 18:35:43.508932 2015]


[ Post made via Android ] Image

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 2:33 pm
by bigfoot65
Interesting. Can you access the app via http://sabnzbd:25915? Also there is another option that you could employ. The guidance for it is located in this forum post.

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 3:30 pm
by panzer
Hi the link http://sabnzbd.hda:25915 works.
The default install address http://sabnzbdplus.my domain.com. does not even with port number.


Any ideas?

[ Post made via Android ] Image

Re: Proxy 502 error help.

Posted: Thu Jan 22, 2015 3:33 pm
by bigfoot65
Look at the text in /etc/httpd/conf.d/####sabnzbd.conf and post the results.

Also check the domain name on your server:

Code: Select all

hostname hostname -f