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