R
Railway9mo ago
Nahasco

Application failed to respond error on an active deployment

I ran railway run with a new start command and now the application is not accessible because of this error. Here is my railway.json
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "sleep 3 && celery -A tibian_backend worker --loglevel=info && python manage.py migrate && gunicorn tibian_backend.wsgi --bind 0.0.0.0:$PORT",
"restartPolicyType": "NEVER",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "sleep 3 && celery -A tibian_backend worker --loglevel=info && python manage.py migrate && gunicorn tibian_backend.wsgi --bind 0.0.0.0:$PORT",
"restartPolicyType": "NEVER",
"restartPolicyMaxRetries": 10
}
}
Before it was like this and it worked perfectly
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "sleep 3 && python manage.py migrate && python manage.py collectstatic --noinput && gunicorn --timeout 500 tibian_backend.wsgi",
"restartPolicyType": "NEVER",
"restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "sleep 3 && python manage.py migrate && python manage.py collectstatic --noinput && gunicorn --timeout 500 tibian_backend.wsgi",
"restartPolicyType": "NEVER",
"restartPolicyMaxRetries": 10
}
}
I appreciate any help
14 Replies
Percy
Percy9mo ago
Project ID: 643c9962-5fa0-449c-82e0-67b30f66c552
Nahasco
NahascoOP9mo ago
643c9962-5fa0-449c-82e0-67b30f66c552 The logs dont show any errors
Brody
Brody9mo ago
What do the logs show?
Nahasco
NahascoOP9mo ago
Nahasco
NahascoOP9mo ago
Deploy logs, i dont see any errors just celery warnings
Brody
Brody9mo ago
Im not sure what your celery logs have to do with the django service?
Nahasco
NahascoOP9mo ago
Since the celery worker is running in my django service i think its normal to see celery logs here
Nahasco
NahascoOP9mo ago
I have found this article and am trying to follow it https://dev.to/techbychoiceorg/django-celery-and-redis-on-railway-214h
DEV Community
Django, Celery, and Redis on Railway
Introduction Using Django Rest Framework, Celery, and Redis I created a personalized quiz...
Brody
Brody9mo ago
you should be running celery as a seprate railway service thats not the best guide tbh
Nahasco
NahascoOP9mo ago
Is that a must? I though it is possible to run both on the same service?
Brody
Brody9mo ago
it is possible, though far from ideal
Nahasco
NahascoOP9mo ago
Ok so I need to make an exact copy of my repository to a new service and adjust the start commands accordingly, right?
Brody
Brody9mo ago
no copy needed, you can deploy the same repo to multiple services otherwise, yes you got the idea
Nahasco
NahascoOP9mo ago
Got it, thanks for the guidance
Want results from more Discord servers?
Add your server