Command failed with exit code 129

We are unable to find out how to fix this exit code 129.

yarn workspaces
gatsby v4
react 17

Deploy log

7:31:13 PM: Build ready to start
7:31:15 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
7:31:15 PM: build-image tag: v4.5.3
7:31:15 PM: buildbot version: e7450fd8f7c92a26a6e60cdd93525cc24db329dc
7:31:16 PM: Fetching cached dependencies
7:31:16 PM: Starting to download cache of 1.9GB
7:31:26 PM: Finished downloading cache in 10.697042889s
7:31:26 PM: Starting to extract cache
7:32:08 PM: Finished extracting cache in 41.993884933s
7:32:09 PM: Finished fetching cache in 53.030256026s
7:32:09 PM: Starting to prepare the repo for build
7:32:09 PM: Preparing Git Reference pull/331/head
7:32:14 PM: Parsing package.json dependencies
7:32:15 PM: 
​
❯ Initial build environment
baseRelDir: true
branch: website/imgix-gatsby-v4
context: deploy-preview
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: 4b6c429f-1543-45be-9aa5-75a03d1e7484
​
❯ UI build settings
baseRelDir: true
build:
  base: apps/website/
  command: CI= yarn workspace website build
  environment:
    - CI
    - GATSBY_CPU_COUNT
    - NETLIFY_BUILD_DEBUG
    - NETLIFY_USE_YARN
    - PYTHON_VERSION
    - REVIEW_ID
    - SENTRY_AUTH_TOKEN
    - YARN_VERSION
  publish: public/
plugins:
  - inputs: {}
    package: '@netlify/plugin-gatsby'
​
❯ Resolved build environment
branch: website/imgix-gatsby-v4
buildDir: /opt/build/repo/apps/website
configPath: /opt/build/repo/apps/website/netlify.toml
context: deploy-preview
env: []
​
❯ Resolved config
build:
  base: /opt/build/repo/apps/website
  command: yarn workspace website stage-build
  commandOrigin: config
  environment:
    - CI
    - GATSBY_CPU_COUNT
    - NETLIFY_BUILD_DEBUG
    - NETLIFY_USE_YARN
    - PYTHON_VERSION
    - REVIEW_ID
    - SENTRY_AUTH_TOKEN
    - YARN_VERSION
    - NODE_OPTIONS
    - YARN_CACHE_FOLDER
  ignore: git log --format="%H" -n 1 | git diff --quiet --relative=lib/ --relative=apps/website/ master^
  publish: /opt/build/repo/apps/website/public
  publishOrigin: config
headers:
  - for: /sw.js
    values:
      cache-control: max-age=0, no-cache, no-store, must-revalidate
headersOrigin: config
plugins:
  - inputs: {}
    origin: ui
    package: '@netlify/plugin-gatsby'
  - inputs: {}
    origin: config
    package: '@sentry/netlify-build-plugin'

