Hello everyone, there are problems with building my 11ty website (gentle-lollipop-67a40e.netlify.app). In my project, there is a basic 11ty script that runs the build. However, if there are several pages to generate, the build fails with npn zero code, although locally everything builds perfectly fine.
Full log
5:25:38 PM: build-image version: 20e1f1f500e4cbad9ea8a99bd40807bef3093551 (focal)
5:25:38 PM: buildbot version: d7125d73ee51e5ae94a98ff24da5d2bcd8321340
5:25:38 PM: Fetching cached dependencies
5:25:38 PM: Starting to download cache of 277.7MB
5:25:40 PM: Finished downloading cache in 2.818s
5:25:40 PM: Starting to extract cache
5:25:43 PM: Finished extracting cache in 2.064s
5:25:43 PM: Finished fetching cache in 4.938s
5:25:43 PM: Starting to prepare the repo for build
5:25:43 PM: Preparing Git Reference refs/heads/main
5:25:44 PM: Custom build path detected. Proceeding with the specified path: ''
5:25:45 PM: Starting to install dependencies
5:25:45 PM: Python version set to 3.8
5:25:45 PM: Attempting Ruby version 2.7.2, read from environment
5:25:45 PM: Using Ruby version 2.7.2
5:25:46 PM: Started restoring cached go cache
5:25:46 PM: Finished restoring cached go cache
5:25:47 PM: Installing Go version 1.19.12 (requested 1.19.x)
5:25:51 PM: go version go1.19.12 linux/amd64
5:25:52 PM: Using PHP version 8.0
5:25:52 PM: Started restoring cached Node.js version
5:25:54 PM: Finished restoring cached Node.js version
5:25:54 PM: v14.21.3 is already installed.
5:25:54 PM: Now using node v14.21.3 (npm v6.14.18)
5:25:54 PM: Enabling Node.js Corepack
5:25:54 PM: Started restoring cached build plugins
5:25:54 PM: Finished restoring cached build plugins
5:25:54 PM: Started restoring cached corepack dependencies
5:25:55 PM: Finished restoring cached corepack dependencies
5:25:55 PM: No npm workspaces detected
5:25:55 PM: Started restoring cached node modules
5:25:55 PM: Finished restoring cached node modules
5:25:55 PM: Installing npm packages using npm version 6.14.18
5:25:55 PM: npm info it worked if it ends with ok
5:25:55 PM: npm verb cli [
5:25:55 PM: npm verb cli '/opt/buildhome/.nvm/versions/node/v14.21.3/bin/node',
5:25:55 PM: npm verb cli '/opt/buildhome/.nvm/versions/node/v14.21.3/bin/npm',
5:25:55 PM: npm verb cli 'install',
5:25:55 PM: npm verb cli '--verbose'
5:25:55 PM: npm verb cli ]
5:25:55 PM: npm info using npm@6.14.18
5:25:55 PM: npm info using node@v14.21.3
5:25:55 PM: npm verb npm-session 2bab18b2fe90d7d7
5:25:55 PM: npm info lifecycle alex-four-blog@1.0.0~preinstall: alex-four-blog@1.0.0
5:25:55 PM: npm timing stage:loadCurrentTree Completed in 277ms
5:25:55 PM: npm timing stage:loadIdealTree:cloneCurrentTree Completed in 2ms
5:25:55 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
npm timing stage:loadIdealTree:loadShrinkwrap Completed in 139ms
5:25:56 PM: npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 95ms
5:25:56 PM: npm timing stage:loadIdealTree Completed in 264ms
5:25:56 PM: npm timing stage:generateActionsToTake Completed in 15ms
5:25:56 PM: npm verb correctMkdir /opt/buildhome/.npm/_locks correctMkdir not in flight; initializing
5:25:56 PM: npm verb lock using /opt/buildhome/.npm/_locks/staging-28f9a15b2314b2c0.lock for /opt/build/repo/node_modules/.staging
5:25:56 PM: npm http fetch GET 200 https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz 99ms
5:25:56 PM: npm timing action:extract Completed in 134ms
5:25:56 PM: npm timing action:finalize Completed in 1ms
5:25:56 PM: npm timing action:refresh-package-json Completed in 2ms
5:25:56 PM: npm timing action:preinstall Completed in 0ms
5:25:56 PM: npm timing action:build Completed in 0ms
5:25:56 PM: npm timing action:install Completed in 0ms
5:25:56 PM: npm timing action:postinstall Completed in 0ms
5:25:56 PM: npm verb unlock done using /opt/buildhome/.npm/_locks/staging-28f9a15b2314b2c0.lock for /opt/build/repo/node_modules/.staging
5:25:56 PM: npm timing stage:executeActions Completed in 163ms
5:25:56 PM: npm timing stage:rollbackFailedOptional Completed in 2ms
5:25:56 PM: npm info linkStuff alex-four-blog@1.0.0
5:25:56 PM: npm info lifecycle alex-four-blog@1.0.0~install: alex-four-blog@1.0.0
5:25:56 PM: npm info lifecycle alex-four-blog@1.0.0~postinstall: alex-four-blog@1.0.0
5:25:56 PM: npm info lifecycle alex-four-blog@1.0.0~prepublish: alex-four-blog@1.0.0
5:25:56 PM: npm info lifecycle alex-four-blog@1.0.0~prepare: alex-four-blog@1.0.0
5:25:56 PM: npm timing stage:runTopLevelLifecycles Completed in 767ms
5:25:56 PM: npm verb saving []
5:25:56 PM: npm verb shrinkwrap skipping write for package.json because there were no changes.
5:25:56 PM: npm info lifecycle undefined~preshrinkwrap: undefined
5:25:56 PM: npm info lifecycle alex-four-blog@1.0.0~shrinkwrap: alex-four-blog@1.0.0
5:25:56 PM: npm timing audit submit Completed in 209ms
5:25:56 PM: npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 209ms
5:25:56 PM: npm timing audit body Completed in 0ms
5:25:56 PM: npm info lifecycle alex-four-blog@1.0.0~postshrinkwrap: alex-four-blog@1.0.0
5:25:56 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
5:25:56 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {os:darwin,arch:any} (current: {os:linux,arch:x64})
5:25:56 PM: npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
5:25:56 PM: npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
5:25:56 PM: npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
5:25:56 PM: npm verb notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
5:25:56 PM: audited 212 packages in 0.835s
5:25:56 PM: 40 packages are looking for funding
5:25:56 PM: run `npm fund` for details
5:25:56 PM: found 0 vulnerabilities
5:25:56 PM: npm verb exit [ 0, true ]
5:25:56 PM: npm timing npm Completed in 1087ms
5:25:56 PM: npm info ok
5:25:56 PM: npm packages installed
5:25:56 PM: Install dependencies script success
5:25:56 PM: Starting build script
5:25:57 PM: Detected 1 framework(s)
5:25:57 PM: eleventy at version 2.0.1
5:25:57 PM: Section completed: initializing
=====
5:26:01 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
5:25:58 PM: Netlify Build
5:25:58 PM: ────────────────────────────────────────────────────────────────
5:25:58 PM:
5:25:58 PM: ❯ Version
5:25:58 PM: @netlify/build 29.20.6
5:25:58 PM:
5:25:58 PM: ❯ Flags
5:25:58 PM: baseRelDir: true
5:25:58 PM: buildId: 64e0def0cb87cc0008e5a74b
5:25:58 PM: deployId: 64e0def0cb87cc0008e5a74d
5:25:58 PM:
5:25:58 PM: ❯ Current directory
5:25:58 PM: /opt/build/repo
5:25:58 PM:
5:25:58 PM: ❯ Config file
5:25:58 PM: /opt/build/repo/netlify.toml
5:25:58 PM:
5:25:58 PM: ❯ Context
5:25:58 PM: production
5:25:59 PM:
5:25:59 PM: ❯ Loading plugins
5:25:59 PM: - @netlify/plugin-lighthouse@5.0.0 from Netlify app
5:26:00 PM:
5:26:00 PM: Build command from Netlify app
5:26:00 PM: ────────────────────────────────────────────────────────────────
5:26:00 PM:
5:26:00 PM: $ npm run build
5:26:00 PM: > alex-four-blog@1.0.0 build /opt/build/repo
5:26:00 PM: > npx @11ty/eleventy --quiet
5:26:00 PM: [11ty] Copied 19 files / Wrote 18 files in 0.14 seconds (7.8ms each, v2.0.1)
5:26:00 PM:
5:26:00 PM: (build.command completed in 515ms)
5:26:01 PM:
5:26:01 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:26:01 PM: Failing build: Failed to build site
5:26:02 PM: Finished processing build request in 24.312s