Right after a deploy, nginx returns "502 Bad Gateway" on every page.
BeginnerTroubleshootingSite down
Answer
Likely causes → The new app version crashes on start, listens on a different port than nginx's proxy_pass, binds to 127.0.0.1 inside a container, or hasn't finished booting.
Diagnose →
tail -n 50 /var/log/nginx/error.log # "connect() failed (111: Connection refused) while connecting to upstream"
ss -ltnp | grep 8080
curl -v http://127.0.0.1:8080/healthz
journalctl -u myapp -n 100 --no-pager
Fix → Roll back first, then fix the port or bind address (0.0.0.0), or the startup crash.
Prevent → Health-checked deploys that refuse to switch traffic until the new version answers, and a smoke test in the pipeline that hits a real endpoint.
More on Site down
Every user reports "This site can't be reached — ERR_NAME_NOT_RESOLVED" for your domain.BeginnerALB returns "503 Service Temporarily Unavailable" and the target group shows 0 healthy targets.Beginner`curl https://app.example.com` hangs and ends with "Connection timed out" on port 443.BeginnerAfter a Helm upgrade, the ingress returns "default backend - 404" for your domain.IntermediateAll pods are Running and Ready, but the Service has no endpoints and traffic fails.IntermediateThe site is down only for users in one country or region; everyone else is fine.Intermediate