Skip to main content

Deploy details

Your deploy failed due to an error

Deploy failed for semgrep-docs-prod

[KB] Update PR/MR comments troubleshooting to reflect current advice

PR #2067: update-pr-comments-kb@17737dd

Deploy log

Initializing

Complete
12:43:58 AM: Build ready to start
12:44:14 AM: build-image version: 59029cc38debec12b365d8cde2431251b878d6bf (focal)
12:44:14 AM: buildbot version: 911e38b4db82bf5cd08627b366a88d99622b3aab
12:44:15 AM: Fetching cached dependencies
12:44:15 AM: Starting to download cache of 1004.1MB
12:44:17 AM: Finished downloading cache in 2.806s
12:44:17 AM: Starting to extract cache
12:44:27 AM: Finished extracting cache in 9.154s
12:44:27 AM: Finished fetching cache in 12.07s
12:44:27 AM: Starting to prepare the repo for build
12:44:27 AM: Preparing Git Reference pull/2067/head
12:44:29 AM: Custom build path detected. Proceeding with the specified path: ''
12:44:29 AM: Starting to install dependencies
12:44:30 AM: Started restoring cached mise cache
12:44:30 AM: Finished restoring cached mise cache
12:44:31 AM: mise python@3.13.2 install
12:44:31 AM: mise python@3.13.2 download cpython-3.13.2+20250317-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
12:44:31 AM: mise python@3.13.2 extract cpython-3.13.2+20250317-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
12:44:31 AM: mise python@3.13.2 python --version
12:44:31 AM: mise python@3.13.2 Python 3.13.2
12:44:31 AM: mise python@3.13.2 installed
12:44:31 AM: Python version set to 3.13
12:44:32 AM: Collecting pipenv
12:44:32 AM: Downloading pipenv-2024.4.1-py3-none-any.whl.metadata (17 kB)
12:44:32 AM: Collecting certifi (from pipenv)
12:44:32 AM: Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
12:44:32 AM: Collecting packaging>=22 (from pipenv)
12:44:32 AM: Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
12:44:33 AM: Collecting setuptools>=67 (from pipenv)
12:44:33 AM: Downloading setuptools-78.1.0-py3-none-any.whl.metadata (6.6 kB)
12:44:33 AM: Collecting virtualenv>=20.24.2 (from pipenv)
12:44:33 AM: Downloading virtualenv-20.30.0-py3-none-any.whl.metadata (4.5 kB)
12:44:33 AM: Collecting distlib<1,>=0.3.7 (from virtualenv>=20.24.2->pipenv)
12:44:33 AM: Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
12:44:33 AM: Collecting filelock<4,>=3.12.2 (from virtualenv>=20.24.2->pipenv)
12:44:33 AM: Downloading filelock-3.18.0-py3-none-any.whl.metadata (2.9 kB)
12:44:33 AM: Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.24.2->pipenv)
12:44:33 AM: Downloading platformdirs-4.3.7-py3-none-any.whl.metadata (11 kB)
12:44:33 AM: Downloading pipenv-2024.4.1-py3-none-any.whl (3.0 MB)
12:44:33 AM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 60.2 MB/s eta 0:00:00
12:44:33 AM: Downloading packaging-24.2-py3-none-any.whl (65 kB)
12:44:33 AM: Downloading setuptools-78.1.0-py3-none-any.whl (1.3 MB)
12:44:33 AM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 104.5 MB/s eta 0:00:00
12:44:33 AM: Downloading virtualenv-20.30.0-py3-none-any.whl (4.3 MB)
12:44:33 AM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 167.9 MB/s eta 0:00:00
12:44:33 AM: Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
12:44:33 AM: Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
12:44:33 AM: Downloading filelock-3.18.0-py3-none-any.whl (16 kB)
12:44:33 AM: Downloading platformdirs-4.3.7-py3-none-any.whl (18 kB)
12:44:33 AM: Installing collected packages: distlib, setuptools, platformdirs, packaging, filelock, certifi, virtualenv, pipenv
12:44:35 AM: Successfully installed certifi-2025.1.31 distlib-0.3.9 filelock-3.18.0 packaging-24.2 pipenv-2024.4.1 platformdirs-4.3.7 setuptools-78.1.0 virtualenv-20.30.0
12:44:35 AM: [notice] A new release of pip is available: 24.3.1 -> 25.0.1
12:44:35 AM: [notice] To update, run: pip install --upgrade pip
12:44:35 AM: Attempting Ruby version 2.7.2, read from environment
12:44:36 AM: Using Ruby version 2.7.2
12:44:37 AM: Started restoring cached go cache
12:44:37 AM: Finished restoring cached go cache
12:44:38 AM: go version go1.19.13 linux/amd64
12:44:39 AM: Using PHP version 8.0
12:44:41 AM: Started restoring cached Node.js version
12:44:44 AM: Finished restoring cached Node.js version
12:44:44 AM: v18.20.8 is already installed.
12:44:44 AM: Now using node v18.20.8 (npm v10.8.2)
12:44:44 AM: Enabling Node.js Corepack
12:44:44 AM: Started restoring cached build plugins
12:44:44 AM: Finished restoring cached build plugins
12:44:44 AM: Started restoring cached corepack dependencies
12:44:44 AM: Finished restoring cached corepack dependencies
12:44:44 AM: Started restoring cached yarn cache
12:44:44 AM: Finished restoring cached yarn cache
12:44:45 AM: Installing Yarn version 1.22.19
12:44:45 AM: Preparing yarn@1.22.19 for immediate activation...
12:44:45 AM: No yarn workspaces detected
12:44:45 AM: Started restoring cached node modules
12:44:45 AM: Finished restoring cached node modules
12:44:45 AM: Installing npm packages using Yarn version 1.22.19
12:44:46 AM: yarn install v1.22.19
12:44:46 AM: [1/4] Resolving packages...
12:44:46 AM: success Already up-to-date.
12:44:46 AM: Done in 0.33s.
12:44:46 AM: npm packages installed using Yarn
12:44:46 AM: Successfully installed dependencies
12:44:46 AM: Starting build script
12:44:48 AM: Detected 1 framework(s)
12:44:48 AM: "docusaurus" at version "3.7.0"
12:44:48 AM: Section completed: initializing

