502 Bad gateway error origin server respond normally

Hello, recently i’m facing a 502 bad gateway spikes on the site, even with the origin servers working normally, i have 3 servers operating with load balance, the origin servers without cloudflare respond normally in times of 502 spike, what could be happening?

The 502/504 errors are caused by a problem connecting to an upstream server - meaning your server is trying to initiate a process and this fails to work as expected or times out.

In most cases of 502 errorrs back-end servers are not communicating correctly. When this happens, you will see color page with Cloudflare branding and the Error 502 Bad Gateway. Review this Community Tip for fixing 502 or 504 gateway errors.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.