failing to redeploy

Hello, is anyone else having issues with deployment? I am failing to redeploy projects that were successfully deployed yesterday.. in fact, all builds which were successfully deployed yesterday are failing today.. please let me know what more information I can provide for support, thank you!
47 Replies
Percy
Percy2y ago
Project ID: cf12f7ff-685e-497d-bca7-99641a7cffd5
Paul Chang
Paul ChangOP2y ago
project id is cf12f7ff-685e-497d-bca7-99641a7cffd5
Brody
Brody2y ago
is your build using nixpacks? if so, what version. this can be found at the build table at the top of the logs. what is your tech stack? please also provide full build logs a long with all this info
Paul Chang
Paul ChangOP2y ago
backend is node express and frontend is javascript react I have not updated or changed anything from last night.
Brody
Brody2y ago
okay well let's focus on one at a time, what would you like to tackle first?
Paul Chang
Paul ChangOP2y ago
just the deployment for now.
Paul Chang
Paul ChangOP2y ago
this is the logs from when the build successfully deployed yesterday
Brody
Brody2y ago
whitch deployment, the frontend or backend
Paul Chang
Paul ChangOP2y ago
oh sorry, front end
Brody
Brody2y ago
what text file pertains to the failed build logs for the frontend
Paul Chang
Paul ChangOP2y ago
the first text file is the failing logs and the second file is when i was successful with deployment. both the same exact build
Brody
Brody2y ago
neither of those text files are full build logs but either way, did you update any dependencies?
Paul Chang
Paul ChangOP2y ago
no sorry but how do I get the full build logs?
Brody
Brody2y ago
don't worry about it send me the table at the top of the failed deployment
Paul Chang
Paul ChangOP2y ago
╔═════════ Nixpacks v1.5.1 ═════════╗ ║ setup │ nodejs-16_x, npm-8_x ║ ║───────────────────────────────────║ ║ install │ npm i ║ ║───────────────────────────────────║ ║ build │ npm run build ║ ║───────────────────────────────────║ ║ start │ node index.js ║ ╚═══════════════════════════════════╝
Brody
Brody2y ago
and send the same from the deployment that worked
Paul Chang
Paul ChangOP2y ago
╔═════════ Nixpacks v1.5.1 ═════════╗ ║ setup │ nodejs-16_x, npm-8_x ║ ║───────────────────────────────────║ ║ install │ npm i ║ ║───────────────────────────────────║ ║ build │ npm run build ║ ║───────────────────────────────────║ ║ start │ node index.js ║ ╚═══════════════════════════════════╝
Brody
Brody2y ago
why is install defined as npm i that is not the default and are you sure these are from the front-end? can you send me your repo for the frontend?
Paul Chang
Paul ChangOP2y ago
sure one moment
Paul Chang
Paul ChangOP2y ago
GitHub
GitHub - 88joonyc/ticker-app
Contribute to 88joonyc/ticker-app development by creating an account on GitHub.
Brody
Brody2y ago
okay, I'm just about to have lunch, will look at that and get back to you with hopefully good news
Paul Chang
Paul ChangOP2y ago
Sure, appreciate the help! have a good lunch!
Brody
Brody2y ago
can you build this app locally? npm run build because i cant build it locally, and if i cant build it locally, the issue isn't with railway this commit does compile https://github.com/88joonyc/ticker-app/tree/c1bbe9a415d65fce5f0a8bdcddaf7e8035b01bc9 but there are other issues, like you are still using the default start script at this point
Paul Chang
Paul ChangOP2y ago
hi, yes, I've been building the project locally each time to deploy. sorry, I may take some time to respond.. have an interview in about 20 mins
Brody
Brody2y ago
what node version do you use
Paul Chang
Paul ChangOP2y ago
v14.21.3 ahh i'm guessing my terminal reset
Brody
Brody2y ago
whats that about your terminal?
Paul Chang
Paul ChangOP2y ago
terminal is using 14.21.3.
Brody
Brody2y ago
okay so i see that your repo lacks a package-lock file and it did have a build folder though you just deleted that why the lack of lock file?
Paul Chang
Paul ChangOP2y ago
i'm actually not sure.
Brody
Brody2y ago
add the build folder to your .gitignore, you dont want to be committing the build folder and provide a package-lock file
Paul Chang
Paul ChangOP2y ago
roger getting the same error sorry but i'll brb
Brody
Brody2y ago
yes, i am still looking into that good luck on your interview!
Paul Chang
Paul ChangOP2y ago
says its something to do with webpack? not sure but here is what i see again
Paul Chang
Paul ChangOP2y ago
thank you!
Brody
Brody2y ago
i still cant build your app with node 14.21.3 what command do you run to build your app locally?
Paul Chang
Paul ChangOP2y ago
hi, I'm back but I have another call soon. for some reason, i was unable to run the build locally.. im guessing it was due to node version? so i installed node v16.16.0 and now i can build locally. I'll try deploying to see if it work.
Brody
Brody2y ago
it does not build with node 16.16.0 either
Paul Chang
Paul ChangOP2y ago
i can build locally but i had to reinstall dependencies after deleting the package-lock
Brody
Brody2y ago
?
Paul Chang
Paul ChangOP2y ago
npm run build sorry that one flew right over me
Brody
Brody2y ago
okay i got your app to build cloned your latest commit changed your start script to node index.js ran npm install --package-lock-only because your lock file was out of sync added engines.node = 16 to the package.json file deployed, and it worked https://test-service2.up.railway.app/
Paul Chang
Paul ChangOP2y ago
OK, I'll try that as well. Thank you, that worked for me as well!
Brody
Brody2y ago
awesome, very odd though
Want results from more Discord servers?
Add your server