Service is not restarting itself on crash?
ssesfahani
HOBBYOP

6 months ago

Not sure what else I need to enable. Every now and again, the service gets an error and it fails to reboot properly. It goes down into the Crashed state.

Deployment id example: cfd9e190-a183-4555-b8aa-195d3ce33dd7

5 Replies

6 months ago

Isn’t Crashed a state that gets set after all retries get exhausted? I might be wrong but if is happening now and then maybe your application is crashing, railway picks up on that and reconciliates it to be running again but after X amount of tries it goes into Crashed


ssesfahani
HOBBYOP

6 months ago

That sounds right to me, but I don't believe it is retrying at all.


ssesfahani
HOBBYOP

6 months ago

Bun v1.2.21 (Linux x64 baseline)
error: script "start" exited with code 1
Mounting volume on: /var/lib/containers/railwayapp/bind-mounts/0bbb8442-215c-4819-9f88-e836acdf1871/vol_tdt0oflp5pr31s8q
Stopping Container
Stopping Container

ssesfahani
HOBBYOP

6 months ago

This is all I see on the crash, and then it never recovers and gets put in a Crashed state


ssesfahani
HOBBYOP

6 months ago

And restart policy is set to Always


Loading...