PLEASE help us help you by writing a good post!
- we need to know your netlify site name. Example:
gifted-antelope-58b104.netlify.app
- DNS issues? Tell us the custom domain, tell us the error message! We can’t help if we don’t know your domain.
- Build problems? Link or paste the FULL build log & build settings screenshot
The better the post - the faster the answer.
I am having issues deploying my site bookmarkey
. My app is failing to deploy on the deploy-preview environment (on an MR).
My deploy log looks this:
5:51:09 PM: build-image version: 2eaac833881accc211f920f6c5a9f4121fdb15ab (focal)
5:51:09 PM: buildbot version: 2eaac833881accc211f920f6c5a9f4121fdb15ab
5:51:09 PM: Fetching cached dependencies
5:51:09 PM: Starting to download cache of 168.1MB
5:51:11 PM: Finished downloading cache in 1.504s
5:51:11 PM: Starting to extract cache
5:51:13 PM: Finished extracting cache in 1.896s
5:51:13 PM: Finished fetching cache in 3.454s
5:51:13 PM: Starting to prepare the repo for build
5:51:13 PM: Preparing Git Reference merge-requests/139/head
5:51:15 PM: Parsing package.json dependencies
5:51:16 PM: Starting build script
5:51:16 PM: Installing dependencies
5:51:16 PM: Python version set to 2.7
5:51:16 PM: Started restoring cached Node.js version
5:51:17 PM: Finished restoring cached Node.js version
5:51:17 PM: Attempting Node.js version 'v19.1.0' from .nvmrc
5:51:17 PM: v19.1.0 is already installed.
5:51:17 PM: Now using node v19.1.0 (npm v8.19.3)
5:51:17 PM: Enabling Node.js Corepack
5:51:17 PM: Started restoring cached build plugins
5:51:17 PM: Finished restoring cached build plugins
5:51:18 PM: Attempting Ruby version 2.7.2, read from environment
5:51:18 PM: Using Ruby version 2.7.2
5:51:18 PM: Using PHP version 8.0
5:51:18 PM: Started restoring cached corepack dependencies
5:51:18 PM: Finished restoring cached corepack dependencies
5:51:19 PM: No pnpm workspaces detected
5:51:19 PM: Started restoring cached node modules
5:51:19 PM: Finished restoring cached node modules
5:51:19 PM: Installing npm packages using pnpm version 7.13.4
5:51:19 PM: Lockfile is up to date, resolution step is skipped
5:51:19 PM: Progress: resolved 1, reused 0, downloaded 0, added 0
5:51:19 PM: Packages: +273 -212
5:51:19 PM: +++++++++++++++++++++++++++++++++++++++++++++-----------------------------------
5:51:20 PM: Progress: resolved 273, reused 0, downloaded 47, added 47
5:51:21 PM: Progress: resolved 273, reused 0, downloaded 139, added 136
5:51:22 PM: Progress: resolved 273, reused 0, downloaded 229, added 223
5:51:23 PM: Progress: resolved 273, reused 0, downloaded 268, added 268
5:51:24 PM: Progress: resolved 273, reused 0, downloaded 273, added 273, done
5:51:24 PM: .../node_modules/core-js-pure postinstall$ node -e "try{require('./postinstall')}catch(e){}"
5:51:24 PM: .../core-js@3.29.1/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}"
5:51:24 PM: .../node_modules/@go-task/cli postinstall$ go-npm install
5:51:24 PM: .../node_modules/svelte-preprocess postinstall$ echo "[svelte-preprocess] Don't forget to install the preprocessors packages that will be used: sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc..."
5:51:24 PM: .../node_modules/svelte-preprocess postinstall: [svelte-preprocess] Don't forget to install the preprocessors packages that will be used: sass, stylus, less, postcss & postcss-load-config, coffeescript, pug, etc...
.../node_modules/svelte-preprocess postinstall: Done
5:51:24 PM: .../node_modules/core-js-pure postinstall: Done
5:51:24 PM: .../core-js@3.29.1/node_modules/core-js postinstall: Done
5:51:25 PM: .../node_modules/@go-task/cli postinstall: Downloading from URL: https://github.com/go-task/task/releases/download/v3.21.0/task_linux_amd64.tar.gz
5:51:25 PM: .../node_modules/@go-task/cli postinstall: Placed binary on /opt/build/repo/node_modules/.bin/task
5:51:25 PM: .../node_modules/@go-task/cli postinstall: Done
5:51:25 PM: .../esbuild@0.17.12/node_modules/esbuild postinstall$ node install.js
5:51:25 PM: .../esbuild@0.17.12/node_modules/esbuild postinstall: Done
5:51:25 PM: .../node_modules/@sveltejs/kit postinstall$ node postinstall.js
5:51:26 PM: .../node_modules/@sveltejs/kit postinstall: Done
5:51:26 PM: devDependencies:
5:51:26 PM: - @go-task/cli 3.20.0
5:51:26 PM: + @go-task/cli 3.21.0
5:51:26 PM: - @svelte-put/avatar 2.0.0
5:51:26 PM: + @svelte-put/avatar 2.0.1
5:51:26 PM: - @sveltejs/kit 1.11.0
5:51:26 PM: + @sveltejs/kit 1.12.0
5:51:26 PM: - @testing-library/dom 9.0.0
5:51:26 PM: + @testing-library/dom 9.0.1
5:51:26 PM: - @types/node 18.11.18
5:51:26 PM: + @types/node 18.15.3
5:51:26 PM: - @typescript-eslint/eslint-plugin 5.50.0
5:51:26 PM: + @typescript-eslint/eslint-plugin 5.55.0
5:51:26 PM: - @typescript-eslint/parser 5.50.0
5:51:26 PM: + @typescript-eslint/parser 5.55.0
5:51:26 PM: - @vite-pwa/sveltekit 0.1.2
5:51:26 PM: + @vite-pwa/sveltekit 0.1.3
5:51:26 PM: - @vitest/coverage-c8 0.29.2
5:51:26 PM: + @vitest/coverage-c8 0.29.3
5:51:26 PM: - autoprefixer 10.4.13
5:51:26 PM: + autoprefixer 10.4.14
5:51:26 PM: - eslint 8.33.0
5:51:26 PM: + eslint 8.36.0
5:51:26 PM: - eslint-config-prettier 8.6.0
5:51:26 PM: + eslint-config-prettier 8.7.0
5:51:26 PM: - eslint-plugin-svelte 2.15.0
5:51:26 PM: + eslint-plugin-svelte 2.22.0
5:51:26 PM: - flowbite 1.6.3
5:51:26 PM: + flowbite 1.6.4
5:51:26 PM: - flowbite-svelte 0.30.6
5:51:26 PM: + flowbite-svelte 0.30.7
5:51:26 PM: - ioredis 5.3.0
5:51:26 PM: + ioredis 5.3.1
5:51:26 PM: - lint-staged 13.1.0
5:51:26 PM: + lint-staged 13.2.0
5:51:26 PM: - pocketbase 0.12.0
5:51:26 PM: + pocketbase 0.12.1
5:51:26 PM: - prettier 2.8.3
5:51:26 PM: + prettier 2.8.4
5:51:26 PM: - prettier-plugin-tailwindcss 0.2.2
5:51:26 PM: + prettier-plugin-tailwindcss 0.2.5
5:51:26 PM: - svelte 3.55.1
5:51:26 PM: + svelte 3.57.0
5:51:26 PM: - svelte-contextmenu 1.0.2
5:51:26 PM: + svelte-contextmenu 0.0.1
5:51:26 PM: - svelte-preprocess 5.0.1
5:51:26 PM: + svelte-preprocess 5.0.3
5:51:26 PM: - tailwindcss 3.2.4
5:51:26 PM: + tailwindcss 3.2.7
5:51:26 PM: - vite 4.1.1
5:51:26 PM: + vite 4.2.0
5:51:26 PM: - vite-plugin-istanbul 4.0.0
5:51:26 PM: + vite-plugin-istanbul 4.0.1
5:51:26 PM: - vite-plugin-pwa 0.14.1
5:51:26 PM: + vite-plugin-pwa 0.14.4
5:51:26 PM: - vitest 0.29.2
5:51:26 PM: + vitest 0.29.3
5:51:26 PM: - vitest-fetch-mock 0.2.1
5:51:26 PM: + vitest-fetch-mock 0.2.2
5:51:26 PM: - zod 3.20.2
5:51:26 PM: + zod 3.21.4
5:51:26 PM: - zod-form-data 2.0.0
5:51:26 PM: + zod-form-data 2.0.1
5:51:26 PM: > bookmarkey-gui@0.0.1 prepare /opt/build/repo
5:51:26 PM: > node -e "if (process.env.NODE_ENV !== 'production'){process.exit(1)} " || husky install
5:51:26 PM: husky - Git hooks installed
5:51:26 PM: Done in 7.3s
5:51:26 PM: npm packages installed using pnpm
5:51:27 PM: Started restoring cached go cache
5:51:27 PM: Finished restoring cached go cache
5:51:27 PM: go version go1.19.7 linux/amd64
5:51:27 PM: Detected 1 framework(s)
5:51:27 PM: "svelte-kit" at version "1.12.0"
5:51:27 PM: Section completed: initializing
5:51:28 PM:
5:51:28 PM: Netlify Build
5:51:28 PM: ────────────────────────────────────────────────────────────────
5:51:28 PM:
5:51:28 PM: ❯ Version
5:51:28 PM: @netlify/build 29.6.8
5:51:28 PM:
5:51:28 PM: ❯ Flags
5:51:28 PM: baseRelDir: true
5:51:28 PM: buildId: 6415fa0a29587500087fba28
5:51:28 PM: deployId: 6415fa0a29587500087fba2a
5:51:28 PM:
5:51:28 PM: ❯ Current directory
5:51:28 PM: /opt/build/repo
5:51:28 PM:
5:51:28 PM: ❯ Config file
5:51:28 PM: /opt/build/repo/netlify.toml
5:51:28 PM:
5:51:28 PM: ❯ Context
5:51:28 PM: deploy-preview
5:51:29 PM:
5:51:29 PM: ❯ Loading plugins
5:51:29 PM: - @sentry/netlify-build-plugin@1.1.1 from netlify.toml
5:51:30 PM:
5:51:30 PM: 1. build.command from netlify.toml
5:51:30 PM: ────────────────────────────────────────────────────────────────
5:51:30 PM:
5:51:30 PM: $ pnpm run build
5:51:30 PM: > bookmarkey-gui@0.0.1 build /opt/build/repo
5:51:30 PM: > vite build
5:51:31 PM: node:internal/errors:484
5:51:31 PM: ErrorCaptureStackTrace(err);
5:51:31 PM: ^
5:51:31 PM: Error: spawn /opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli ENOENT
5:51:31 PM: at ChildProcess._handle.onexit (node:internal/child_process:285:19)
5:51:31 PM: at onErrorNT (node:internal/child_process:483:16)
5:51:31 PM: at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
5:51:31 PM: errno: -2,
5:51:31 PM: code: 'ENOENT',
5:51:31 PM: syscall: 'spawn /opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli',
5:51:31 PM: path: '/opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli',
5:51:31 PM: spawnargs: [ 'releases', 'propose-version' ],
5:51:31 PM: cmd: '/opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli releases propose-version'
5:51:31 PM: }
5:51:31 PM: Node.js v19.1.0
5:51:31 PM: ELIFECYCLE Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
5:51:31 PM:
5:51:31 PM: "build.command" failed
5:51:31 PM: ────────────────────────────────────────────────────────────────
5:51:32 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
5:51:31 PM:
5:51:31 PM: Error message
5:51:31 PM: Command failed with exit code 1: pnpm run build (https://ntl.fyi/exit-code-1)
5:51:31 PM:
5:51:31 PM: Error location
5:51:31 PM: In build.command from netlify.toml:
5:51:31 PM: pnpm run build
5:51:31 PM:
5:51:31 PM: Resolved config
5:51:31 PM: build:
5:51:31 PM: command: pnpm run build
5:51:31 PM: commandOrigin: config
5:51:31 PM: environment:
5:51:31 PM: - AWS_LAMBDA_JS_RUNTIME
5:51:31 PM: - NETLIFY_GRAPH_TOKEN
5:51:31 PM: - ONEGRAPH_AUTHLIFY_TOKEN
5:51:31 PM: - REDIS_URI
5:51:31 PM: - REVIEW_ID
5:51:31 PM: - SENTRY_AUTH_TOKEN
5:51:31 PM: - SENTRY_ORG
5:51:31 PM: - SENTRY_PROJECT
5:51:31 PM: - SENTRY_REPOSITORY
5:51:31 PM: - VITE_POCKET_BASE_URL
5:51:31 PM: - VITE_SENTRY_DSN
5:51:31 PM: publish: /opt/build/repo/build
5:51:31 PM: publishOrigin: config
5:51:31 PM: headers:
5:51:31 PM: - for: /manifest.webmanifest
5:51:31 PM: values:
5:51:31 PM: Content-Type: application/manifest+json
5:51:31 PM: - for: /assets/*
values:
cache-control: max-age=31536000, immutable
headersOrigin: config
plugins:
- inputs: {}
origin: config
package: '@sentry/netlify-build-plugin'
Caching artifacts
5:51:31 PM: Started saving node modules
5:51:31 PM: Finished saving node modules
5:51:31 PM: Started saving build plugins
5:51:31 PM: Finished saving build plugins
5:51:31 PM: Started saving corepack cache
5:51:31 PM: Finished saving corepack cache
5:51:31 PM: Started saving pip cache
5:51:31 PM: Finished saving pip cache
5:51:31 PM: Started saving emacs cask dependencies
5:51:31 PM: Finished saving emacs cask dependencies
5:51:31 PM: Started saving maven dependencies
5:51:31 PM: Finished saving maven dependencies
5:51:31 PM: Started saving boot dependencies
5:51:31 PM: Finished saving boot dependencies
5:51:31 PM: Started saving rust rustup cache
5:51:31 PM: Finished saving rust rustup cache
5:51:31 PM: Started saving go dependencies
5:51:31 PM: Finished saving go dependencies
5:51:31 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:51:32 PM: Failing build: Failed to build site
5:51:32 PM: Finished processing build request in 22.637s
Specifically looking at this part
5:51:30 PM:
5:51:30 PM: $ pnpm run build
5:51:30 PM: > bookmarkey-gui@0.0.1 build /opt/build/repo
5:51:30 PM: > vite build
5:51:31 PM: node:internal/errors:484
5:51:31 PM: ErrorCaptureStackTrace(err);
5:51:31 PM: ^
5:51:31 PM: Error: spawn /opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli ENOENT
5:51:31 PM: at ChildProcess._handle.onexit (node:internal/child_process:285:19)
5:51:31 PM: at onErrorNT (node:internal/child_process:483:16)
5:51:31 PM: at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
5:51:31 PM: errno: -2,
5:51:31 PM: code: 'ENOENT',
5:51:31 PM: syscall: 'spawn /opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli',
5:51:31 PM: path: '/opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli',
5:51:31 PM: spawnargs: [ 'releases', 'propose-version' ],
5:51:31 PM: cmd: '/opt/build/repo/node_modules/.pnpm/@sentry+cli@2.15.2/node_modules/@sentry/cli/sentry-cli releases propose-version'
5:51:31 PM: }
5:51:31 PM: Node.js v19.1.0
5:51:31 PM: ELIFECYCLE Command failed with exit code 1. (https://ntl.fyi/exit-code-1)
5:51:31 PM:
5:51:31 PM: "build.command" failed
I am not sure what exactly is causing this issue. As I am able to build the app locally. Even doing a clean build (i.e. git clone, clean pnpm install etc). Any ideas what could be causing it.
Failing MR: New Context Menu Library (!139) · Merge requests · Bookmarkey / gui · GitLab