2 months ago
Deployed and seems to be running:
INFO: Uvicorn running on http://[::]:4000 (Press CTRL+C to quit)
INFO: Application startup complete.
But when I click the Railway URL (changed to port 4000 of course).
I get the usual Railway message:
Application failed to respond
This error appears to be caused by the application.
Nothing in LiteLLM service log, HTTP log shows:
GET
/
502
59ms
GET
/favicon.ico
502
2ms
2 Replies
2 months ago
Can you change the port of your app to 8080?
Another option is to change the port in settings->public network->public url->port
2 months ago
Problem was this, Host env var was set to "::", but it should have been set to HOST="0.0.0.0", updating it resolved the problem. We probably want to change that in the default template + update Redis to use latest tag as the versioned tag in the template does not exist anymore.
Claude to the rescue...
There's your problem: HOST="::"
That's IPv6 localhost notation. Change it to:
HOST="0.0.0.0"Then click Update Variables. Railway will redeploy automatically, and it should work after that.
Status changed to Solved brody • 2 months ago