Railway health checks failing
619
HOBBYOP

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?

Solved

55 Replies

619
HOBBYOP

2 years ago

d700d7ec-2321-4589-9b7f-8277bb9bfdf8


619
HOBBYOP

2 years 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

2 years ago

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


619
HOBBYOP

2 years ago

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


2 years ago

our pricing and support is better than theirs 😉


619
HOBBYOP

2 years ago

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


2 years ago

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


619
HOBBYOP

2 years ago

I never set it. Where would I remove it?


2 years ago

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


619
HOBBYOP

2 years ago

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!


619
HOBBYOP

2 years ago

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


619
HOBBYOP

2 years ago

The only search bar I see is in logs


2 years ago

the search bar at the top of the service settings


2 years ago


619
HOBBYOP

2 years ago

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

1319123751861882900


2 years ago

you set it in your railway.toml file


2 years ago

remove the setting from that file


619
HOBBYOP

2 years ago

which one?

healthcheckPath = "/health"

healthcheckTimeout = 100


2 years ago

path


619
HOBBYOP

2 years ago

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


619
HOBBYOP

2 years ago

no, it's still doing it!


2 years ago

you need to push the changes to GitHub


619
HOBBYOP

2 years ago

i did


2 years ago

what does the health check path say now?


619
HOBBYOP

2 years ago

same bullshit


619
HOBBYOP

2 years ago

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


619
HOBBYOP

2 years ago

I promise you I would NEVER implement such a dogshit feature


2 years ago

the language is not needed


619
HOBBYOP

2 years ago

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


619
HOBBYOP

2 years ago

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


2 years ago

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


619
HOBBYOP

2 years ago

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!


619
HOBBYOP

2 years ago

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


619
HOBBYOP

2 years ago

Very bizarre design choices


2 years ago

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


619
HOBBYOP

2 years ago

I never set the healthcheck path


2 years ago

it was in your railway.toml file


619
HOBBYOP

2 years ago

healthcheck = on

was never in there


2 years ago

per your previous message -

healthcheckPath = "/health"

619
HOBBYOP

2 years ago

why would that turn the healthcheck on???


2 years ago

thats turning it on


2 years ago

why wouldn't it? you set it


619
HOBBYOP

2 years ago

lobotomized <:kekw:788259314607325204>


2 years ago

just trying to help point out how settings work


619
HOBBYOP

2 years ago

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


619
HOBBYOP

2 years ago

RENDERRRRRRRRRR


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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...