Getting error 502 Bad Gateway

From: Joseph Hardeman <jhardeman#colocube.com>
Date: Sat, 29 Nov 2008 18:25:47 -0500


Hi Everyone,

We are having some issues with our haproxy servers, when I go to my web servers and restart them, I take them out of haproxy before restarting my apache servers, but afterwards some people are getting the "502 Bad Gateway The server returned an invalid or incomplete response" error. It doesn't happen every time, I could be jumping around in the web site and then have the "502 Bad Gateway" thrown to us.

I have gone into my haproxy.conf and set "cookie SERVERID rewrite" originally we had it "cookie SERVERID insert indirect nocache" and I had "capture cookie ASPSESSION len 32" which I have now removed.

Even after making these changes, we are still getting the errors. Can someone suggest a fix or a way around this issue? I am putting in the config below.

Also, I upgraded to 1.3.15.6 from 1.3.15.5 and we are still getting the 502 errors. I can go directly to the server and get the web page with no problem.

Thanks to everyone for any help.

Joe

******SNIP FROM HAPROXY****** listen web_proxy

        maxconn 32000
        bind    0.0.0.0:80
        mode http

# cookie SERVERID insert indirect nocache
cookie SERVERID rewrite balance roundrobin server web1 69.25.88.243:80 cookie webserver01 check inter 5000 fall 3 rise 1 maxconn 60 server web2 69.25.88.244:80 cookie webserver02 check inter 5000 fall 3 rise 1 maxconn 60 server web3 69.25.88.245:80 cookie webserver03 check inter 5000 fall 3 rise 1 maxconn 60 server web4 69.25.88.246:80 cookie webserver04 check inter 5000 fall 3 rise 1 maxconn 60 server web5 69.25.88.247:80 cookie webserver05 check inter 5000 fall 3 rise 1 maxconn 60 server web6 69.25.88.248:80 cookie webserver06 check inter 5000 fall 3 rise 1 maxconn 60
# capture cookie ASPSESSION len 32
clitimeout 150000 srvtimeout 30000 contimeout 10000 option abortonclose option httpclose option forwardfor option checkcache rspidel ^Set-cookie:\ IP= retries 3 option redispatch
-- 
This message has been scanned for viruses by Colocube's AV Scanner
Received on 2008/11/30 00:25

This archive was generated by hypermail 2.2.0 : 2008/11/30 00:30 CET