2 months 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
2 months ago
This thread has been opened as a bounty so the community can help solve it.
Status changed to Open Railway • 2 months ago
2 months 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?
2 months 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?
2 months 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?
2 months 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
2 months 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?
2 months ago
onsuceeding Yes, it is
2 months ago
0x5b62656e5d
Try this: https://docs.railway.com/deployments/troubleshooting/nodejs-sigterm-handling
2 months ago
Thank you, but I'm already using node server/start.js as start, not npm.
2 months ago
1 of 2 fails, but if I go and click the crashed one, it's in fact deployed successfully.
Attachments
2 months ago
Nothing? How can I raise it with @Railway support ?
2 months ago
...
