Application failed to respond
chinyouhng
HOBBYOP

4 months ago

Hi everyone, I'm a beginner and currently trying to deploy a Django backend api on Railway (Hobby Plan). It works fine locally, but on Railway the container starts, logs show "WSGI loaded", and then it stops without error.

  • I'm using Django + Gunicorn + PostgreSQL (Railway plugin)

  • I already set up Procfile and requirements.txt

  • I set health check to /health but the container still stops

Can anyone help me figure out what could be wrong or guide me how to debug this properly? šŸ™

Thanks in advance!

Solved$10 Bounty

2 Replies

chinyouhng
HOBBYOP

4 months ago

d5b8749b-1f72-4ef7-8c65-6a18e488aa9f


smolpaw
HOBBY

4 months ago

Did you set the port correctly in the Settings -> Public networking ?
Is the deployment crashing ?


chinyouhng
HOBBYOP

4 months ago

  1. I didn’t change anything under Settings -> Public Networking — it's still showing Port 8000, and I never touched that part.

  2. The deployment doesn’t crash with an error. Gunicorn starts, logs show "WSGI loaded", /health returns 200, and then the container stops on its own without exceptions.


chinyouhng
HOBBYOP

4 months ago

The default port was 8000, but I'm listening to 8080, it was fixed after updating the port, thanks!


Status changed to Solved chandrika • 4 months ago


Loading...