7:32:15 PM: Different build dir detected, going to use the one specified in the Netlify configuration file: 'apps/website' versus 'apps/website/' in the Netlify UI
7:32:15 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'apps/website/public' versus 'public/' in the Netlify UI
7:32:15 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'yarn workspace website stage-build' versus 'CI= yarn workspace website build' in the Netlify UI
7:32:15 PM: Detected ignore command in Netlify configuration file. Proceeding with the specified command: 'git log --format="%H" -n 1 | git diff --quiet --relative=lib/ --relative=apps/website/ master^'
7:32:17 PM: Starting build script
7:32:17 PM: Installing dependencies
7:32:17 PM: Python version set to 3.8
7:32:17 PM: Started restoring cached node version
7:32:21 PM: Finished restoring cached node version
7:32:21 PM: Attempting node version '14' from .node-version
7:32:21 PM: v14.19.0 is already installed.
7:32:22 PM: Now using node v14.19.0 (npm v6.14.16)
7:32:22 PM: Started restoring cached build plugins
7:32:22 PM: Finished restoring cached build plugins
7:32:22 PM: Required ruby-2.6.2 is not installed.
7:32:22 PM: To install do: 'rvm install "ruby-2.6.2"'
7:32:22 PM: Attempting ruby version 2.6.2, read from .ruby-version file
7:32:22 PM: Started restoring cached ruby version
7:32:23 PM: Finished restoring cached ruby version
7:32:25 PM: Using ruby version 2.6.2
7:32:25 PM: Using PHP version 8.0
7:32:25 PM: Started restoring cached yarn cache
7:32:25 PM: Finished restoring cached yarn cache
7:32:27 PM: Yarn workspaces detected
7:32:27 PM: Started restoring workspace apps/customer node modules
7:32:27 PM: Finished restoring workspace apps/customer node modules
7:32:27 PM: Started restoring workspace apps/leads node modules
7:32:27 PM: Finished restoring workspace apps/leads node modules
7:32:27 PM: Started restoring workspace apps/website node modules
7:32:27 PM: Finished restoring workspace apps/website node modules
7:32:27 PM: Started restoring workspace lib/js/cart node modules
7:32:27 PM: Finished restoring workspace lib/js/cart node modules
7:32:27 PM: Started restoring workspace root node modules
7:32:27 PM: Finished restoring workspace root node modules
7:32:28 PM: Installing NPM modules using Yarn version 3.0.2
7:32:30 PM: ➀ YN0050: The cache-folder option has been deprecated; use rc settings instead
7:32:30 PM: ➀ YN0000: β”Œ Resolution step
7:32:31 PM: ➀ YN0060: β”‚ customer@workspace:apps/customer provides @babel/core (p248fb) with version 7.1.0, which doesn't satisfy what babel-jest and some of its descendants request
➀ YN0002: β”‚ website@workspace:apps/website doesn't provide @babel/core (p50edd), requested by @babel/register
7:32:31 PM: ➀ YN0000: β”” Completed in 1s 94ms
7:32:32 PM: ➀ YN0000: β”Œ Fetch step
7:35:27 PM: ➀ YN0066: β”‚ typescript@patch:typescript@npm%3A4.6.2#~builtin<compat/typescript>::version=4.6.2&hash=32657b: Cannot apply hunk #2
7:35:27 PM: ➀ YN0013: β”‚ 7 packages were already cached, 3003 had to be fetched
7:35:27 PM: ➀ YN0000: β”” Completed in 2m 56s
7:35:28 PM: ➀ YN0000: β”Œ Link step
7:35:28 PM: ➀ YN0062: β”‚ fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=1cc4b2 The platform linux is incompatible with this module, link skipped.
7:35:30 PM: ➀ YN0062: β”‚ fsevents@patch:fsevents@npm%3A1.2.13#~builtin<compat/fsevents>::version=1.2.13&hash=1cc4b2 The platform linux is incompatible with this module, link skipped.
7:36:22 PM: ➀ YN0007: β”‚ @parcel/watcher@npm:2.0.4 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ ejs@npm:2.7.4 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ lmdb@npm:2.2.1 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ core-js@npm:3.21.1 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ core-js-pure@npm:3.21.1 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ gatsby-telemetry@npm:3.9.0 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ sharp@npm:0.30.2 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ lmdb@npm:2.2.3 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ msgpackr-extract@npm:1.0.16 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ @sentry/cli@npm:1.73.1 must be built because it never has been before or the last one failed
7:36:22 PM: ➀ YN0007: β”‚ @parcel/watcher@npm:2.0.5 must be built because it never has been before or the last one failed
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT The project needs your help! Please consider supporting of core-js:
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT > https://opencollective.com/core-js
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT > https://patreon.com/zloirock
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT > https://paypal.me/zloirock
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT > bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:3.21.1 STDOUT
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT > https://opencollective.com/core-js
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT > https://www.patreon.com/zloirock
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
7:36:23 PM: ➀ YN0000: β”‚ core-js@npm:2.6.12 STDOUT
7:36:24 PM: ➀ YN0000: β”‚ ejs@npm:2.7.4 STDOUT Thank you for installing EJS: built with the Jake JavaScript build tool (https://jakejs.com/)
7:36:24 PM: ➀ YN0000: β”‚ ejs@npm:2.7.4 STDOUT
7:36:25 PM: ➀ YN0000: β”‚ @sentry/cli@npm:1.73.1 STDERR info sentry-cli Downloading from https://downloads.sentry-cdn.com/sentry-cli/1.73.1/sentry-cli-Linux-x86_64
7:36:26 PM: ➀ YN0000: β”‚ @sentry/cli@npm:1.73.1 STDOUT fetching sentry-cli-Linux-x86_64 100%
7:36:26 PM: ➀ YN0000: β”‚ @sentry/cli@npm:1.73.1 STDERR info Checksum validation passed.
7:36:29 PM: ➀ YN0000: β”‚ sharp@npm:0.30.2 STDOUT sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.12.2/libvips-8.12.2-linux-x64.tar.br
7:36:30 PM: ➀ YN0000: β”‚ sharp@npm:0.30.2 STDOUT sharp: Integrity check passed for linux-x64
7:36:31 PM: ➀ YN0007: β”‚ gatsby-cli@npm:4.9.0 must be built because it never has been before or the last one failed
7:36:31 PM: ➀ YN0007: β”‚ gatsby@npm:4.9.1 [749e8] must be built because it never has been before or the last one failed
7:36:32 PM: ➀ YN0000: β”” Completed in 1m 5s
7:36:33 PM: ➀ YN0000: Done with warnings in 4m 3s
7:36:34 PM: NPM modules installed using Yarn
7:36:36 PM: Started restoring cached go cache
7:36:40 PM: Finished restoring cached go cache
7:36:40 PM: Installing Go version 1.14.4
7:36:40 PM: unset GOOS;
7:36:40 PM: unset GOARCH;
7:36:40 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64';
7:36:40 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.14.4.linux.amd64/bin:${PATH}";
7:36:40 PM: go version >&2;
7:36:40 PM: export GIMME_ENV='/opt/buildhome/.gimme_cache/env/go1.14.4.linux.amd64.env';
7:36:40 PM: go version go1.14.4 linux/amd64
7:36:40 PM: Installing missing commands
7:36:40 PM: Verify run directory
7:36:43 PM: ​
7:36:43 PM: ────────────────────────────────────────────────────────────────
7:36:43 PM:   Netlify Build                                                 
7:36:43 PM: ────────────────────────────────────────────────────────────────
7:36:43 PM: ​
7:36:43 PM: ❯ Version
7:36:43 PM:   @netlify/build 26.3.14
7:36:43 PM: ​
7:36:43 PM: ❯ Flags
7:36:43 PM:   apiHost: api.netlify.com
7:36:43 PM:   baseRelDir: true
7:36:43 PM:   branch: website/imgix-gatsby-v4
7:36:43 PM:   buildId: 622179f1cb65160008e15ecb
7:36:43 PM:   buildbotServerSocket: /tmp/netlify-buildbot-socket
7:36:43 PM:   cacheDir: /opt/build/cache
7:36:43 PM:   cachedConfigPath: /tmp/netlify_config.json
7:36:43 PM:   context: deploy-preview
7:36:43 PM:   cwd: /opt/build/repo
7:36:43 PM:   deployId: 622179f1cb65160008e15ecd
7:36:43 PM:   featureFlags:
7:36:43 PM:     - buildbot_build_go_functions
7:36:43 PM:     - zisi_parse_isc
7:36:43 PM:   framework: gatsby
7:36:43 PM:   functionsDistDir: /tmp/zisi-622179f1cb65160008e15ecd
7:36:43 PM:   mode: buildbot
7:36:43 PM:   nodePath: /opt/buildhome/.nvm/versions/node/v14.19.0/bin/node
7:36:43 PM:   repositoryRoot: /opt/build/repo
7:36:43 PM:   saveConfig: true
7:36:43 PM:   sendStatus: true
7:36:43 PM:   siteId: SITE_ID
7:36:43 PM:   statsd:
7:36:43 PM:     host: 10.128.1.45
7:36:43 PM:     port: 8125
7:36:43 PM:   testOpts:
7:36:43 PM:     silentLingeringProcesses: ''
7:36:43 PM: ​
7:36:43 PM: ❯ Current directory
7:36:43 PM:   /opt/build/repo/apps/website
7:36:43 PM: ​
7:36:43 PM: ❯ Config file
7:36:43 PM:   /opt/build/repo/apps/website/netlify.toml
7:36:43 PM: ​
7:36:43 PM: ❯ Resolved config
7:36:43 PM:   build:
7:36:43 PM:     base: /opt/build/repo/apps/website
7:36:43 PM:     command: yarn workspace website stage-build
7:36:43 PM:     commandOrigin: config
7:36:43 PM:     environment:
7:36:43 PM:       - CI
7:36:43 PM:       - GATSBY_CPU_COUNT
7:36:43 PM:       - NETLIFY_BUILD_DEBUG
7:36:43 PM:       - NETLIFY_USE_YARN
7:36:43 PM:       - PYTHON_VERSION
7:36:43 PM:       - REVIEW_ID
7:36:43 PM:       - SENTRY_AUTH_TOKEN
7:36:43 PM:       - YARN_VERSION
7:36:43 PM:       - NODE_OPTIONS
7:36:43 PM:       - YARN_CACHE_FOLDER
7:36:43 PM:     ignore: git log --format="%H" -n 1 | git diff --quiet --relative=lib/ --relative=apps/website/ master^
7:36:43 PM:     publish: /opt/build/repo/apps/website/public
7:36:43 PM:     publishOrigin: config
7:36:43 PM:   headers:
7:36:43 PM:     - for: /sw.js
7:36:43 PM:       values:
7:36:43 PM:         cache-control: max-age=0, no-cache, no-store, must-revalidate
7:36:43 PM:   headersOrigin: config
7:36:43 PM:   plugins:
7:36:43 PM:     - inputs: {}
7:36:43 PM:       origin: ui
7:36:43 PM:       package: '@netlify/plugin-gatsby'
7:36:43 PM:     - inputs: {}
7:36:43 PM:       origin: config
7:36:43 PM:       package: '@sentry/netlify-build-plugin'
7:36:43 PM: ​
7:36:43 PM: ❯ Context
7:36:43 PM:   deploy-preview
7:36:43 PM: ​
7:36:43 PM: ❯ Available plugins
7:36:43 PM:    - @algolia/netlify-plugin-crawler@1.0.0
7:36:43 PM:    - @bharathvaj/netlify-plugin-airbrake@1.0.2
7:36:43 PM:    - @commandbar/netlify-plugin-commandbar@0.0.4
7:36:43 PM:    - @helloample/netlify-plugin-replace@1.1.4
7:36:43 PM:    - @netlify/plugin-angular-universal@1.0.1
7:36:43 PM:    - @netlify/plugin-gatsby@2.1.2
7:36:43 PM:    - @netlify/plugin-lighthouse@2.1.3
7:36:43 PM:    - @netlify/plugin-nextjs@4.2.7
7:36:43 PM:    - @netlify/plugin-sitemap@0.8.1
7:36:43 PM:    - @newrelic/netlify-plugin@1.0.1
7:36:43 PM:    - @sentry/netlify-build-plugin@1.1.1
7:36:43 PM:    - netlify-build-plugin-dareboost@1.2.1
7:36:43 PM:    - netlify-build-plugin-debugbear@1.0.6
7:36:43 PM:    - netlify-build-plugin-perfbeacon@1.0.3
7:36:43 PM:    - netlify-build-plugin-speedcurve@2.0.0
7:36:43 PM:    - netlify-deployment-hours-plugin@0.0.10
7:36:43 PM:    - netlify-plugin-a11y@0.0.12
7:36:43 PM:    - netlify-plugin-add-instagram@0.2.2
7:36:43 PM:    - netlify-plugin-algolia-index@0.3.0
7:36:43 PM:    - netlify-plugin-amp-server-side-rendering@1.0.2
7:36:43 PM:    - netlify-plugin-brand-guardian@1.0.1
7:36:43 PM:    - netlify-plugin-build-logger@1.0.3
7:36:43 PM:    - netlify-plugin-cache-nextjs@1.4.0
7:36:43 PM:    - netlify-plugin-cecil-cache@0.2.5
7:36:43 PM:    - netlify-plugin-checklinks@4.1.1
7:36:43 PM:    - netlify-plugin-chromium@1.1.4
7:36:43 PM:    - netlify-plugin-cloudinary@1.0.0
7:36:43 PM:    - netlify-plugin-contextual-env@0.3.0
7:36:43 PM:    - netlify-plugin-cypress@2.2.0
7:36:43 PM:    - netlify-plugin-debug-cache@1.0.4
7:36:43 PM:    - netlify-plugin-encrypted-files@0.0.5
7:36:43 PM:    - netlify-plugin-fetch-feeds@0.2.3
7:36:43 PM:    - netlify-plugin-gatsby-cache@0.3.0
7:36:43 PM:    - netlify-plugin-get-env-vars@1.0.0
7:36:43 PM:    - netlify-plugin-ghost-inspector@1.0.1
7:36:43 PM:    - netlify-plugin-ghost-markdown@3.0.3
7:36:43 PM:    - netlify-plugin-gmail@1.1.0
7:36:43 PM:    - netlify-plugin-gridsome-cache@1.0.3
7:36:43 PM:    - netlify-plugin-hashfiles@4.0.2
7:36:43 PM:    - netlify-plugin-html-validate@1.0.0
7:36:43 PM:    - netlify-plugin-hugo-cache-resources@0.2.1
7:36:43 PM:    - netlify-plugin-image-optim@0.4.0
7:36:43 PM:    - netlify-plugin-inline-critical-css@2.0.0
7:36:43 PM:    - netlify-plugin-inline-functions-env@1.0.8
7:36:43 PM:    - netlify-plugin-inline-source@1.0.4
7:36:43 PM:    - netlify-plugin-is-website-vulnerable@2.0.3
7:36:43 PM:    - netlify-plugin-jekyll-cache@1.0.0
7:36:43 PM:    - netlify-plugin-js-obfuscator@1.0.20
7:36:43 PM:    - netlify-plugin-minify-html@0.3.1
7:36:43 PM:    - netlify-plugin-next-dynamic@1.0.9
7:36:43 PM:    - netlify-plugin-nimbella@2.1.0
7:36:43 PM:    - netlify-plugin-no-more-404@0.0.15
7:36:43 PM:    - netlify-plugin-nx-skip-build@0.0.5
7:36:43 PM:    - netlify-plugin-pagewatch@1.0.4
7:36:43 PM:    - netlify-plugin-prerender-spa@1.0.1
7:36:43 PM:    - netlify-plugin-prisma-provider@0.3.0
7:36:43 PM:    - netlify-plugin-pushover@0.1.1
7:36:43 PM:    - netlify-plugin-qawolf@1.2.0
7:36:43 PM:    - netlify-plugin-rss@0.0.8
7:36:43 PM:    - netlify-plugin-search-index@0.1.5
7:36:43 PM:    - netlify-plugin-snyk@1.2.0
7:36:43 PM:    - netlify-plugin-stepzen@1.0.3
7:36:43 PM:    - netlify-plugin-subfont@6.0.0
7:36:43 PM:    - netlify-plugin-submit-sitemap@0.2.3
7:36:43 PM:    - netlify-plugin-to-all-events@1.3.1
7:36:43 PM:    - netlify-plugin-use-env-in-runtime@1.2.1
7:36:43 PM:    - netlify-plugin-visual-diff@2.0.0
7:36:43 PM:    - netlify-plugin-webmentions@1.1.0
7:36:43 PM:    - netlify-purge-cloudflare-on-deploy@1.2.0
7:36:43 PM: ​
7:36:43 PM: ❯ Loading plugins
7:36:43 PM:    - @netlify/plugin-gatsby@1.0.3 from Netlify app (pinned 1.0.3, latest 2.1.2, expected 1.0.3, compatible 2.1.2)
7:36:43 PM:    - @sentry/netlify-build-plugin@1.1.1 from netlify.toml (pinned 1, latest 1.1.1, expected 1.1.1, compatible 1.1.1)
7:36:43 PM: ​
7:36:43 PM: ❯ Outdated plugins
7:36:43 PM:    - @netlify/plugin-gatsby@1.0.3: latest version is 2.1.2
7:36:43 PM:      Migration guide: https://ntl.fyi/gatsby-plugin-migration
7:36:43 PM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
7:36:45 PM: ​
7:36:45 PM: ────────────────────────────────────────────────────────────────
7:36:45 PM:   1. @netlify/plugin-gatsby (onPreBuild event)                  
7:36:45 PM: ────────────────────────────────────────────────────────────────
7:36:45 PM: ​
7:36:45 PM: Step starting.
7:36:45 PM: Step started.
7:36:45 PM: Plugin logic started.
7:37:01 PM: Found a Gatsby cache. We’re about to go FAST. ⚑️
7:37:01 PM: Using environment api config: 'development'
7:37:01 PM: Plugin logic ended.
7:37:01 PM: Stop closing.
7:37:01 PM: Step ended.
7:37:01 PM: ​
7:37:01 PM: Warning: the same header is set twice with different cases for "/sw.js": "cache-control" and "Cache-Control"
7:37:02 PM: ​
7:37:02 PM: ❯ Updated config
7:37:02 PM:   build:
7:37:02 PM:     base: /opt/build/repo/apps/website
7:37:02 PM:     command: yarn workspace website stage-build
7:37:02 PM:     commandOrigin: config
7:37:02 PM:     environment:
7:37:02 PM:       - CI
7:37:02 PM:       - GATSBY_CPU_COUNT
7:37:02 PM:       - NETLIFY_BUILD_DEBUG
7:37:02 PM:       - NETLIFY_USE_YARN
7:37:02 PM:       - PYTHON_VERSION
7:37:02 PM:       - REVIEW_ID
7:37:02 PM:       - SENTRY_AUTH_TOKEN
7:37:02 PM:       - YARN_VERSION
7:37:02 PM:       - NODE_OPTIONS
7:37:02 PM:       - YARN_CACHE_FOLDER
7:37:02 PM:     ignore: git log --format="%H" -n 1 | git diff --quiet --relative=lib/ --relative=apps/website/ master^
7:37:02 PM:     publish: /opt/build/repo/apps/website/public
7:37:02 PM:     publishOrigin: config
Step completed.
7:37:02 PM: ​
7:37:02 PM: (@netlify/plugin-gatsby onPreBuild completed in 16s)
7:37:02 PM: ​
7:37:02 PM: ────────────────────────────────────────────────────────────────
7:37:02 PM:   2. build.command from netlify.toml                            
7:37:02 PM: ────────────────────────────────────────────────────────────────
7:37:02 PM: ​
7:37:02 PM: $ yarn workspace website stage-build
7:37:06 PM: verbose 1.160834145 set gatsby_log_level: "verbose"
7:37:06 PM: verbose 1.163922944 set gatsby_executing_command: "build"
7:37:06 PM: verbose 1.164978578 loading local command from: /opt/build/repo/node_modules/gatsby/dist/commands/build.js
7:37:07 PM: error Unexpected key "pageData" found in preloadedState argument passed to createStore. Expected to find one of the known reducer keys instead: "nodes", "logs", "pages", "redirects", "schema", "definitions", "staticQueryComponents", "status", "webpack", "webpackCompilationHash", "config", "lastAction", "jobsV2", "pageDataStats", "components", "babelrc", "jobs", "nodesByType", "program", "resolvedNodesCache", "nodesTouched", "flattenedPlugins", "pendingPageDataWrites", "schemaCustomization", "inferenceMetadata", "staticQueriesByTemplate", "queries", "visitedPages", "html", "functions", "nodeManifests", "pageTree". Unexpected keys will be ignored.
7:37:09 PM: verbose 4.733532679 running command: build
7:37:12 PM: success compile gatsby files - 2.938s
7:37:12 PM: Using environment api config: 'staging'
7:37:12 PM: success load gatsby config - 0.219s
7:37:13 PM: warning Plugin gatsby-plugin-advanced-sitemap is not compatible with your gatsby version 4.9.1 - It requires gatsby@^3.0.0
7:37:14 PM: warning Plugin gatsby-plugin-advanced-sitemap is not compatible with your gatsby version 4.9.1 - It requires gatsby@^3.0.0
7:37:15 PM: success load plugins - 2.853s
7:37:16 PM: info [@imgix/gatsby] Loaded plugin.
7:37:16 PM: success onPreInit - 0.007s
7:37:16 PM: success delete html and css files from previous builds - 0.144s
7:37:16 PM: info One or more of your plugins have changed since the last time you ran Gatsby. As
7:37:17 PM: a precaution, we're deleting your site's cache to ensure there's no stale data.
success initialize cache - 1.089s
7:37:17 PM: success copy gatsby files - 0.232s
7:37:17 PM: verbose 12.934689571 Attaching functions to development server
7:37:18 PM: success Compiling Gatsby Functions - 0.366s
7:37:18 PM: success onPreBootstrap - 0.517s
7:37:18 PM: verbose 13.488686816 Creating 7 worker
7:37:20 PM: success loading DatoCMS schema - 1.106s
7:37:20 PM: success createSchemaCustomization - 1.609s
7:37:40 PM: Using environment api config: 'staging'
7:37:40 PM: Using environment api config: 'staging'
7:37:40 PM: Using environment api config: 'staging'
7:37:40 PM: Using environment api config: 'staging'
7:37:40 PM: Using environment api config: 'staging'
7:37:40 PM: Using environment api config: 'staging'
7:37:40 PM: Using environment api config: 'staging'
7:38:15 PM: success loading DatoCMS content - 21.641s
7:38:15 PM: verbose 70.482054478 Checking for deleted pages
7:38:15 PM: verbose 70.483036245 Deleted 0 pages
7:38:15 PM: verbose 70.483316781 Found 0 changed pages
7:38:15 PM: success Checking for changed pages - 0.001s
7:38:15 PM: success source and transform nodes - 54.776s
7:38:15 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:38:15 PM: info Writing GraphQL type definitions to /opt/build/repo/apps/website/.cache/schema.gql
7:38:17 PM: success building schema - 2.220s
7:38:17 PM: success createPages - 0.340s
7:38:18 PM: success createPagesStatefully - 0.838s
7:38:18 PM: info Total nodes: 19001, SitePage nodes: 429 (use --verbose for breakdown)
7:38:18 PM: verbose 73.887775971 Number of node types: 44. Nodes per type: DatoCmsActiveExperiment: 1, DatoCmsAllergy: 9, DatoCmsAsset: 2003, DatoCmsBlog: 265, DatoCmsCart: 8, DatoCmsCategory: 3, DatoCmsContentSection: 2012, DatoCmsDisability: 8, DatoCmsDiscount: 44, DatoCmsExclusiveGroup: 21, DatoCmsExperiment: 1, DatoCmsFaviconMetaTags: 1, DatoCmsFeature: 123, DatoCmsField: 212, DatoCmsImageSection: 1697, DatoCmsMedicalCondition: 34, DatoCmsMedication: 399, DatoCmsModel: 32, DatoCmsPackage: 47, DatoCmsPackageProduct: 32, DatoCmsPartner: 7, DatoCmsPartnerSalesConfig: 6, DatoCmsPayLater: 1, DatoCmsProduct: 50, DatoCmsProductCategory: 12, DatoCmsSeo: 88, DatoCmsSeoMetaTagContent: 1, DatoCmsSeoMetaTags: 4884, DatoCmsSite: 1, DatoCmsSiteMetaInfo: 1, DatoCmsSurvey: 1, DatoCmsSurveyOptionValue: 9, DatoCmsSurveyOptionValueWithInput: 2, DatoCmsSurveyQuestion: 1, DatoCmsSurveyQuestionTypeDropdown: 1, DatoCmsTextNode: 2424, Directory: 226, File: 1033, ImageSharp: 494, MarkdownRemark: 2324, Site: 1, SiteBuildMetadata: 1, SitePage: 429, SitePlugin: 52
7:38:18 PM: verbose 73.887962174 Checking for deleted pages
7:38:18 PM: verbose 73.888358348 Deleted 0 pages
7:38:18 PM: verbose 73.88901217 Found 429 changed pages
7:38:18 PM: success Checking for changed pages - 0.001s
7:38:18 PM: success Cleaning up stale page-data - 0.067s
7:38:18 PM: success onPreExtractQueries - 0.043s
7:39:27 PM: success extract queries from components - 68.167s
7:39:27 PM: success loading DatoCMS schema - 0.001s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success loading DatoCMS schema - 0.000s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success loading DatoCMS schema - 0.000s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success loading DatoCMS schema - 0.000s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success loading DatoCMS schema - 0.000s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success loading DatoCMS schema - 0.000s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success loading DatoCMS schema - 0.000s
7:39:27 PM: warning Plugin `gatsby-source-datocms` has customized the GraphQL type `DatoCmsAsset`, which has already been defined by the plugin `@imgix/gatsby`. This could potentially cause conflicts.
7:39:27 PM: success write out redirect data - 0.215s
7:39:27 PM: success Build manifest and related icons - 0.665s
7:39:27 PM: success onPostBootstrap - 0.668s
7:39:27 PM: info bootstrap finished - 143.072s
7:39:28 PM: success write out requires - 0.016s
7:42:43 PM: warning ./src/components/activate/v2/sensorNameWidget.js
7:42:43 PM: Attempted import error: 'icon' is not exported from './sensorNameWidget.module.scss' (imported as 's').
7:42:43 PM: success Building production JavaScript and CSS bundles - 195.344s
7:46:12 PM: ​
7:46:12 PM: ────────────────────────────────────────────────────────────────
7:46:12 PM:   "build.command" failed                                        
7:46:12 PM: ────────────────────────────────────────────────────────────────
7:46:12 PM: ​
7:46:12 PM:   Error message
7:46:12 PM:   Command failed with exit code 129: yarn workspace website stage-build
7:46:12 PM: ​
7:46:12 PM:   Error location
7:46:12 PM:   In build.command from netlify.toml:
7:46:12 PM:   yarn workspace website stage-build
7:46:12 PM: ​
7:46:12 PM:   Resolved config
7:46:12 PM:   build:
7:46:12 PM:     base: /opt/build/repo/apps/website
7:46:12 PM:     command: yarn workspace website stage-build
7:46:12 PM:     commandOrigin: config
7:46:12 PM:     environment:
7:46:12 PM:       - CI
7:46:12 PM:       - GATSBY_CPU_COUNT
7:46:12 PM:       - NETLIFY_BUILD_DEBUG
7:46:12 PM:       - NETLIFY_USE_YARN
7:46:12 PM:       - PYTHON_VERSION
7:46:12 PM:       - REVIEW_ID
7:46:12 PM:       - SENTRY_AUTH_TOKEN
7:46:12 PM:       - YARN_VERSION
7:46:12 PM:       - NODE_OPTIONS
7:46:12 PM:       - YARN_CACHE_FOLDER
7:46:12 PM:     ignore: git log --format="%H" -n 1 | git diff --quiet --relative=lib/ --relative=apps/website/ master^
7:46:12 PM:     publish: /opt/build/repo/apps/website/public
7:46:12 PM:     publishOrigin: config
Caching artifacts
7:46:12 PM: Started saving workspace apps/customer node modules
7:46:12 PM: Finished saving workspace apps/customer node modules
7:46:12 PM: Started saving workspace apps/leads node modules
7:46:12 PM: Finished saving workspace apps/leads node modules
7:46:12 PM: Started saving workspace apps/website node modules
7:46:12 PM: Finished saving workspace apps/website node modules
7:46:12 PM: Started saving workspace lib/js/cart node modules
7:46:12 PM: Finished saving workspace lib/js/cart node modules
7:46:12 PM: Started saving workspace root node modules
7:46:12 PM: Finished saving workspace root node modules
7:46:12 PM: Started saving build plugins
7:46:12 PM: Finished saving build plugins
7:46:12 PM: Started saving yarn cache
7:46:15 PM: Finished saving yarn cache
7:46:15 PM: Started saving pip cache
7:46:15 PM: Finished saving pip cache
7:46:15 PM: Started saving emacs cask dependencies
7:46:15 PM: Finished saving emacs cask dependencies
7:46:15 PM: Started saving maven dependencies
7:46:15 PM: Finished saving maven dependencies
7:46:15 PM: Started saving boot dependencies
7:46:15 PM: Finished saving boot dependencies
7:46:15 PM: Started saving rust rustup cache
7:46:15 PM: Finished saving rust rustup cache
7:46:15 PM: Started saving go dependencies
7:46:19 PM: Finished saving go dependencies
7:46:19 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:46:19 PM: Creating deploy upload records
7:46:19 PM: Failing build: Failed to build site
7:46:19 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
`7:46:19 PM: Finished processing build request in 15m4.029865146s

This seems like a problem in your code rather than in our services, but happy to help you troubleshoot. I suppose as a start that this doesn’t happen when you build locally?

This article has our best build debugging advice:

wherein you’ll see that number 1 is making sure it builds locally, but #2 is being sure that you’ve explicitly set all of the versions for things like yarn and node

Some other things to consider:

  • the error comes from yarn, so I’d guess yarn is what is failing.

  • I am somewhat of a unix whiz but that isn’t a typical exit code. That is what the numbered exit codes are though - unix exit statuses. This article suggests that it is probably an exit code of 1 with some modifier, and that is a pretty generic failing exit as you can see in that doc, so not a lot of guidance there.

  • since you use gatsby v4, you really should be using the updated plugin, which is the only version with full Gatsby4 support:

 ❯ Outdated plugins
7:36:43 PM:    - @netlify/plugin-gatsby@1.0.3: latest version is 2.1.2
7:36:43 PM:      Migration guide: https://ntl.fyi/gatsby-plugin-migration
7:36:43 PM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)

While none of those may directly resolve the problem, I think they are all worth looking into to see if any do. If not, let us know what if any changes you observe when you try following the advice (e.g. about upgrading the gatsby plugin) as that will be useful details to feed into future steps of our troubleshooting.

1 Like

It does build locally. and it even builds with the netlify-cli.

I have been working on the errors.

I have been able to get it to build with most of our pages removed. There is just not useful for fixing it.

Any suggestions?

For a starter, you didn’t tell me if you’d explicitly set your versions - are you doing that and do they match your local?

If so, please link us to both a failing and a successful build log and explain what you are doing to move from the failed to successful state and then we’ll be best positioned to advise you further.

Build image: Ubuntu Focal 20.04 (default)
Yarn 1.22.4 (yarn.yml 3.0.2)
Python 3.8
Node 14
React 17
Gatsby 4

broken build Netlify App

working build (in this one I have removed a component and I have retried the build. ) Netlify App

Successful build Netlify App

I am not sure why it was throw an error. or a useful warn. any suggestions?

BEFORE

import React, { Component } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';

import * as s from './modal.module.scss';

class CoveModal extends Component {
  constructor(props) {
    super(props);

    this.wrapperRef = React.createRef();
  }

  componentDidMount() {
    document.addEventListener('mousedown', this.handleOutsideClick);
  }

  componentWillUnmount() {
    document.removeEventListener('mousedown', this.handleOutsideClick);
  }

  handleOutsideClick = event => {
    if (
      this.wrapperRef &&
      this.wrapperRef.current &&
      !this.wrapperRef.current.contains(event.target)
    ) {
      this.props.toggleOpen();
    }
  };

  render() {
    const { styles, visible, warning, success } = this.props;

    return visible ? (
      <div className={s.overlay}>
        <div
          ref={this.wrapperRef}
          className={cx(s.modal, {
            [s.warning]: warning,
            [s.success]: success,
            [this.props.className]: this.props.className,
          })}
          style={{
            ...styles,
          }}
        >
          {this.props.children}
        </div>
      </div>
    ) : null;
  }
}

CoveModal.propTypes = {
  children: PropTypes.any,
  styles: PropTypes.object,
  toggleOpen: PropTypes.func,
  visible: PropTypes.bool,
};
CoveModal.defaultProps = {
  styles: {},
  visible: false,
};

export default CoveModal;

AFTER

import React, { useRef, useEffect } from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';

import * as s from './modal.module.scss';

const CoveModal = ({
  styles,
  visible,
  warning,
  success,
  toggleOpen,
  className,
  children,
}) => {
  const wrapperRef = useRef();

  useEffect(() => {
    const handleOutsideClick = event => {
      if (
        wrapperRef &&
        wrapperRef.current &&
        !wrapperRef.current.contains(event.target)
      ) {
        toggleOpen();
      }
    };
    document.addEventListener('mousedown', handleOutsideClick);

    return () => {
      document.removeEventListener('mousedown', handleOutsideClick);
    };
  }, [wrapperRef, toggleOpen]);

  return visible ? (
    <div className={s.overlay}>
      <div
        ref={wrapperRef}
        className={cx(s.modal, {
          [s.warning]: warning,
          [s.success]: success,
          [className]: className,
        })}
        style={{
          ...styles,
        }}
      >
        {children}
      </div>
    </div>
  ) : null;
};

CoveModal.propTypes = {
  children: PropTypes.any,
  styles: PropTypes.object,
  toggleOpen: PropTypes.func,
  visible: PropTypes.bool,
};
CoveModal.defaultProps = {
  styles: {},
  visible: false,
};

export default CoveModal;

I found another cause for the 129 error.

A component that we used was not up to date. they have a workaround but no error was thrown just the exit code 129 in netlify, but not on local builds.

I did find something with git possibly

what git commands are being used in netlify?

Hi @kylo.j ,

Git likely is not the cause because the build at the time that the error was thrown has already passed the git process. Netlify uses the git commands git fetch, git pull and git checkout.

It appears that by removing a component you were able to successfully build. Do you still need help? If so, we’ll need access to your source code. If you feel comfortable doing so please post here or, if you prefer, please open a helpdesk ticket by emailing support@netlify.com.