Railway health checks failing
619
HOBBYOP

a year 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?

Solved

55 Replies

619
HOBBYOP

a year ago

d700d7ec-2321-4589-9b7f-8277bb9bfdf8


619
HOBBYOP

a year ago

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!

619
HOBBYOP

a year ago

I've tested the /health path locally and it works great!


619
HOBBYOP

a year ago

Update: I've found the solution - it's to migrate to render.


a year ago

our pricing and support is better than theirs 😉


619
HOBBYOP

a year ago

You have mandatory "hEAltHcHecKs" that stop deployment dead in its tracks


a year ago

it's not mandatory, it was something you set so you can always remove it


619
HOBBYOP

a year ago

I never set it. Where would I remove it?


a year ago

we don't set it automatically, it can be removed in the service settings


619
HOBBYOP

a year ago

you need to be more specific. I looked in there multiple times and I couldn't find a way to turn it off


a year ago

you can use the search bar!


619
HOBBYOP

a year ago

search bar? What search bar? Are we talking about the same app?


619
HOBBYOP

a year ago

The only search bar I see is in logs


a year ago

the search bar at the top of the service settings


a year ago


619
HOBBYOP

a year ago

again, no way to turn this dogshit "feature" off

1319123751861883000


a year ago

you set it in your railway.toml file


a year ago

remove the setting from that file


619
HOBBYOP

a year ago

which one?

healthcheckPath = "/health"
healthcheckTimeout = 100


a year ago

path


619
HOBBYOP

a year ago

are the only 2 settings that have the word health in them


619
HOBBYOP

a year ago

no, it's still doing it!


a year ago

you need to push the changes to GitHub


619
HOBBYOP

a year ago

i did


a year ago

what does the health check path say now?


619
HOBBYOP

a year ago

same bullshit


619
HOBBYOP

a year ago

I'm pretty sure I have never had this much difficulty deploying a node server to the cloud <:doge:951339002278055946>


a year ago

hmmm I don't know what we could do better here, these are your settings


619
HOBBYOP

a year ago

I promise you I would NEVER implement such a dogshit feature


a year ago

the language is not needed


619
HOBBYOP

a year ago

It wouldn't have been needed 30 minutes ago, or if it worked on the first try, but now I'm very frustrated


a year ago

that is your railway.toml file and the platform is simply respecting your settings


619
HOBBYOP

a year ago

I want my node server to WORK, and the platform isn't respecting that


a year ago

it seems your configurations are preventing that, I'll check things out closer when in back at my laptop


619
HOBBYOP

a year ago

Yea, yea, it's all MY fault. Railway is the MOST PERFECT, MOST USABLE, MOST INTUITIVE HOSTING APP OUT THERE


a year ago

that's our goal!


a year ago

looks like you have removed the health check!


619
HOBBYOP

a year ago

and it took way too long because there's no "healthcheck on / healthcheck off" flag for some reason


619
HOBBYOP

a year ago

Very bizarre design choices


a year ago

You set the healthcheck path, if you dont want a healthcheck you don't set a path


619
HOBBYOP

a year ago

I never set the healthcheck path


a year ago

it was in your railway.toml file


619
HOBBYOP

a year ago

healthcheck = on

was never in there


a year ago

per your previous message -

healthcheckPath = "/health"

619
HOBBYOP

a year ago

why would that turn the healthcheck on???


a year ago

thats turning it on


a year ago

why wouldn't it? you set it


619
HOBBYOP

a year ago

lobotomized <:kekw:788259314607325204>


a year ago

just trying to help point out how settings work


619
HOBBYOP

a year ago

dear god the fucking env vars don't work <:kekw:788259314607325204>

BANKRUPTCY
BANKRUPTCY
BANKRUPTCY
BANKRUPTCY
BANKRUPTCY


a year ago

you haven't set any?


a year ago


619
HOBBYOP

a year ago

RENDERRRRRRRRRR


a year ago

env vars arent going to work on render either if you don't set any


a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...