Skip to content

fix: add Railway healthcheck + Dockerfile-naming warning (post-incident) - #54

Merged
lnanology merged 1 commit into
mainfrom
fix/railway-healthcheck-and-dockerfile-warning
Sep 10, 2026
Merged

fix: add Railway healthcheck + Dockerfile-naming warning (post-incident)#54
lnanology merged 1 commit into
mainfrom
fix/railway-healthcheck-and-dockerfile-warning

Conversation

@lnanology

Copy link
Copy Markdown
Owner

Follow-up to the 2026-09-09/10 production outage (PR #51 -> #53): two defensive measures so this class of failure can't silently recur.

  1. railway.json: point deploy.healthcheckPath at the existing (already built, already unauthenticated) /health endpoint in backend/main.py, with a 300s timeout generous enough for litestream restore to finish. With this configured, a future deploy that builds successfully but never actually starts serving traffic will be caught by Railway and the last good deployment kept live, instead of silently going dark the way this incident did (Completed status, 0% CPU/memory, every request timing out at Railway's 15s gateway limit, for 20+ hours before anyone noticed).

  2. nixpacks.toml: a prominent warning comment explaining that Railway auto-detects and prioritizes any repo-root file literally named "Dockerfile" over the "builder": "NIXPACKS" setting in railway.json (confirmed via Railway's own docs) -- which is exactly what caused the outage when PR build: add Dockerfile for Glama MCP server verification #51 added one for an unrelated reason (Glama.ai MCP listing verification).

Follow-up to the 2026-09-09/10 production outage (PR #51 -> #53): two
defensive measures so this class of failure can't silently recur.

1. railway.json: point deploy.healthcheckPath at the existing (already
   built, already unauthenticated) /health endpoint in backend/main.py,
   with a 300s timeout generous enough for litestream restore to
   finish. With this configured, a future deploy that builds
   successfully but never actually starts serving traffic will be
   caught by Railway and the last good deployment kept live, instead
   of silently going dark the way this incident did (Completed status,
   0% CPU/memory, every request timing out at Railway's 15s gateway
   limit, for 20+ hours before anyone noticed).

2. nixpacks.toml: a prominent warning comment explaining that Railway
   auto-detects and prioritizes any repo-root file literally named
   "Dockerfile" over the "builder": "NIXPACKS" setting in railway.json
   (confirmed via Railway's own docs) -- which is exactly what caused
   the outage when PR #51 added one for an unrelated reason (Glama.ai
   MCP listing verification).
@vercel

vercel Bot commented Sep 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
finlab-ai Ready Ready Preview Sep 10, 2026 11:23am UTC

@lnanology
lnanology merged commit 4e033c5 into main Sep 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant