building on worker ci fails, but locally with the same commands works
Hi! I'm deploying a next website and I get a sigkill error that fails the build on ci, however when running opennextjs-cloudflare build and deploy locally everything is fine.
1 Reply
2025-10-25T15:24:36.122Z ✓ Compiled successfully in 4.9min
2025-10-25T15:24:36.144Z Running TypeScript ...
2025-10-25T15:24:40.360Z Collecting page data ...
2025-10-25T15:25:15.341Z error: script "build" was terminated by signal SIGKILL (Forced quit)
2025-10-25T15:25:15.341Z Killed
2025-10-25T15:25:15.345Z opennextjs-cloudflare build
2025-10-25T15:25:15.350Z
2025-10-25T15:25:15.350Z Build an OpenNext Cloudflare worker
2025-10-25T15:25:15.350Z
2025-10-25T15:25:15.353Z Options:
2025-10-25T15:25:15.353Z --help Show help [boolean]
2025-10-25T15:25:15.353Z --version Show version number [boolean]
2025-10-25T15:25:15.354Z -c, --config Path to Wrangler configuration file [string]
2025-10-25T15:25:15.354Z --configPath Path to Wrangler configuration file
2025-10-25T15:25:15.354Z [deprecated] [string]
2025-10-25T15:25:15.354Z -e, --env Wrangler environment to use for operations
2025-10-25T15:25:15.354Z [string]
2025-10-25T15:25:15.354Z -s, --skipNextBuild, --skipBuild Skip building the Next.js app
2025-10-25T15:25:15.355Z [boolean] [default: false]
2025-10-25T15:25:15.355Z --noMinify Disable worker minification
2025-10-25T15:25:15.355Z [boolean] [default: false]
2025-10-25T15:25:15.355Z --skipWranglerConfigCheck Skip checking for a Wrangler config
2025-10-25T15:25:15.355Z [boolean] [default: false]
2025-10-25T15:25:15.355Z --openNextConfigPath Path to the OpenNext configuration file
2025-10-25T15:25:15.355Z [string]
2025-10-25T15:25:15.355Z
2025-10-25T15:25:15.372Z Error: Command failed: bun run build
2025-10-25T15:25:15.372Z at genericNodeError (node:internal/errors:983:15)
2025-10-25T15:25:15.372Z at wrappedFn (node:internal/errors:537:14)
2025-10-25T15:25:15.372Z at checkExecSyncError (node:child_process:882:11)
2025-10-25T15:25:15.372Z at Object.execSync (node:child_process:954:15)
2025-10-25T15:25:15.372Z at buildNextjsApp (file:///opt/buildhome/repo/node_modules/@opennextjs/aws/dist/build/buildNextApp.js:15:8)
2025-10-25T15:25:15.372Z at build (file:///opt/buildhome/repo/node_modules/@opennextjs/cloudflare/dist/cli/build/build.js:46:9)
2025-10-25T15:25:15.372Z at buildCommand (file:///opt/buildhome/repo/node_modules/@opennextjs/cloudflare/dist/cli/commands/build.js:21:11) {
2025-10-25T15:25:15.372Z status: 137,
2025-10-25T15:25:15.372Z signal: null,
2025-10-25T15:25:15.372Z output: [ null, null, null ],
2025-10-25T15:25:15.372Z pid: 1451,
2025-10-25T15:25:15.372Z stdout: null,
2025-10-25T15:25:15.372Z stderr: null
2025-10-25T15:25:15.372Z }
2025-10-25T15:24:36.122Z ✓ Compiled successfully in 4.9min
2025-10-25T15:24:36.144Z Running TypeScript ...
2025-10-25T15:24:40.360Z Collecting page data ...
2025-10-25T15:25:15.341Z error: script "build" was terminated by signal SIGKILL (Forced quit)
2025-10-25T15:25:15.341Z Killed
2025-10-25T15:25:15.345Z opennextjs-cloudflare build
2025-10-25T15:25:15.350Z
2025-10-25T15:25:15.350Z Build an OpenNext Cloudflare worker
2025-10-25T15:25:15.350Z
2025-10-25T15:25:15.353Z Options:
2025-10-25T15:25:15.353Z --help Show help [boolean]
2025-10-25T15:25:15.353Z --version Show version number [boolean]
2025-10-25T15:25:15.354Z -c, --config Path to Wrangler configuration file [string]
2025-10-25T15:25:15.354Z --configPath Path to Wrangler configuration file
2025-10-25T15:25:15.354Z [deprecated] [string]
2025-10-25T15:25:15.354Z -e, --env Wrangler environment to use for operations
2025-10-25T15:25:15.354Z [string]
2025-10-25T15:25:15.354Z -s, --skipNextBuild, --skipBuild Skip building the Next.js app
2025-10-25T15:25:15.355Z [boolean] [default: false]
2025-10-25T15:25:15.355Z --noMinify Disable worker minification
2025-10-25T15:25:15.355Z [boolean] [default: false]
2025-10-25T15:25:15.355Z --skipWranglerConfigCheck Skip checking for a Wrangler config
2025-10-25T15:25:15.355Z [boolean] [default: false]
2025-10-25T15:25:15.355Z --openNextConfigPath Path to the OpenNext configuration file
2025-10-25T15:25:15.355Z [string]
2025-10-25T15:25:15.355Z
2025-10-25T15:25:15.372Z Error: Command failed: bun run build
2025-10-25T15:25:15.372Z at genericNodeError (node:internal/errors:983:15)
2025-10-25T15:25:15.372Z at wrappedFn (node:internal/errors:537:14)
2025-10-25T15:25:15.372Z at checkExecSyncError (node:child_process:882:11)
2025-10-25T15:25:15.372Z at Object.execSync (node:child_process:954:15)
2025-10-25T15:25:15.372Z at buildNextjsApp (file:///opt/buildhome/repo/node_modules/@opennextjs/aws/dist/build/buildNextApp.js:15:8)
2025-10-25T15:25:15.372Z at build (file:///opt/buildhome/repo/node_modules/@opennextjs/cloudflare/dist/cli/build/build.js:46:9)
2025-10-25T15:25:15.372Z at buildCommand (file:///opt/buildhome/repo/node_modules/@opennextjs/cloudflare/dist/cli/commands/build.js:21:11) {
2025-10-25T15:25:15.372Z status: 137,
2025-10-25T15:25:15.372Z signal: null,
2025-10-25T15:25:15.372Z output: [ null, null, null ],
2025-10-25T15:25:15.372Z pid: 1451,
2025-10-25T15:25:15.372Z stdout: null,
2025-10-25T15:25:15.372Z stderr: null
2025-10-25T15:25:15.372Z }