8 months 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.
6 Replies
8 months ago
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 • 8 months ago
angelo-railway
You will need to add a service variable called PORT and then set that to 8080 on Railway.
8 months ago
I have done that too but it keeps saying health check failed.
Status changed to Awaiting Railway Response Railway • 8 months ago
8 months 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 • 8 months ago
8 months 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 • 8 months ago
8 months ago
I've opened this up to the community so they can pitch in and help with the issue you're running into
8 months ago
Hi @sriharshit1, can you share the 'failing error', something that help up know what's happening.