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
Percy14mo ago
Project ID: cf12f7ff-685e-497d-bca7-99641a7cffd5
Paul Chang
Paul Chang14mo ago
project id is cf12f7ff-685e-497d-bca7-99641a7cffd5
Brody
Brody14mo 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 Chang14mo ago
backend is node express and frontend is javascript react I have not updated or changed anything from last night.
Brody
Brody14mo ago
okay well let's focus on one at a time, what would you like to tackle first?
Paul Chang
Paul Chang14mo ago
just the deployment for now.
Paul Chang
Paul Chang14mo ago
this is the logs from when the build successfully deployed yesterday
Brody
Brody14mo ago
whitch deployment, the frontend or backend
Paul Chang
Paul Chang14mo ago
oh sorry, front end
Brody
Brody14mo ago
what text file pertains to the failed build logs for the frontend
Paul Chang
Paul Chang14mo 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
Brody14mo ago
neither of those text files are full build logs but either way, did you update any dependencies?
Paul Chang
Paul Chang14mo ago
no sorry but how do I get the full build logs?
Brody
Brody14mo ago
don't worry about it send me the table at the top of the failed deployment
Paul Chang
Paul Chang14mo ago
╔═════════ Nixpacks v1.5.1 ═════════╗ ║ setup │ nodejs-16_x, npm-8_x ║ ║───────────────────────────────────║ ║ install │ npm i ║ ║───────────────────────────────────║ ║ build │ npm run build ║ ║───────────────────────────────────║ ║ start │ node index.js ║ ╚═══════════════════════════════════╝
Brody
Brody14mo ago
and send the same from the deployment that worked
Paul Chang
Paul Chang14mo ago
╔═════════ Nixpacks v1.5.1 ═════════╗ ║ setup │ nodejs-16_x, npm-8_x ║ ║───────────────────────────────────║ ║ install │ npm i ║ ║───────────────────────────────────║ ║ build │ npm run build ║ ║───────────────────────────────────║ ║ start │ node index.js ║ ╚═══════════════════════════════════╝
Brody
Brody14mo 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 Chang14mo ago
sure one moment
Paul Chang
Paul Chang14mo ago
GitHub
GitHub - 88joonyc/ticker-app
Contribute to 88joonyc/ticker-app development by creating an account on GitHub.
Brody
Brody14mo 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 Chang14mo ago
Sure, appreciate the help! have a good lunch!
Brody
Brody14mo 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 Chang14mo 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
Brody14mo ago
what node version do you use
Paul Chang
Paul Chang14mo ago
v14.21.3 ahh i'm guessing my terminal reset
Brody
Brody14mo ago
whats that about your terminal?
Paul Chang
Paul Chang14mo ago
terminal is using 14.21.3.
Brody
Brody14mo 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 Chang14mo ago
i'm actually not sure.
Brody
Brody14mo 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 Chang14mo ago
roger getting the same error sorry but i'll brb
Brody
Brody14mo ago
yes, i am still looking into that good luck on your interview!
Paul Chang
Paul Chang14mo ago
says its something to do with webpack? not sure but here is what i see again
Paul Chang
Paul Chang14mo ago
thank you!
Brody
Brody14mo 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 Chang14mo 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
Brody14mo ago
it does not build with node 16.16.0 either
Paul Chang
Paul Chang14mo ago
i can build locally but i had to reinstall dependencies after deleting the package-lock
Brody
Brody14mo ago
?
Paul Chang
Paul Chang14mo ago
npm run build sorry that one flew right over me
Brody
Brody14mo 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 Chang14mo ago
OK, I'll try that as well. Thank you, that worked for me as well!
Brody
Brody14mo ago
awesome, very odd though