2 months ago
Please see logs attached
Attachments
5 Replies
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open Railway • 2 months ago
2 months ago
these logs only show the build succeeded but the app never responded to health checks at /api/health ,i cant see why from here. can you share the deploy logs (not build logs)? in railway dashboard go to your deployment and switch to the deploy logs tab, thats where the actual startup error will be
2 months ago
the logs you gave show that you passed a negative number "-8000" as one of your environmental variables "port", which caused the error you are seeeing: 2026-03-12T12:23:41.503074232Z [err] Error: Invalid value for '--port': '${PORT:-8000}' is not a valid integer. change "-8000" to "8000"
taitammanhattan-max
Yes, here are the deploy logs, thanks
2 months ago
your entrypoint is passing ${PORT:-8000} as a literal string to uvicorn instead of letting the shell evaluate it. in your dockerfile or entrypoint.sh, make sure the command uses shell form not exec form, so change it to something like uvicorn app:app --host 0.0.0.0 --port $PORT and make sure it runs through a shell so the variable actually gets resolved