Unclear why deployment failed
ehiaig
HOBBYOP

5 months ago

My fastapi app keeps failing whenever I deploy and both build and deploy logs doen't show anything meaningful. I have my Healthcheck Path set as /health.
Here's the latest deploy logs:
```
Starting Container

INFO:botocore.credentials:Found credentials in environment variables.

INFO: Started server process [1]

INFO: Waiting for application startup.

INFO: Application startup complete.

INFO: Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)

Stopping Container
```
And the latest build logs:
```
Path: /health

Retry window: 5m0s

Attempt #1 failed with service unavailable. Continuing to retry for 4m49s

Attempt #2 failed with service unavailable. Continuing to retry for 4m38s

Attempt #3 failed with service unavailable. Continuing to retry for 4m25s

Attempt #4 failed with service unavailable. Continuing to retry for 4m11s

Attempt #5 failed with service unavailable. Continuing to retry for 3m52s

1/1 replicas never became healthy!

Healthcheck failed!
```

I built and run the docker container locally and the health endpoint was reachachable and everything was ok.

I could debug/fix this myself if I got meaningful logs from either the build or deploy processes. Pls help

$10 Bounty

3 Replies

Railway
BOT

5 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


ehiaig
HOBBYOP

5 months ago

The health endpoint is a valid endpoint as you can see from my local screenshot

Attachments


ehiaig
HOBBYOP

5 months ago

Update, if I remove the set path /health , the app deploys successfully and I'm able to access /health when deployement completes. Why is this the case?


Loading...