Health check failing issue
sriharshit1
FREEOP

a year ago

In my Spring Boot project i am keep getting health check error even though i add server.port = ${PORT:8080} in my application properties with in my project but it keeps failing. As the project works fully fine on localhost with /actuator/health.

$10 Bounty

6 Replies

You will need to add a service variable called PORT and then set that to 8080 on Railway.


Status changed to Awaiting User Response Railway about 1 year ago


angelo-railway

You will need to add a service variable called `PORT` and then set that to `8080` on Railway.

sriharshit1
FREEOP

a year ago

I have done that too but it keeps saying health check failed.


Status changed to Awaiting Railway Response Railway about 1 year ago


Then you will need to look at the deployment logs to see the issue with your heathcheck.


Status changed to Awaiting User Response Railway about 1 year ago


sriharshit1
FREEOP

a year ago

That was the main issue i am facing when i add healthcheck then it keeps failed and says healthcheck failed but if i skip health check then the deployment will be crashed and the issue is their is no error logs was shown due to which i cannot correct the error as their is no error logs was shown in deploy logs .


Status changed to Awaiting Railway Response Railway about 1 year ago


chandrika
EMPLOYEE

a year ago

I've opened this up to the community so they can pitch in and help with the issue you're running into


jesushdez
HOBBY

a year ago

Hi @sriharshit1, can you share the 'failing error', something that help up know what's happening.


Welcome!

Sign in to your Railway account to join the conversation.

Loading...