Simple next.js build fail
deployment ID 6b59c99d-f9d1-42bb-9733-67e02909cdc5
Repo: https://github.com/ballermatic/nextjs-shadcn
Error:
I'm stumped. This is using nixpacks, builds fine locally. Any ideas?
GitHub
GitHub - ballermatic/nextjs-shadcn
Contribute to ballermatic/nextjs-shadcn development by creating an account on GitHub.
31 Replies
Project ID:
6b59c99d-f9d1-42bb-9733-67e02909cdc5
please send full build logs
this doesn't look like a user issue, will flag team
Thread has been flagged to Railway team by @Brody.
Whew! I assumed it was user error…
thats a good assumption, but nah
would you happen to have the deployment id for that failed deployment?
if you open the deployment you will see a
?id=
query string param in the url, that would be the deployment id6b59c99d-f9d1-42bb-9733-67e02909cdc5
in the mean time, dont touch that service if possible, if you create a new service in the same project, it shouldnt have this problem
Ok, will do!
Hmmm, deployment failed however no error in build logs. They just stop.
#10 0.711 yarn install v1.22.19
#10 0.816 [1/4] Resolving packages...
#10 1.093 [2/4] Fetching packages...
#10 25.92 [3/4] Linking dependencies...
#10 30.29 [4/4] Building fresh packages...
@project: 8c545066-0015-4ef3-9a41-591f9f242a2d
@environment: 261e9b2a-29ea-4b26-a38c-b30a818ca8bc
@service: 9af16dbf-1a02-417f-baee-b2a3694f6e04
@snapshot: c9ead65c-3b52-405b-b50a-1b95529df0c4
try again lol
once back at my computer I'll be trying to deploy your repo too
got it to build with the variable
NIXPACKS_NO_CACHE
= 1
however, it produced a 2gb imageWhoa. Why so huge? This is worse than the other one.
haha i know, and that was a 2gb image made by nixpacks, its not even my fault this time lol
😂
Well if it works it works!
im working on a multistage nixpacks build, i wonder if i will succeed
Thanks again!
https://test-service2.up.railway.app/
it works, as a 2gb image
The payload crew asked about a multi stage docker file
My knowledge envelope tapers quickly with DevOps.
yeah im trying to do the same, but with nixpacks
got the image down to ~480mb with this nixpacks.toml file
those two npm variables dont do anything for the size, they just disable annoyances
still need
NIXPACKS_NO_CACHE
= 1
for some reason thoughDo I add that to the repo?
indeed
Right on
Thank you again!
no problem!
the build has worked? and image is small again?
No cache worked, pushing with .toml now
ah okay
Boom, 496Mb now, nicely done
awsome
Builds and deploys much faster too
you can tweak the
onlyIncludeFiles
incase i missed somethingThe first issue seems to be due to a bad docker state on one of the builders. I've cycled it so you should be good to remove the
NIXPACKS_NO_CACHE
variable if you would like