health check failing on java backend
ossama-e
PROOP

a year ago

health checks keep failing even though they work fine locally

BUILD SUCCESSFUL in 30s

Mar 06 17:19:40

5 actionable tasks: 5 executed

Mar 06 17:19:40

[build 4/4] RUN ./gradlew build -x test heavy_check_mark emoji 30s

Mar 06 17:19:41

[stage-1 2/3] WORKDIR /app heavy_check_mark emoji 0ms – CACHED

Mar 06 17:19:41

[stage-1 3/3] COPY --from=build /app/build/libs/*.jar app.jar

Mar 06 17:19:41

[stage-1 3/3] COPY --from=build /app/build/libs/*.jar app.jar heavy_check_mark emoji 134ms

Mar 06 17:19:41

exporting to image

Mar 06 17:19:42

[auth] sharing credentials for us-west1.registry.rlwy.net

Mar 06 17:19:42

[auth] sharing credentials for us-west1.registry.rlwy.netheavy_check_mark emoji 0ms

Mar 06 17:19:45

Build time: 35.78 seconds

Mar 06 17:19:54

Mar 06 17:19:54

====================

Mar 06 17:19:54

Starting Healthcheck

Mar 06 17:19:54

====================

Mar 06 17:19:54

Mar 06 17:19:54

Path: actuator/health

Mar 06 17:19:54

Retry window: 10s

Mar 06 17:19:54

Mar 06 17:20:04

Mar 06 17:20:04

1/1 replicas never became healthy!

Mar 06 17:20:04

Healthcheck failed!

Solved

3 Replies

a year ago

You may need to make sure the endpoint accepts requests from health.up.railway.app. That's the URL we use for endpoint checking so if you're validating domains

I can also see error longs in your springboot application https://railway.com/project/9bd38089-b40d-4964-a655-dfb0bb5454c8/service/b90d2253-3ff8-4e2a-bf5b-7123bf5e5f1b?environmentId=38954ca5-e759-4d13-8332-9e57872d1320&id=1690224f-a5f8-4ead-b468-4c76263d59ed#deploy


Status changed to Awaiting User Response Railway 12 months ago


ossama-e
PROOP

a year ago

updated my code to accept requests from it and still getting a health check failure. Also addressed the errors in the logs. Still no change in the healthcheck though


Status changed to Awaiting Railway Response Railway 12 months ago


a year ago

So, we run smoke tests in prod to test healthchecks, and they are working, so unfortunately this will likely come down to debugging the application itself

You may want to try removing the healthchecks, making sure that the request proxies correctly, and then re-adding them (after assuring the endpoint returns the right thing)


Status changed to Awaiting User Response Railway 12 months ago


Railway
BOT

7 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 7 months ago


Loading...