Diagnosing an Nginx 502 from the upstream error log
Distinguish a refused upstream connection, an early close and a response timeout. Check the exact backend from the proxy and verify the same request after the fix.
1 article on this topic
Distinguish a refused upstream connection, an early close and a response timeout. Check the exact backend from the proxy and verify the same request after the fix.