I am facing a build issue, it is failing continuously with the “Command was killed with SIGKILL (Forced termination): gatsby clean && gatsby build --prefix-paths” this message.
Build Log: Netlify App
Guys, any Solutions to resolve this issue?
Thanks in Advance
@Amit_Verma welcome to our forums!
Any particular reason why you’re running
gatsby clean prior to running the build? That way you’re not leveraging cache at all and taking a longer path building.
SIGKILL points to memory issues. The instance your build run is limited to 11 GB or RAM and your build may be peaking and failing unexpectibely.
You need to reduce memory usage, we have a Support Guide that may help with that:
last updated by Netlify Support Dec 2022
Are you struggling to get your build working? Most build errors are caused by problems in code or data, and for those errors, our best guide / general starting place for debugging build troubles is this one:
But, sometimes your build is working fine and suddenly ends with some inscrutable errors that don’t seem to be “about” your code or site even. Perhaps you see an error message like this in your builds?
2:28:35 PM: <--- Last few GCs --->
Perhaps removing the clean step on your build helps!
Hope this helps!
Thanks for the quick reply, the article was beneficial and the issue is resolved on Netlify by adding a GATSBY_CPU_COUNT environment variable, but on localhost, the build is still failing, is there any solution to fix this issue?
I really appreciate any help you can provide.