Deploy Crashed
yerlankussainov
HOBBYOP

25 days ago

Hi Railway team,

I’m seeing a “Deploy Crashed” notification/email after deployments, but the deployment itself appears successful in the UI.

Details:

- Service: photofuture

- Environment: production

- Deployment ID: 729ecf04-9507-44c9-b9ec-2382ad81a514

What I see:

- Deployment status is Active

- Initialization, Build, and Deploy are all successful

- The application is reachable and working normally after deploy

- Build logs and deploy logs do not show an actual startup failure

It looks like Railway may be reporting a crash during rollout or old replica shutdown, even though the new deployment is healthy.

Could you please check why the platform is sending a “Deploy Crashed” notification for this deployment?

Thanks.

Solved$10 Bounty

Pinned Solution

Is this a node application? If so, try using node to start your process instead of npm or pnpm or something similar.

https://docs.railway.com/deployments/troubleshooting/nodejs-sigterm-handling

2 Replies

Railway
BOT

25 days ago

Your photofuture service is currently active with status SUCCESS. The "Deploy Crashed" notification is coming from the previous deployment being torn down, not the new one. When a new deployment goes active, the old one is sent SIGTERM and, by default, immediately SIGKILL'd (since draining seconds defaults to 0). If the old process exits with a non-zero code during this forced shutdown, it registers as a crash and triggers the notification. You can address this by handling SIGTERM gracefully in your application so it exits with code 0, and optionally setting RAILWAY_DEPLOYMENT_DRAINING_SECONDS to give it time to shut down cleanly. If you're using Node.js with npm/yarn as the start command, see this guide as the package manager can intercept the signal.


Status changed to Awaiting User Response Railway 25 days ago


Status changed to Open Railway 25 days ago


Is this a node application? If so, try using node to start your process instead of npm or pnpm or something similar.

https://docs.railway.com/deployments/troubleshooting/nodejs-sigterm-handling


Status changed to Solved brody 24 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...