R
Railway11mo 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
Percy11mo ago
Project ID: N/A
Dem
DemOP11mo ago
N/A
Brody
Brody11mo ago
are you saying the previous deployment dropped offline?
Dem
DemOP11mo ago
Ya
Brody
Brody11mo ago
so the new deployment failed it's health checks after the 300 seconds correct?
Dem
DemOP11mo ago
ya
Brody
Brody11mo ago
it never actually finished deploying?
Dem
DemOP11mo ago
No description
Brody
Brody11mo ago
what's the status on the green deployment
Dem
DemOP11mo 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
Brody11mo ago
what's the status on the green deployment? active? completed?
Dem
DemOP11mo ago
completed, it's the previous deployment
Brody
Brody11mo ago
yeah it should stay active in this scenario
Dem
DemOP11mo 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
Brody11mo 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
DemOP11mo ago
Thanks I'm not sure if it's completed or not, but it was working before I pushed the failed deployment
Brody
Brody11mo ago
oh, please check the status (click it)
Dem
DemOP11mo ago
oh ya it says completed
Dem
DemOP11mo ago
No description
Brody
Brody11mo 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
DemOP11mo ago
It fails with a http response 500 hmm weird If it’s relevant it’s automatically deployed when I pushed to GitHub
Brody
Brody11mo ago
i will set my test up to fail with 500 and will push from github, thank you for the added info
Dem
DemOP11mo ago
thanks!
Brody
Brody11mo ago
still unable to reproduce
No description
No description
Dem
DemOP10mo 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
DemOP10mo 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
DemOP10mo ago
as in creating a new project?
Brody
Brody10mo ago
yeah
Dem
DemOP10mo 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