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.

Deployments

Recover lost terminal output after failed deploy

A deploy failed, the terminal window closed, and the error scrollback is gone. This guide shows immediate recovery steps for Linux and Windows, then how to capture deploy output permanently.

5 min read

Deployments

Deploy Script Ran but Site Not Updated: Fix Silent Failures

A deploy script or CI pipeline can exit 0 while the web server keeps serving old files. Learn how to trace what is actually running, fix silent failure points, and add post-deploy verification on Linux and Windows.

9 min read

Web servers

nginx duplicate server block for same server_name

Duplicate server blocks with the same server_name cause nginx to serve the first matching block and ignore later ones, often without obvious errors. This guide shows how to trace the active configuration, fix the conflict, and prevent it on Linux and Windows.

7 min read

Web servers

Nginx 504 Gateway Timeout PHP-FPM Slow Script Diagnosis

When nginx returns 504 Gateway Timeout for PHP-FPM, the cause is either a timeout shorter than the script's execution time or a genuinely slow script. This guide shows how to isolate the two using upstream response time from nginx logs.

8 min read

Docker

Fix Docker Pull Manifest Unknown Errors

Learn how to diagnose and fix docker pull manifest unknown errors by checking image references, tag existence, platform compatibility, and registry authentication.

9 min read

Docker

Docker Container Exited with Code 1: Diagnose and Fix

A container that stops immediately with exit code 1 and empty logs usually fails before the app can write anything. Extract the command and environment, replay it in the foreground, and correct the Docker definition on Linux or Windows.

8 min read

Docker

Docker Compose Healthcheck Failing? Diagnose and Fix

When a Docker Compose service is marked unhealthy but application logs show nothing, the healthcheck itself is the problem. This guide shows how to extract the healthcheck definition, run it manually, and fix the failure on Linux and Windows.

9 min read