Server error

502 502 Bad Gateway

A proxy or load balancer could not get a valid response from the application behind it. The front door is fine; whatever it talks to is not.

Common causes

  • PHP-FPM, Node, Gunicorn or a container has crashed or is not listening.
  • The upstream is overloaded and refusing connections.
  • A misconfigured upstream address or port after a deploy.

How to fix it

  • Check whether the application process is running, and look at its log rather than the proxy log.
  • Restart the application service, then find out why it died.
  • Verify the upstream host and port in the proxy configuration.

See what a site actually returns

Run a live check and read the real status code, headers and timings.

Check a website