Generic Deployment error during Nuxt SSG build?

Hi all,

I can’t seem to track down what is going wrong with my Nuxt SSG deployment – it’s been deployed before and I’ve just been making minor changes to the site and now I’m getting what seems like a generic error response during build.

Website is: https://debut.nz/

Full deployment Build log is below:

2:04:40 PM: build-image version: 9bcf56cf2fb4be798d49694f07e4bfb2dece7f7f (focal)
2:04:40 PM: buildbot version: 9bcf56cf2fb4be798d49694f07e4bfb2dece7f7f
2:04:40 PM: Fetching cached dependencies
2:04:40 PM: Starting to download cache of 402.7MB
2:04:43 PM: Finished downloading cache in 2.365s
2:04:43 PM: Starting to extract cache
2:04:45 PM: Finished extracting cache in 2.129s
2:04:45 PM: Finished fetching cache in 4.557s
2:04:45 PM: Starting to prepare the repo for build
2:04:45 PM: Preparing Git Reference refs/heads/master
2:04:48 PM: Starting to install dependencies
2:04:48 PM: Started restoring cached mise cache
2:04:48 PM: Finished restoring cached mise cache
2:04:49 PM: mise python@3.8.20 installing
2:04:49 PM: mise python@3.8.20 downloading cpython-3.8.20+20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
2:04:49 PM: mise python@3.8.20 installing cpython-3.8.20+20241002-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
2:04:50 PM: mise python@3.8.20 python --version
2:04:50 PM: mise python@3.8.20 Python 3.8.20
2:04:50 PM: mise python@3.8.20 ✓ installed
2:04:50 PM: Python version set to 3.8
2:04:51 PM: Collecting pipenv
2:04:51 PM: Downloading pipenv-2024.4.0-py3-none-any.whl.metadata (19 kB)
2:04:51 PM: Collecting certifi (from pipenv)
2:04:51 PM: Downloading certifi-2024.8.30-py3-none-any.whl.metadata (2.2 kB)
2:04:51 PM: Collecting packaging>=22 (from pipenv)
2:04:51 PM: Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
2:04:51 PM: Requirement already satisfied: setuptools>=67 in /opt/buildhome/.local/share/mise/installs/python/3.8.20/lib/python3.8/site-packages (from pipenv) (70.3.0)
2:04:51 PM: Collecting virtualenv>=20.24.2 (from pipenv)
2:04:51 PM: Downloading virtualenv-20.28.0-py3-none-any.whl.metadata (4.4 kB)
2:04:51 PM: Collecting distlib<1,>=0.3.7 (from virtualenv>=20.24.2->pipenv)
2:04:51 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
2:04:51 PM: Collecting filelock<4,>=3.12.2 (from virtualenv>=20.24.2->pipenv)
2:04:51 PM: Downloading filelock-3.16.1-py3-none-any.whl.metadata (2.9 kB)
2:04:51 PM: Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.24.2->pipenv)
2:04:51 PM: Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
2:04:51 PM: Downloading pipenv-2024.4.0-py3-none-any.whl (3.0 MB)
2:04:51 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 39.8 MB/s eta 0:00:00
2:04:51 PM: Downloading packaging-24.2-py3-none-any.whl (65 kB)
2:04:51 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 65.5/65.5 kB 8.8 MB/s eta 0:00:00
2:04:51 PM: Downloading virtualenv-20.28.0-py3-none-any.whl (4.3 MB)
2:04:51 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 185.0 MB/s eta 0:00:00
2:04:51 PM: Downloading certifi-2024.8.30-py3-none-any.whl (167 kB)
2:04:51 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 167.3/167.3 kB 19.8 MB/s eta 0:00:00
2:04:51 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
2:04:51 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 469.0/469.0 kB 50.0 MB/s eta 0:00:00
2:04:51 PM: Downloading filelock-3.16.1-py3-none-any.whl (16 kB)
2:04:51 PM: Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
2:04:51 PM: Installing collected packages: distlib, platformdirs, packaging, filelock, certifi, virtualenv, pipenv
2:04:53 PM: Successfully installed certifi-2024.8.30 distlib-0.3.9 filelock-3.16.1 packaging-24.2 pipenv-2024.4.0 platformdirs-4.3.6 virtualenv-20.28.0
2:04:53 PM: [notice] A new release of pip is available: 24.1.2 → 24.3.1
2:04:53 PM: [notice] To update, run: pip install --upgrade pip
2:04:53 PM: Attempting Ruby version 2.7.2, read from environment
2:04:53 PM: Using Ruby version 2.7.2
2:04:54 PM: Started restoring cached go cache
2:04:54 PM: Finished restoring cached go cache
2:04:55 PM: go version go1.19.13 linux/amd64
2:04:56 PM: Using PHP version 8.0
2:04:57 PM: Started restoring cached Node.js version
2:04:58 PM: Finished restoring cached Node.js version
2:04:58 PM: Downloading and installing node v18.20.5…
2:04:58 PM: Downloading https://nodejs.org/dist/v18.20.5/node-v18.20.5-linux-x64.tar.xz
2:04:59 PM: Computing checksum with sha256sum
2:04:59 PM: Checksums matched!
2:05:01 PM: Enabling Node.js Corepack
2:05:01 PM: Started restoring cached build plugins
2:05:01 PM: Finished restoring cached build plugins
2:05:01 PM: Started restoring cached corepack dependencies
2:05:01 PM: Finished restoring cached corepack dependencies
2:05:01 PM: No npm workspaces detected
2:05:01 PM: Started restoring cached node modules
2:05:01 PM: Finished restoring cached node modules
2:05:01 PM: Installing npm packages using npm version 10.8.2
2:05:03 PM: npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
2:05:07 PM: > postinstall
2:05:07 PM: > nuxt prepare
2:05:08 PM: [info] Using 2024-04-03 as fallback compatibility date.
2:05:09 PM: [success] Types generated in .nuxt
2:05:09 PM: added 117 packages, removed 230 packages, changed 323 packages, and audited 833 packages in 8s
2:05:09 PM: 189 packages are looking for funding
2:05:09 PM: run npm fund for details
2:05:09 PM: found 0 vulnerabilities
2:05:09 PM: npm packages installed
2:05:10 PM: Successfully installed dependencies
2:05:10 PM: Starting build script
2:05:11 PM: Detected 1 framework(s)
2:05:11 PM: “nuxt” at version “3.14.159”
2:05:11 PM: Section completed: initializing
2:05:12 PM: ​
2:05:12 PM: Netlify Build
2:05:12 PM: ────────────────────────────────────────────────────────────────
2:05:12 PM: ​
2:05:12 PM: ❯ Version
2:05:12 PM: @netlify/build 29.56.1
2:05:12 PM: ​
2:05:12 PM: ❯ Flags
2:05:12 PM: accountId: 6288f26883724414207a7552
2:05:12 PM: baseRelDir: true
2:05:12 PM: buildId: 6746701ac5d7f80008336c4d
2:05:12 PM: deployId: 6746701ac5d7f80008336c4f
2:05:12 PM: ​
2:05:12 PM: ❯ Current directory
2:05:12 PM: /opt/build/repo
2:05:12 PM: ​
2:05:12 PM: ❯ Config file
2:05:12 PM: No config file was defined: using default values.
2:05:12 PM: ​
2:05:12 PM: ❯ Context
2:05:12 PM: production
2:05:12 PM: ​
2:05:12 PM: Build command from Netlify app
2:05:12 PM: ────────────────────────────────────────────────────────────────
2:05:12 PM: ​
2:05:12 PM: $ npm run generate
2:05:13 PM: > generate
2:05:13 PM: > nuxt generate
2:05:13 PM: [log] Nuxt 3.14.159 with Nitro 2.10.4
2:05:13 PM: [info] Using Nitro server preset: static
2:05:14 PM: [info] Using 2024-04-03 as fallback compatibility date.
2:05:16 PM: [info] Building client…
2:05:16 PM: [info] vite v5.4.11 building for production…
2:05:16 PM: [info] transforming…
2:05:19 PM: [info] ✓ 241 modules transformed.
2:05:19 PM: [info] rendering chunks…
2:05:19 PM: [info] computing gzip size…
2:05:19 PM: [info] .nuxt/dist/client/manifest.json 3.89 kB │ gzip: 0.71 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/index.Cu-iY9jv.css 0.28 kB │ gzip: 0.18 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/FooterCTA.BLO4vsIF.css 0.61 kB │ gzip: 0.31 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/slug.BuR1PA-t.css 1.03 kB │ gzip: 0.35 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/entry.Dx2s2cQB.css 1.27 kB │ gzip: 0.48 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/index.DcoeQiD2.css 1.53 kB │ gzip: 0.37 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/error-500.D6506J9O.css 1.88 kB │ gzip: 0.72 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/FeaturedWork.qK1BqKs7.css 3.26 kB │ gzip: 0.69 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/error-404.CoZKRZXM.css 3.56 kB │ gzip: 1.10 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/studio.DpP6c76F.css 7.66 kB │ gzip: 0.99 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/CZKT0roi.js 1.10 kB │ gzip: 0.60 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/dmsfReZ5.js 1.12 kB │ gzip: 0.67 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/CjOgpDBF.js 2.63 kB │ gzip: 0.96 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/CxpuWY5L.js 3.39 kB │ gzip: 1.52 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/Cer1wujW.js 3.57 kB │ gzip: 1.40 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/Dq6Wv_5Z.js 3.73 kB │ gzip: 1.68 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/D8oEZ_rc.js 4.56 kB │ gzip: 1.00 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/BCETC8EY.js 9.19 kB │ gzip: 3.82 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/DGaXiFb4.js 10.34 kB │ gzip: 3.53 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/BvOlrSir.js 10.95 kB │ gzip: 3.46 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/uSRYs7Rc.js 75.83 kB │ gzip: 23.33 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/DCaxnSeU.js 105.45 kB │ gzip: 28.53 kB
2:05:19 PM: [info] .nuxt/dist/client/_nuxt/CFF9onpo.js 290.95 kB │ gzip: 112.12 kB
2:05:19 PM: [info] ✓ built in 2.89s
2:05:19 PM: [success] Client built in 2929ms
2:05:19 PM: [info] Building server…
2:05:19 PM: [info] vite v5.4.11 building SSR bundle for production…
2:05:19 PM: [info] transforming…
2:05:20 PM: [info] ✓ 151 modules transformed.
2:05:20 PM: [info] rendering chunks…
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/app-styles.DSDOJwxs.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-styles.C1MKTApo.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-styles.CtrkWs7X.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/AppNav-styles.DwU9qKJI.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/AppFooter-styles.Bt7-DG2c.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/slug-styles.BsGrc_Sp.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/studio-styles.DRhv68sP.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-404-styles.DRLC0U6S.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles.DqmriZ_b.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FooterCTA-styles.DcAFy0bT.mjs 0.08 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FeaturedWork-styles.DYLhp1UN.mjs 0.09 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-styles.CetcWuVW.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-styles.TUs1VHwv.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/app-styles.BiNUKxCx.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/AppNav-styles.DGhvUtIP.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/AppFooter-styles.CrHCe5R-.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/studio-styles.BdcKiRyp.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/slug-styles.C3DRWLQV.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-404-styles.BcoFjqgl.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles.DPP87-Dp.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FooterCTA-styles.B1szBNiG.mjs 0.15 kB
2:05:20 PM: [info] .nuxt/dist/server/nuxt/FeaturedWork-styles.BVpHgp-.mjs 0.16 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles.C8zHq7zP.mjs 0.60 kB
2:05:20 PM: [info] .nuxt/dist/server/styles.mjs 3.02 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-4.mjs-BvTzNeAT.js 0.29 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-9.mjs-lP3wfbvG.js 0.31 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-7.mjs-BmqetvEj.js 0.36 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-styles-1.mjs-BQqZ3plw.js 0.48 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/nuxt/entry-styles-3.mjs-BRo5uxwX.js 0.48 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/nuxt/entry-styles-2.mjs-aOQ
-xq.js 0.73 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FooterCTA-styles-1.mjs-D6mU37RR.js 0.82 kB │ map: 0.12 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-6.mjs-Dm84ewaD.js 0.92 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-8.mjs-CQCID3_G.js 1.17 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/slug-styles-1.mjs-BtURqG5b.js 1.23 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-5.mjs-D2uSZGjj.js 1.61 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-styles-1.mjs-DWoXi8rf.js 1.73 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-500-styles-1.mjs-DiWYPNRc.js 2.10 kB │ map: 0.12 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-aure-9wh.js 2.61 kB │ map: 1.98 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/slug-VQiQwvDz.js 3.00 kB │ map: 3.26 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/entry-styles-1.mjs-B_QhrBKG.js 3.04 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FeaturedWork-styles-1.mjs-Bd9bVbJt.js 3.48 kB │ map: 0.12 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/projects-wbd_3vRk.js 3.73 kB │ map: 5.75 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-404-styles-1.mjs-D8Sw_W7I.js 3.80 kB │ map: 0.12 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-500-C2NsVisN.js 4.63 kB │ map: 5.35 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/error-404-DBTx3N15.js 5.48 kB │ map: 7.10 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/index-QTGd1BZq.js 6.19 kB │ map: 6.39 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/studio-styles-1.mjs-BXP-Ts2Z.js 7.86 kB │ map: 0.11 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/studio-BNfv5bi1.js 13.23 kB │ map: 27.94 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FeaturedWork-hhCKsGcw.js 13.52 kB │ map: 0.39 kB
2:05:20 PM: [info] .nuxt/dist/server/_nuxt/FooterCTA-DwCXTe6F.js 19.37 kB │ map: 35.51 kB
2:05:20 PM: [info] .nuxt/dist/server/server.mjs 363.74 kB │ map: 813.37 kB
2:05:21 PM: [info] ✓ built in 1.43s
2:05:21 PM: [success] Server built in 1437ms
2:05:21 PM: [info] [nitro] Initializing prerenderer
2:05:22 PM: [info] [nitro] Prerendering 4 routes
2:05:22 PM: [log] [nitro] ├─ /sitemap/style.xsl (6ms)
2:05:22 PM: [log] [nitro] ├─ /robots.txt (8ms)
2:05:22 PM: [log] [nitro] ├─ /200.html (30ms)
2:05:22 PM: [log] [nitro] ├─ /404.html (30ms)
2:05:24 PM: [log] [nitro] ├─ /sitemap.xml (6ms)
2:05:24 PM: [info] [nitro] Prerendered 5 routes in 3.52 seconds
2:05:24 PM: [nitro] Nitro now uses isr option to configure ISR behavior on Netlify. Backwards-compatible support for static and swr support with Builder Functions will be removed in the future versions. Set future.nativeSWR: true nitro config disable this warning.
2:05:24 PM: [success] [nitro] Generated public dist
2:05:24 PM: [error] ENOENT: no such file or directory, open ‘/opt/build/repo/.netlify/functions-internal/server/server.json’
2:05:24 PM: [error] ENOENT: no such file or directory, open ‘/opt/build/repo/.netlify/functions-internal/server/server.json’
2:05:24 PM: ​
2:05:24 PM: “build.command” failed
2:05:24 PM: ────────────────────────────────────────────────────────────────
2:05:24 PM: ​
2:05:24 PM: Error message
2:05:24 PM: Command failed with exit code 1: npm run generate
2:05:24 PM: ​
2:05:24 PM: Error location
2:05:24 PM: In Build command from Netlify app:
2:05:24 PM: npm run generate
2:05:24 PM: ​
2:05:24 PM: Resolved config
2:05:24 PM: build:
2:05:24 PM: command: npm run generate
2:05:24 PM: commandOrigin: ui
2:05:24 PM: publish: /opt/build/repo/dist
2:05:24 PM: publishOrigin: ui
2:05:25 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:05:25 PM: Failing build: Failed to build site
2:05:25 PM: Finished processing build request in 44.796s
2:05:25 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2

Hi, after checking your most recent deploy : https://app.netlify.com/sites/debut-23/deploys
it looks like your site is deploying successfully? If that’s not the case please reach back out!