Capture what failed and when

Record the first 502 timestamp with timezone, the deployment revision and the affected URL. Check whether only one route fails or the app is unavailable. Use an endpoint designed for health checks. Keep request headers, cookies and customer data out of incident notes.

Compare the public proxy and local application

On a server you administer, check the loopback address that Nginx or your reverse proxy actually uses. A healthy local response with a public 502 shifts attention to proxy routing, upstream address or the connection between them. A local timeout or refusal points you toward the process, listener or application readiness.

Check the service and its timing

With systemctl show, read ActiveState, SubState, Result and ActiveEnterTimestamp for the application’s systemd unit. An inactive unit is a useful clue. A last result of oom-kill is evidence of a recorded memory-related termination, but correlate the timestamps before attributing the current incident to it. Review only the relevant journal window.

Separate the findings from the next action

In a local test fixture, the Observe prototype reported an HTTP 502 and distinguished a failed systemd service from one that still reported active. With an active service, it left the cause unverified. Confirm the deployment and decide on recovery with the service owner before restarting or rolling back.

Verify recovery from both sides

Recheck the local listener and public endpoint. Record the recovered revision, whether important routes work and which signal will tell you if the issue returns. Keep credentials and raw private logs out of any shared report.

Sources

Request early access to Hostingwalk Agent ↗

Back to the blog · Lees in het Nederlands