How do I set healthcheck paths?
yentsun
PROOP

a year ago

Not clear from the docs https://docs.railway.app/reference/healthchecks how to exactly format the paths.

I've set mine as /v4/status assuming it will trigger something like GET {{deployment-url}}/v4/status but deployment keeps failing to fetch the endpoint. It is perfectly reachable by full URL from outside

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

5 Replies

brody
EMPLOYEE

a year ago

Hello, you can see the health check guide here - https://docs.railway.app/guides/healthchecks-and-restarts

But what error is your health check failing with?


yentsun
PROOP

a year ago

Hello, you can see the health check guide here - https://docs.railway.app/guides/healthchecks-and-restarts

But what error is your health check failing with?

I've read the guide, thanks. There is no error but timeouts instead.

I figured the issue is my service runs on `8000` port. How do I set the port then? Something like `:8000/v4/status` ?


yentsun
PROOP

a year ago

Oh, maybe its `204` status code my endpoint responds with, not `200` as decribed in the docs. Will try and report back


yentsun
PROOP

a year ago

yes, responding with `200` status fixed the problem


brody
EMPLOYEE

a year ago

Ah yes that would definitely do it.

But for future reference, the health check path accept only a path and nothing more.


Status changed to Under Review brody over 1 year ago


Status changed to Solved brody over 1 year ago


Loading...