Application failed to respond error on an active deployment
nahasco
HOBBYOP

2 years ago

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
    }
}

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
    }
}

I appreciate any help

0 Replies

nahasco
HOBBYOP

2 years ago

643c9962-5fa0-449c-82e0-67b30f66c552


nahasco
HOBBYOP

2 years ago

The logs dont show any errors


brody
EMPLOYEE

2 years ago

What do the logs show?


nahasco
HOBBYOP

2 years ago


nahasco
HOBBYOP

2 years ago

Deploy logs, i dont see any errors just celery warnings


brody
EMPLOYEE

2 years ago

Im not sure what your celery logs have to do with the django service?


nahasco
HOBBYOP

2 years ago

Since the celery worker is running in my django service i think its normal to see celery logs here


nahasco
HOBBYOP

2 years ago

I have found this article and am trying to follow it
https://dev.to/techbychoiceorg/django-celery-and-redis-on-railway-214h


brody
EMPLOYEE

2 years ago

you should be running celery as a seprate railway service


brody
EMPLOYEE

2 years ago

thats not the best guide tbh


nahasco
HOBBYOP

2 years ago

Is that a must? I though it is possible to run both on the same service?


brody
EMPLOYEE

2 years ago

it is possible, though far from ideal


nahasco
HOBBYOP

2 years 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
EMPLOYEE

2 years ago

no copy needed, you can deploy the same repo to multiple services


brody
EMPLOYEE

2 years ago

otherwise, yes you got the idea


nahasco
HOBBYOP

2 years ago

Got it, thanks for the guidance


Loading...