R
Railway12mo ago
Sync

Server Error: Application failed to respond

Project ID: fde24f92-82da-4b2c-a408-5a97c62e4951 I am attempting my first upload to railway and I am getting a Server Error. Its a django app. Deployed successfully. There isn't anything in the deploy logs as why its having the server error. Nothing in the Build logs. I can't find any information on why I am getting the Server Error.
25 Replies
Percy
Percy12mo ago
Project ID: fde24f92-82da-4b2c-a408-5a97c62e4951
Sync
Sync12mo ago
I had found this article beforehand but the solution it gave me was its already configured. Python / Gunicorn gunicorn listens on 0.0.0.0 and the PORT environment variable by default: gunicorn main:app There is no additional configuration necessary.
Brody
Brody12mo ago
okay and what is the start command Railway is using?
Sync
Sync12mo ago
python manage.py
Brody
Brody12mo ago
that's not gunicorn please reference this file on how to set a start command https://github.com/railwayapp-starters/django/blob/main/railway.json
Sync
Sync12mo ago
What do I change it too?
Brody
Brody12mo ago
there's no universal answer to that question, I'd need to see your repo
Sync
Sync12mo ago
How do I identify what it should be? Also how do I see why I'm getting this error? I can't see where it says anything is having an error
Brody
Brody12mo ago
the "why" is outlined in this docs page
gunicorn <the name of the folder that contains the wsgi.py file>.wsgi
gunicorn <the name of the folder that contains the wsgi.py file>.wsgi
edit: this is the correct syntax now
Sync
Sync12mo ago
What's the exact syntax? gunicorn <edenthought>:wsgi ?
Brody
Brody12mo ago
remove the angle brackets then use this railway.json file, but replace its gunicorn command with yours
Sync
Sync12mo ago
Well that failed as well
Sync
Sync12mo ago
No description
Brody
Brody12mo ago
okay thats entirely my fault its a period instead of a colon
Sync
Sync12mo ago
yeah, its still on app failed to respond
Brody
Brody12mo ago
both build and deploy logs please
Brody
Brody12mo ago
both look good
Sync
Sync12mo ago
it is actually running now
Brody
Brody12mo ago
do you have a volume
Sync
Sync12mo ago
Thank you so much...and a volume?
Brody
Brody12mo ago
haha if you dont know then you dont have one, so just give this a read so you can avoid any more failed to respond messages between deployments https://docs.railway.app/deploy/healthchecks
Want results from more Discord servers?
Add your server