Health check failed - Spring boot App
aravind-anbalagan
HOBBYOP

2 months ago

Hello Team,

During the deployment, build is fine and deployment during the health check, it got time out.

In order to solve the issue,

  1. Increase the timeout.
  2. Set the actuator/health, which works in local.
  3. Set explitly PORT 8080 in variable. Attaching required details. recent deployment Id. d34598dc.

Attachments

$10 Bounty

2 Replies

Status changed to Awaiting Railway Response Railway 2 months ago


domehane
FREE

2 months ago

Hello, your build is fine, the jar was created successfully. the issue is that what you shared are only build logs, the actual spring boot startup logs are in a separate "deploy logs" tab on railway. the real error causing the health check to fail will be there. can you share those runtime/deploy logs?


Your logs show: Attempt #1 failed with service unavailable. Continuing to retry , which means the issue is most likely related to how you're configuring your PORT.

Railway docs: "Not listening on the PORT variable or omitting it when using target ports can result in your health check returning a service unavailable error"

You can read more about this here: https://docs.railway.com/deployments/healthchecks#configure-the-healthcheck-port


Welcome!

Sign in to your Railway account to join the conversation.

Loading...