R
Railway•15mo ago
erabd

Deployment Failed during build process

I am deploying a Django web application but recently I started facing an error that says "Deployment Failed during build process". My website works on localhost but it deployment fails on Railway. This problem started yesterday when GitHub were experiencing issues with their web hooks. Could anyone help please? The build logs:
26 Replies
Percy
Percy•15mo ago
Project ID: e1bb02ff-4fef-4026-b3bd-af9b42def69c
erabd
erabd•15mo ago
e1bb02ff-4fef-4026-b3bd-af9b42def69c
jonbeau
jonbeau•15mo ago
this is the whole log?
erabd
erabd•15mo ago
This is the correct one
erabd
erabd•15mo ago
It did not work. Is there anything else I could do?
Brody
Brody•15mo ago
what did you do to begin with
erabd
erabd•15mo ago
I installed mysqlclient and added the nixpacks.toml file with the content ([phases.setup] aptPkgs = ["...", "libmysqlclient-dev"])
Brody
Brody•15mo ago
that is not the message i linked to please do what solved their issue
erabd
erabd•15mo ago
Thank you, I installed mysql-connector-python but still not working
Brody
Brody•15mo ago
send your requirements.txt
erabd
erabd•15mo ago
Brody
Brody•15mo ago
thats a 185 line file thats absurd, are you using all those modules?
erabd
erabd•15mo ago
Yes but for other projects, not only this.
Brody
Brody•15mo ago
remove the modules from there that you are now using on this project
erabd
erabd•15mo ago
it did not work.
Brody
Brody•15mo ago
try putting mysql-connector-python before mysqlclient
erabd
erabd•15mo ago
erabd
erabd•15mo ago
Brody
Brody•15mo ago
honestly, just use postgres instead but one last try, remove mysqlclient from your requirments.txt
erabd
erabd•15mo ago
I already use postgres for the database
Brody
Brody•15mo ago
then why do you have mysql?
erabd
erabd•15mo ago
Because I used this before. Sorry I am new to this 😅. Appreciate your patience.
Brody
Brody•15mo ago
^
erabd
erabd•15mo ago
It works now. Thanks for the help @Brody
Brody
Brody•15mo ago
no problem
Want results from more Discord servers?
Add your server