gunicorn log error
oluwatobi301
FREEOP

4 months ago

I'm trying to deploy my django app for the first time on railway using railpack service. After deploying from github I get the green label "deployment successfull". However then I check the deploy logs I see the error: "gunicorn: error: argument --error-logfile/--log-file: expected one argument".

I tried to fix it by modifying the content of Procfile to "web: cd telecom_tracker && gunicorn telco_tracker.wsgi --log-file=-". I tried a lot of variations but still get the same error.
I even tryied to remove the Procfile and redeploy --> same error.

Can someone help me ? It is very fustrating ..

$10 Bounty

3 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


oluwatobi301
FREEOP

4 months ago

stiil no changes


keizercode
FREE

4 months ago

  • Open your Service

  • Go to Settings

  • Scroll to Deploy Start Command

  • Replace whatever is there with:
    gunicorn telco_tracker.wsgi:application --log-file - --bind 0.0.0.0:$PORT

    Make sure:

    • telco_tracker is your Django project folder name

    • $PORT is used (Railway assigns the port dynamically)


Loading...