Django app failing all of a sudden

I recently pushed a minor template update to my Django app and noticed the build failed. The logs show that Django is not installed which is weird because nothing in my app changed and I see Django pip install in the logs earlier. Did something break within Railway? This is working fine locally, not sure how do debug this
48 Replies
Percy
Percy2y ago
Project ID: 24e59367-bd09-40eb-9080-7b9609b19b12
themajd_
themajd_2y ago
24e59367-bd09-40eb-9080-7b9609b19b12
Brody
Brody2y ago
do you have a build command set In the service settings?
themajd_
themajd_2y ago
No but I do have a Procfile with this content
Brody
Brody2y ago
send that here please
themajd_
themajd_2y ago
send what?
Brody
Brody2y ago
the procfile lol
themajd_
themajd_2y ago
it's in the screenshot lol
Brody
Brody2y ago
bruh
themajd_
themajd_2y ago
release: python manage.py clear_cache && python manage.py migrate web: gunicorn colivevalues.wsgi what more could u want from the file
Brody
Brody2y ago
change it to just
web: python manage.py clear_cache && python manage.py migrate && gunicorn colivevalues.wsgi
web: python manage.py clear_cache && python manage.py migrate && gunicorn colivevalues.wsgi
themajd_
themajd_2y ago
why
Brody
Brody2y ago
manage.py doesnt like to run during build
themajd_
themajd_2y ago
alllrrright
themajd_
themajd_2y ago
let's see
Brody
Brody2y ago
show me the table at the top of the new build logs
themajd_
themajd_2y ago
this might mess with my heroku deploy though wouldn'tit
Brody
Brody2y ago
idk this is railway
themajd_
themajd_2y ago
yes
Brody
Brody2y ago
so thats all i care about lol
themajd_
themajd_2y ago
okay well so removing release: doesn't trigger any build to happen lol
themajd_
themajd_2y ago
themajd_
themajd_2y ago
im just confused why all of a sudden this is an issue the commit was literally changing padding on a element
themajd_
themajd_2y ago
\
Brody
Brody2y ago
cancel it and try again
themajd_
themajd_2y ago
yeah it keeps getting stuck in initialization
Brody
Brody2y ago
show me the procfile
themajd_
themajd_2y ago
web: python manage.py clear_cache && python manage.py migrate && gunicorn colivevalues.wsgi
Brody
Brody2y ago
and that's the entire contents?
themajd_
themajd_2y ago
yes lol its just that now railway isn't building anything at all
themajd_
themajd_2y ago
this is the table when it was failing earlier
themajd_
themajd_2y ago
its gotta be something internal
Brody
Brody2y ago
the stuck on initializing is a railway issue but when it was actually building, and still failed, is not a railway issue
themajd_
themajd_2y ago
something going on w the virtual env, not recognizing django? thats like bare minimum
Brody
Brody2y ago
let me know when you have gotten it past initialization https://discord.com/channels/713503345364697088/846875565357006878 watch this channel for updates, and try again after they say it's fixed
themajd_
themajd_2y ago
ok thanks
themajd_
themajd_2y ago
Hey Brody still facing the same issue here :/ I checked my last successful build and it was using Nixpacks v1.5.1, something must have happened because I see new builds are on Nixpacks v1.7.0
themajd_
themajd_2y ago
Here's my last successful build
themajd_
themajd_2y ago
& the new ones
Brody
Brody2y ago
know issue and ive been talking to the team about it
themajd_
themajd_2y ago
the --copies flag stands out to me
Brody
Brody2y ago
current work around is to use this as your procfile, but i see from the nixpacks v1.7.0 screenshot you arent haha yep that was our first check, but it makes no difference with or without it
themajd_
themajd_2y ago
ok can I put that in the Railway build command field u think as to not disturb my procfile or is that not a build command, sorry new to this
Brody
Brody2y ago
just rename your Procfile to Procfile.old and then create a new Procfile with web: python manage.py clear_cache && python manage.py migrate && gunicorn colivevalues.wsgi so that once this get this fixed, youll be able to restore your original Procfile
themajd_
themajd_2y ago
I can't make the edit just to railway since this repo is deployed on heroku as well
Brody
Brody2y ago
im fairly certain that even if you set that as your start command, nixpacks will still pickup the release command from the procfile, and your builds will still fail and there is now a github issue for this https://github.com/railwayapp/nixpacks/issues/872 nixpacks has now been rolled back to v1.5.1, and Procfiles with both release and web commands now build correctly again!
themajd_
themajd_2y ago
❤️ love u big time
Want results from more Discord servers?
Add your server