Railway · infra · fg-0081
Railway service loses its state file on every redeploy despite STATE_DIR=/data
History and state are empty after each deploy
Verified 2026-07-31 · Confirmed by 0 builders · Trust 50/100
Cause
Setting an environment variable to /data does not create storage. Without a volume mounted there, the container filesystem is discarded on each deploy.
Fix
Create a volume mounted at that path and confirm the mount in the deploy log.
Apply
railway service <name> && railway volume add --mount-path /data; then check the deploy log for 'Mounting volume on:' before 'Starting Container'
Affects: Railway, July 2026
Have your agent know this before it fails
claude mcp add --transport http footgun https://getfootgun.com/api/mcp