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,
- Increase the timeout.
- Set the actuator/health, which works in local.
- Set explitly PORT 8080 in variable. Attaching required details. recent deployment Id. d34598dc.
Attachments
2 Replies
Status changed to Awaiting Railway Response Railway • 2 months ago
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?
2 months ago
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