R
Railway13mo 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
Percy13mo ago
Project ID: fde24f92-82da-4b2c-a408-5a97c62e4951
Sync
SyncOP13mo 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
Brody13mo ago
okay and what is the start command Railway is using?
Sync
SyncOP13mo ago
python manage.py
Brody
Brody13mo 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
SyncOP13mo ago
What do I change it too?
Brody
Brody13mo ago
there's no universal answer to that question, I'd need to see your repo
Sync
SyncOP13mo 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
Brody13mo 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
SyncOP13mo ago
What's the exact syntax? gunicorn <edenthought>:wsgi ?
Brody
Brody13mo ago
remove the angle brackets then use this railway.json file, but replace its gunicorn command with yours
Sync
SyncOP13mo ago
Well that failed as well
Sync
SyncOP13mo ago
No description
Brody
Brody13mo ago
okay thats entirely my fault its a period instead of a colon
Sync
SyncOP13mo ago
yeah, its still on app failed to respond
Brody
Brody13mo ago
both build and deploy logs please
Brody
Brody13mo ago
both look good
Sync
SyncOP13mo ago
it is actually running now
Brody
Brody13mo ago
do you have a volume
Sync
SyncOP13mo ago
Thank you so much...and a volume?
Brody
Brody13mo 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