Skip to content
Back

[SOLVED] script "build" was terminated by signal SIGKILL (Forced quit)

  • 0
  • Resolved
  • 2
  • Self Hosted
  • Sites
faye
17 Dec, 2025, 20:38

Heyo,

For some reason, my Next.js 16.0.10 version does not build properly. Here is the last logs:

TypeScript
1063 packages installed [22.54s]
$ next build
No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Next.js 16.0.10 (Turbopack)
   - Experiments (use with caution):
     · clientTraceMetadata
     ✓ rootParams
     · swcPlugins

   Creating an optimized production build ...
Compiled successfully in 10.5min
[@sentry/nextjs - After Production Compile] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - After Production Compile] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
Completed runAfterProductionCompile in 3369ms
error: script "build" was terminated by signal SIGKILL (Forced quit)
bash: line 1:    40 Killed                  bun run build

No idea what to do else here.

TL;DR
The script "build" was terminated by signal SIGKILL but now resolved. Consider using docker image deployments for easier solutions.
17 Dec, 2025, 21:08

Here is another longer error:

TypeScript
1063 packages installed [22.95s]
$ next build
No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
Next.js 16.0.10 (Turbopack)
   - Experiments (use with caution):
     · clientTraceMetadata
     ✓ rootParams
     · swcPlugins

   Creating an optimized production build ...
Compiled successfully in 9.5min
[@sentry/nextjs - After Production Compile] Info: Sending telemetry data on issues and performance to Sentry. To disable telemetry, set `options.telemetry` to `false`.
[@sentry/nextjs - After Production Compile] Warning: No auth token provided. Will not upload source maps. Please set the `authToken` option. You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
Completed runAfterProductionCompile in 3131ms

<--- Last few GCs --->

[222:0x75ade7766000]    91375 ms: Scavenge 967.3 (992.4) -> 964.2 (992.9) MB, pooled: 0 MB, 3.55 / 0.00 ms  (average mu = 0.481, current mu = 0.425) allocation failure; 
[222:0x75ade7766000]    91450 ms: Scavenge 967.9 (992.9) -> 964.4 (993.4) MB, pooled: 0 MB, 4.54 / 0.00 ms  (average mu = 0.481, current mu = 0.425) allocation failure; 
[222:0x75ade7766000]    91466 ms: Scavenge 968.1 (993.4) -> 964.4 (1001.4) MB, pooled: 0 MB, 4.27 / 0.00 ms  (average mu = 0.481, current mu = 0.425) allocation failure; 


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----

Next.js build worker exited with code: null and signal: SIGABRT
error: script "build" exited with code 1
18 Dec, 2025, 20:22

Also same issue <#1446156945005215836>

18 Dec, 2025, 20:44

take a look at the JSON returned for the api call to get the site and see what the specification is set to. if it's low, manually make an API call to make it higher

18 Dec, 2025, 20:46

that might fix it, let me try ^^

18 Dec, 2025, 20:47

i wish sites would allow docker image deployments

18 Dec, 2025, 20:47

so much easier

18 Dec, 2025, 20:58

[SOLVED] script "build" was terminated by signal SIGKILL (Forced quit)

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more