2 years ago
I'm building a python app with a /health path that returns status 200. When I deploy it to railway, the health check fails. What gives?
55 Replies
Logs
Attempt #1 failed with service unavailable. Continuing to retry for 1m39s
Attempt #2 failed with service unavailable. Continuing to retry for 1m28s
Attempt #3 failed with service unavailable. Continuing to retry for 1m16s
Attempt #4 failed with service unavailable. Continuing to retry for 1m12s
Attempt #5 failed with service unavailable. Continuing to retry for 1m4s
Attempt #6 failed with service unavailable. Continuing to retry for 48s
Attempt #7 failed with service unavailable. Continuing to retry for 18s
1/1 replicas never became healthy!
Healthcheck failed!2 years ago
our pricing and support is better than theirs 😉
2 years ago
it's not mandatory, it was something you set so you can always remove it
2 years ago
we don't set it automatically, it can be removed in the service settings
you need to be more specific. I looked in there multiple times and I couldn't find a way to turn it off
2 years ago
you can use the search bar!
2 years ago
the search bar at the top of the service settings
2 years ago
2 years ago
you set it in your railway.toml file
2 years ago
remove the setting from that file
2 years ago
path
2 years ago
you need to push the changes to GitHub
2 years ago
what does the health check path say now?
I'm pretty sure I have never had this much difficulty deploying a node server to the cloud <:doge:951339002278055946>
2 years ago
hmmm I don't know what we could do better here, these are your settings
2 years ago
the language is not needed
It wouldn't have been needed 30 minutes ago, or if it worked on the first try, but now I'm very frustrated
2 years ago
that is your railway.toml file and the platform is simply respecting your settings
2 years ago
it seems your configurations are preventing that, I'll check things out closer when in back at my laptop
Yea, yea, it's all MY fault. Railway is the MOST PERFECT, MOST USABLE, MOST INTUITIVE HOSTING APP OUT THERE
2 years ago
that's our goal!
2 years ago
looks like you have removed the health check!
and it took way too long because there's no "healthcheck on / healthcheck off" flag for some reason
2 years ago
You set the healthcheck path, if you dont want a healthcheck you don't set a path
2 years ago
it was in your railway.toml file
2 years ago
per your previous message -
healthcheckPath = "/health"2 years ago
thats turning it on
2 years ago
why wouldn't it? you set it
2 years ago
just trying to help point out how settings work
dear god the fucking env vars don't work <:kekw:788259314607325204>
BANKRUPTCY
BANKRUPTCY
BANKRUPTCY
BANKRUPTCY
BANKRUPTCY
2 years ago
you haven't set any?
2 years ago
2 years ago
env vars arent going to work on render either if you don't set any
2 years ago
!s
Status changed to Solved brody • over 1 year ago
