#Listening on 127.0.0.1 instead of 0.0.0.0. Running with gunicorn

49 messages · Page 1 of 1 (latest)

viscid swan
#

Always getting this error while deployin. Project is on Python Django.

solid warrenBOT
#

Project ID: 79f1c83a-6d2b-438b-83e7-222a04cc317a

viscid swan
#

Getting this

#

Do I need to write it in Procfile?

viscid swan
#

@echo pike

surreal ember
#
  1. railway currently runs on the Google cloud platform, and the only region available at the moment is us-west1, not aws
  2. gunicorn listens on host 0.0.0.0 and Environment variable PORT by default
  3. you forgot to prefix the Procfile's start command with web:
#

a Procfile with this should be fine

web: python manage.py migrate && python manage.py collectstatic --noinput && gunicorn mysite.wsgi

obviously adapting that for whatever name you use for your django app

surreal ember
#

we greatly appreciate your efforts to help but unfortunately this answers gets some things wrong, and in the interest of providing the most accurate help we can, I've had to remove this answer, but we hope you can continue helping people in the future!

viscid swan
#

Getting the same error

#

this is my procfile content as you said

surreal ember
viscid swan
#

exactly

surreal ember
#

can you share your repo so i cant understand whats going on

viscid swan
#

after couple of minutes it's automatically failinh

viscid swan
#

email pls

surreal ember
viscid swan
#

check pls

surreal ember
#

i see whats wrong

#
  1. delete your Procfile
  2. for uniformity, use a lowercase 'r' in your railway.json file
  3. replace your railway.json with this
{
    "$schema": "https://railway.app/railway.schema.json",
    "build": {
        "builder": "NIXPACKS"
    },
    "deploy": {
        "startCommand": "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn coverletter.wsgi",
        "restartPolicyType": "ON_FAILURE",
        "restartPolicyMaxRetries": 10
    }
}
viscid swan
#

I just copied from this instruction

viscid swan
#

testing now

surreal ember
#

just curious about something, can you send me a screenshot of the table at the top of your build logs please?

viscid swan
#

again same

surreal ember
#

screenshot of the details tab please

viscid swan
surreal ember
#

seems like its using an old railway.json file, i think you may have bugged the service, can you please delete the service and remake it

viscid swan
#

trying now. But 100% it's using new one that you provided

surreal ember
viscid swan
surreal ember
# viscid swan

this is not the same railway.json that I gave you, look closer

surreal ember
# viscid swan

this one is correct, but it is not the one railway is using, according to your screenshot of the details tab

#

have you set a custom build command in the service settings??

surreal ember
#

there we go, that looks good

viscid swan
#

OMG it's going further 😄 I'm trying to solve this around a week

surreal ember
#

damn I wonder how many deploys you have made that have failed in a week

#

railway gonna have to start billing for builder resources after this lmao

viscid swan
#

And it's crashed cryingman

surreal ember
#

makes sense

#

full deploy logs please

viscid swan
surreal ember
viscid swan
#

I came from Heroku, I guess that's why there is so much inconsistencies 😄

#

BTW thank you very much for providing your time and helping me to figure it out