Blog

Notes from running things in production

What actually happens when an AI agent is pointed at a live server: what it can do, where it has to stop and ask, and the failures worth knowing about first.

Web servers

nginx 502 Bad Gateway: Upstream Connection Refused

When nginx returns 502 and the error log shows connect() failed (111: Connection refused), the upstream service is not listening. This guide shows how to confirm the refused upstream, locate the active vhost, and choose between restarting the service or fixing the proxy_pass port.

9 min read