Header Shadow Image


502 Bad Gateway The server returned an invalid or incomplete response.

Running into this error?

502 Bad Gateway
The server returned an invalid or incomplete response.

This error only popped up when keepalived was started.  Otherwise just with HAproxy, a timeout was seen. It appeared as if it was a keepalived config error.  In this case, it was due to a faulty HAproxy configuration:

[root@jenkins01 jenkins]# diff /etc/haproxy/haproxy.cfg-diff01 /etc/haproxy/haproxy.cfg
46c46
<     server         jenkins01.nix.mds.xyz    jenkins01.nix.mds.xyz:10443 ssl check check-ssl verify none

>     server         jenkins01.nix.mds.xyz    jenkins01.nix.mds.xyz:10443 check check-ssl verify none
[root@jenkins01 jenkins]#

The ssl directive was missing from one of the lines above.

Cheers,
Tom
416 618 8456
 

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

     
  Copyright © 2003 - 2025 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License

 

0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.