Nextjs build fail - runc run failed: unable to start container process
Deployment ID dd25dd4a-51bd-489e-94a0-387b5ef51852 and github repo using Nixpacks with nixpacks.toml courtesy of @Brody on an earlier iteration. Note, build randomly worked once out of dozens of attempts today. Error logs attached. Two key errors appear to be:
As well as
I am way out of my depth on this one.
GitHub
GitHub - ballermatic/nextjs-shadcn
Contribute to ballermatic/nextjs-shadcn development by creating an account on GitHub.
29 Replies
Project ID:
dd25dd4a-51bd-489e-94a0-387b5ef51852,a4202936-edb2-4b30-8f88-d5d5dd20d757,a4202936-edb2-4b30-8f88-d5d5dd20d757,a4202936-edb2-4b30-8f88-d5d5dd20d757
Also note,
NIXPACKS_NO_CACHE = 1
does not seem to help with this error.scary looking error, think this one is out of our control
tagging in @jr for this
I wondered if that was the case. Earlier failures were definitely my doing until this one began to persist. I switched to npm due to yarn berry issues, then started re-adding the service fresh.
@rayofbytes - while your at it, this thread needs some attention too 🙂
don't know if it's running on the same host that just experienced this issue or not
Unrelated. JR's the expert 😉 He's currently out & will be back tomorrow
ah gotcha!
Just putting a message in here so if a response is made I'll be notified as experiencing the same issue.
Adding a little wrinkle… although this project remains dead due to the build error, I created a new one which replicates it almost verbatim and that one works. 4e14523a-53bd-46f8-85c7-9d34ed06fb93
My solution was to use @codydearkland's functioning template nextjs-approuter-shadcn
and then migrate my customizations over. That worked perfectly. As always, I appreciate everyone's help learning Railway! Thank you so much!!!
GitHub
GitHub - codyde/nextjs-approuter-shadcn: Railway Template - NextJS ...
Railway Template - NextJS using AppRouter with Shadcn UI Elements - GitHub - codyde/nextjs-approuter-shadcn: Railway Template - NextJS using AppRouter with Shadcn UI Elements
so the nixpacks.toml i did was causing issues?
Just having a look at this now. Is there a project/repo that currently fails to deploy?
It looks like it is an issue with caching the tsbuildinfo
Whups, spoke too soon… rolling back now. I found something.
I don't think it was that
It may have been typescript version. 5.1.6 works, 5.2.2 does not. Unclear about the tsbuildinfo cache.
oh wow downgrading the ts version solved the issue? thats interesting
There may have been a bad component also, still checking on that
Wouldn't expect that to be the case as it builds fine locally, no errors, etc. Will know more soon.
It seems 'use client' is not working for the nav component. That may have been the culprit. Tried other versions or next and node, no luck.
Yup. Closing this out due to app router learning on my end. If anyone finds this thread, I will post the solution when I find it. Thank you for helping me but this problem seems to be Next.js, not Railway.
For reference: tested node v 18.x-20.x (especially 18 --lts) and Next 13.4.9-13.4.19. It's the app router and my lack of understanding. I cannot convey how important @Brody is with this process. Holy shit.
Thank you.
awh shucks, thanks
Nesting 'get client' into a component didn't do it. I'm still processing the documentation for a millionth time and debating moving back to page router.
If you're not already in touch, the payload CMS crew are stone cold badass, in the best way.
hey I did the template for payload
App Router has all kinds of these weird little quirks with it. It’s been a journey for me too, let me tell ya.
Finally have a working solution. Sure enough, it was a client/server error!
GitHub
GitHub - ballermatic/nextjs-approuter-shadcn
Contribute to ballermatic/nextjs-approuter-shadcn development by creating an account on GitHub.
Methodically went through the ringer and finally sorted it out. Context and hooks are a bear with RSC.
Oops, need to push yet, just a moment.
NextBoilerplate
Striking a balance between barebones and DX
Rudimentary but a nice basis for more.
the nav doesn't work 😦
It's set to home, only one page
that's no fun 🤣
Should probably add those routes so its obvious lol
yeah!!