R
Railway10mo ago
Dem

What should I expect to happen if healthcheck fails?

I thought the new changes will not be deployed and traffic will be directed to previously working version, but looks like the service is not working after healthcheck failed. Is that expected?
32 Replies
Percy
Percy10mo ago
Project ID: N/A
Dem
Dem10mo ago
N/A
Brody
Brody10mo ago
are you saying the previous deployment dropped offline?
Dem
Dem10mo ago
Ya
Brody
Brody10mo ago
so the new deployment failed it's health checks after the 300 seconds correct?
Dem
Dem10mo ago
ya
Brody
Brody10mo ago
it never actually finished deploying?
Dem
Dem10mo ago
No description
Brody
Brody10mo ago
what's the status on the green deployment
Dem
Dem10mo ago
that seems to work fine But I pushed another deployment that fails health checks the red oen one * I thought the green deployment will take all the traffic when the new deployment fails health check?
Brody
Brody10mo ago
what's the status on the green deployment? active? completed?
Dem
Dem10mo ago
completed, it's the previous deployment
Brody
Brody10mo ago
yeah it should stay active in this scenario
Dem
Dem10mo ago
Hmm When I call the API in my deployment it doesn't work though for some reason It says Application failed to respond
Brody
Brody10mo ago
that makes sense given the fact that the green deployment says competed, it means its not running anymore. ill see if i can reproduce, and raise to the team with my findings
Dem
Dem10mo ago
Thanks I'm not sure if it's completed or not, but it was working before I pushed the failed deployment
Brody
Brody10mo ago
oh, please check the status (click it)
Dem
Dem10mo ago
oh ya it says completed
Dem
Dem10mo ago
No description
Brody
Brody10mo ago
gotcha I'm not able to reproduce this yet, what was your health check failing with? still cant reproduce when my health check fails with a non 200 status code or even service unavailable, my previously active service is still active and accessible
Dem
Dem10mo ago
It fails with a http response 500 hmm weird If it’s relevant it’s automatically deployed when I pushed to GitHub
Brody
Brody10mo ago
i will set my test up to fail with 500 and will push from github, thank you for the added info
Dem
Dem10mo ago
thanks!
Brody
Brody10mo ago
still unable to reproduce
No description
No description
Dem
Dem10mo ago
hmm If the build fails does it bring the server down or keep the old deployment? If health check does not pass
Brody
Brody10mo ago
from my screenshot, the previous successful deployment was kept and stayed active, it was not effected at all by the new build failing the health check
Dem
Dem10mo ago
Hmm Let me try that again, thanks! Hmm I tried again. Even when build succeeds if health check fails it's still rejecting my API calls. Maybe my setting is incorrect somewhere?
Brody
Brody10mo ago
dont think thats possible, but try deploying to a new service anyways
Dem
Dem10mo ago
as in creating a new project?
Brody
Brody10mo ago
yeah
Dem
Dem10mo ago
OK.
sergey
sergey10mo ago
It looks like I'm experiencing exactly the same problem. Didn't find this post right away, posted a new one above https://discord.com/channels/713503345364697088/1202585121677643836
Want results from more Discord servers?
Add your server