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:Jump to 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.
19 Replies
Project ID:
cdab7058-f689-4d5d-aff5-1ef5500ccf69
please show what error you are talking about
what is your start command
i'm using a procfile:
web: python manage.py migrate && python manage.py collectstatic --no-input && gunicorn arriva.wsgi
does the Procfile start with a capital P
sure
yes or no
sorry, simple
what
it is procfile, should it be Procfile
?
it needs to start with a capital P
ok m trying,
have updated the title to :
still same issue persists.
after deployment.
can you share your repo
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?
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.