24 days ago
I have a strange behaviour where a deployment crashes and then succeeds seconds later. This creates false positives, emails and app warnings when the deployment itself is successful. I can’t find any logs (build or deploy) indicating any issues or errors so I’m unsure when the crash occurred or why. Could you help me?
12 Replies
24 days ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 24 days ago
24 days ago
By default, Railway have restart policy enabled, it will restart on failure 10 times, probably something is not ready when the first try of deploy and succed on the next one, do your deployment relies on another service that is serverless?
24 days ago
Not sure.
mayori
By default, Railway have restart policy enabled, it will restart on failure 10 times, probably something is not ready when the first try of deploy and succed on the next one, do your deployment relies on another service that is serverless?
24 days ago
Hi @mayori, thank you! No other service as far as i know. Do I have a way for the deploy to wait for everything to be ready?
24 days ago
No, but if this issue persist, you can disable the Restart Policy on your service settings and take a few minutes before redeploy, this will prevent restart and you'll be able to see the actual error
mayori
No, but if this issue persist, you can disable the Restart Policy on your service settings and take a few minutes before redeploy, this will prevent restart and you'll be able to see the actual error
24 days ago
I'm not seeing anything about the deploy restarting, to be honest, in the logs - it's failing and succeeding the first time
0x5b62656e5d
Is this a Node project?
24 days ago
onsuceeding Yes, it is
24 days ago
0x5b62656e5d
Try this: https://docs.railway.com/deployments/troubleshooting/nodejs-sigterm-handling
24 days ago
Thank you, but I'm already using node server/start.js as start, not npm.
24 days ago
1 of 2 fails, but if I go and click the crashed one, it's in fact deployed successfully.
Attachments
24 days ago
Nothing? How can I raise it with @Railway support ?
15 days ago
...