Building

Failed
12:44:49 AM: Netlify Build
12:44:49 AM: ────────────────────────────────────────────────────────────────
12:44:49 AM:
12:44:49 AM: ❯ Version
12:44:49 AM: @netlify/build 30.0.6
12:44:49 AM:
12:44:49 AM: ❯ Flags
12:44:49 AM: accountId: 64f781cf55c05621278bf1a4
12:44:49 AM: baseRelDir: true
12:44:49 AM: buildId: 67ec884ef2d3cc000899f782
12:44:49 AM: deployId: 67ec884ef2d3cc000899f784
12:44:49 AM:
12:44:49 AM: ❯ Current directory
12:44:49 AM: /opt/build/repo
12:44:49 AM:
12:44:49 AM: ❯ Config file
12:44:49 AM: /opt/build/repo/netlify.toml
12:44:49 AM:
12:44:49 AM: ❯ Context
12:44:49 AM: deploy-preview
12:44:49 AM:
12:44:49 AM: Build command from Netlify app
12:44:49 AM: ────────────────────────────────────────────────────────────────
12:44:49 AM: ​
12:44:49 AM: $ yarn build --out-dir build/docs
12:44:49 AM: yarn run v1.22.19
12:44:49 AM: $ bash run-build-scripts && docusaurus build --out-dir build/docs
12:44:55 AM: % Total % Received % Xferd Average Speed Time Time Time Current
12:44:55 AM: Dload Upload Total Spent Left Speed
12:44:55 AM: 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
12:44:55 AM: 100 38622 100 38622 0 0 267k 0 --:--:-- --:--:-- --:--:-- 269k
12:44:56 AM: [INFO] [en] Creating an optimized production build...
12:44:57 AM: [WARNING] Duplicate routes found!
12:44:57 AM: - Attempting to create page at /docs/metrics, but a page already exists at this route.
12:44:57 AM: - Attempting to create page at /docs/semgrep-appsec-platform/dashboard, but a page already exists at this route.
12:44:57 AM: This could lead to non-deterministic routing behavior.
12:44:57 AM: [info] [webpackbar] Compiling Client
12:44:57 AM: [info] [webpackbar] Compiling Server
12:45:02 AM: [success] [webpackbar] Server: Compiled successfully in 4.43s
12:45:06 AM: [success] [webpackbar] Client: Compiled successfully in 8.68s
12:45:13 AM: [ERROR] Error: Unable to build website for locale en.
12:45:13 AM: at tryToBuildLocale (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:78:15)
12:45:13 AM: at async /opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:34:9
12:45:13 AM: ... 4 lines matching cause stack trace ...
12:45:13 AM: at async file:///opt/build/repo/node_modules/@docusaurus/core/bin/docusaurus.mjs:44:3 {
12:45:13 AM: [cause]: Error: Docusaurus found broken links!
12:45:13 AM:
12:45:13 AM: Please check the pages of your site in the list below, and make sure you don't reference any path that does not exist.
Note: it's possible to ignore broken links with the 'onBrokenLinks' Docusaurus configuration, and let the build pass.
12:45:13 AM: Exhaustive list of all broken links found:
12:45:13 AM: - Broken link on source page path = /docs/kb/semgrep-appsec-platform/missing-pr-comments:
12:45:13 AM: -> linking to docs/semgrep-appsec-platform/azure-pr-comments (resolved as: /docs/kb/semgrep-appsec-platform/docs/semgrep-appsec-platform/azure-pr-comments)
12:45:13 AM:
12:45:13 AM: at throwError (/opt/build/repo/node_modules/@docusaurus/logger/lib/logger.js:80:11)
12:45:13 AM: at reportBrokenLinks (/opt/build/repo/node_modules/@docusaurus/core/lib/server/brokenLinks.js:250:47)
12:45:13 AM: at handleBrokenLinks (/opt/build/repo/node_modules/@docusaurus/core/lib/server/brokenLinks.js:282:5)
12:45:13 AM: at executeBrokenLinksCheck (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/buildLocale.js:91:47)
12:45:13 AM: at /opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/buildLocale.js:70:67
12:45:13 AM: at Object.async (/opt/build/repo/node_modules/@docusaurus/logger/lib/perfLogger.js:42:47)
12:45:13 AM: at buildLocale (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/buildLocale.js:70:31)
12:45:13 AM: at async runBuildLocaleTask (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:93:5)
12:45:13 AM: at async /opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:74:13
12:45:13 AM: at async tryToBuildLocale (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:70:9)
12:45:13 AM: at async /opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:34:9
12:45:13 AM: at async mapAsyncSequential (/opt/build/repo/node_modules/@docusaurus/utils/lib/jsUtils.js:21:24)
12:45:13 AM: at async Command.build (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/build/build.js:33:5)
12:45:13 AM: at async Promise.all (index 0)
12:45:13 AM: at async runCLI (/opt/build/repo/node_modules/@docusaurus/core/lib/commands/cli.js:56:5)
12:45:13 AM: at async file:///opt/build/repo/node_modules/@docusaurus/core/bin/docusaurus.mjs:44:3
12:45:13 AM: }
12:45:13 AM: [INFO] Docusaurus version: 3.7.0
12:45:13 AM: Node version: v18.20.8
12:45:14 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
12:45:14 AM: error Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
12:45:14 AM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
12:45:14 AM:
12:45:14 AM: "build.command" failed
12:45:14 AM: ────────────────────────────────────────────────────────────────
12:45:14 AM: ​
12:45:14 AM: Error message
12:45:14 AM: Command failed with exit code 1: yarn build --out-dir build/docs (https://ntl.fyi/exit-code-1)
12:45:14 AM: ​
12:45:14 AM: Error location
12:45:14 AM: In Build command from Netlify app:
12:45:14 AM: yarn build --out-dir build/docs
12:45:14 AM: ​
12:45:14 AM: Resolved config
12:45:14 AM: build:
12:45:14 AM: base: /opt/build/repo
12:45:14 AM: command: yarn build --out-dir build/docs
12:45:14 AM: commandOrigin: ui
12:45:14 AM: environment:
12:45:14 AM: - REVIEW_ID
12:45:14 AM: publish: /opt/build/repo/build
12:45:14 AM: publishOrigin: ui
12:45:14 AM: redirects:
12:45:14 AM: - from: /*
status: 404
to: /docs/404.html
redirectsOrigin: config
12:45:14 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
12:45:14 AM: Failing build: Failed to build site
12:45:14 AM: Finished processing build request in 59.909s

Deploying

Skipped
There is no log for this section

Cleanup

Skipped
There is no log for this section

Post-processing

Skipped
There is no log for this section