Troubleshooting
Fix 502 Bad Gateway in Nginx
Gateway returned an invalid response from upstream while proxying.
SQL Lens
Run this query locally to surface offenders.
SELECT time_local, request, status FROM logs WHERE status = 502 ORDER BY time_local DESC LIMIT 50Investigate in HUDPlaybook
- Verify upstream pods/processes are healthy and accepting traffic.
- Check keepalive/timeout alignment between Nginx and upstream.
- Inspect error.log for upstream prematurely closed connection entries.