R
Railway16mo ago
mattey

Hi I am getting a Server Error after a Django Deployment

my project id is: cdab7058-f689-4d5d-aff5-1ef5500ccf69 I have frequently used railway, and deployed to railway, this time I did the usual however, I'm getting a the server error, I have connected the db to my project via the env variables. somehow the issue persists.
Solution:
Sorry big time, it was all the way from my end. After a fresh windows installation. My git push ... was not not updating the repo. once it was fixed, railway problem was fixed.
Jump to solution
19 Replies
Percy
Percy16mo ago
Project ID: cdab7058-f689-4d5d-aff5-1ef5500ccf69
Brody
Brody16mo ago
please show what error you are talking about
mattey
matteyOP16mo ago
Brody
Brody16mo ago
what is your start command
mattey
matteyOP16mo ago
i'm using a procfile: web: python manage.py migrate && python manage.py collectstatic --no-input && gunicorn arriva.wsgi
Brody
Brody16mo ago
does the Procfile start with a capital P
mattey
matteyOP16mo ago
sure
Brody
Brody16mo ago
yes or no
mattey
matteyOP16mo ago
sorry, simple
Brody
Brody16mo ago
what
mattey
matteyOP16mo ago
it is procfile, should it be Procfile ?
Brody
Brody16mo ago
it needs to start with a capital P
mattey
matteyOP16mo ago
ok m trying,
mattey
matteyOP16mo ago
have updated the title to :
mattey
matteyOP16mo ago
still same issue persists. after deployment.
Brody
Brody16mo ago
can you share your repo
mattey
matteyOP16mo ago
sure Sorry previous part, was me being clumsy, I was using a Dockerfile, how ever changed it back to a Procfile, now I am getting the Deploy logs and the error states relating to my Daphne server: following is my error: Traceback (most recent call last): File "/opt/venv/bin/daphne", line 8, in <module> sys.exit(CommandLineInterface.entrypoint()) File "/opt/venv/lib/python3.10/site-packages/daphne/cli.py", line 170, in entrypoint cls().run(sys.argv[1:]) File "/opt/venv/lib/python3.10/site-packages/daphne/cli.py", line 232, in run application = import_by_path(args.application) File "/opt/venv/lib/python3.10/site-packages/daphne/utils.py", line 11, in import_by_path module_path, object_path = path.split(":", 1) ValueError: not enough values to unpack (expected 2, got 1) this is my Procfile: web: python manage.py migrate & daphne -b 0.0.0.0 -p $PORT arriva.asgi.application
Brody
Brody16mo ago
?
Solution
mattey
mattey16mo ago
Sorry big time, it was all the way from my end. After a fresh windows installation. My git push ... was not not updating the repo. once it was fixed, railway problem was fixed.
Want results from more Discord servers?
Add your server