Build failure caused by Homebrew package fuse

The Astro build fails because of some Homebrew package which cannot be found, it has nothing to do with my code. I asked the chatbot, but he/she/it didn’t recognize the error.

Build log:

11:43:39 PM: build-image version: 006dca901dab83234b4881f914ac1a189ff41daa (focal)
11:43:39 PM: buildbot version: 91afcc08587ca1ca63cf1aa8edb323949ceee060
11:43:40 PM: Fetching cached dependencies
11:43:40 PM: Starting to download cache of 142.9MB
11:43:41 PM: Finished downloading cache in 1.355s
11:43:41 PM: Starting to extract cache
11:43:42 PM: Finished extracting cache in 1.199s
11:43:42 PM: Finished fetching cache in 2.6s
11:43:42 PM: Starting to prepare the repo for build
11:43:43 PM: Preparing Git Reference refs/heads/main
11:43:44 PM: Starting to install dependencies
11:43:45 PM: Python version set to 3.8
11:43:45 PM: Attempting Ruby version 2.7.2, read from environment
11:43:45 PM: Using Ruby version 2.7.2
11:43:46 PM: Started restoring cached go cache
11:43:46 PM: Finished restoring cached go cache
11:43:47 PM: go version go1.19.13 linux/amd64
11:43:48 PM: Using PHP version 8.0
11:43:49 PM: Started restoring cached Node.js version
11:43:50 PM: Finished restoring cached Node.js version
11:43:50 PM: v18.20.4 is already installed.
11:43:50 PM: Now using node v18.20.4 (npm v10.7.0)
11:43:50 PM: Enabling Node.js Corepack
11:43:50 PM: Started restoring cached build plugins
11:43:50 PM: Finished restoring cached build plugins
11:43:50 PM: Started restoring cached corepack dependencies
11:43:50 PM: Finished restoring cached corepack dependencies
11:43:51 PM: No npm workspaces detected
11:43:51 PM: Started restoring cached node modules
11:43:51 PM: Finished restoring cached node modules
11:43:51 PM: Installing npm packages using npm version 10.7.0
11:43:52 PM: added 1 package, removed 5 packages, changed 26 packages, and audited 503 packages in 1s
11:43:52 PM: 168 packages are looking for funding
11:43:52 PM: run npm fund for details
11:43:52 PM: found 0 vulnerabilities
11:43:52 PM: npm packages installed
11:43:53 PM: Successfully installed dependencies
11:43:53 PM: Starting build script
11:43:54 PM: Detected 1 framework(s)
11:43:54 PM: β€œastro” at version β€œ4.12.0”
11:43:54 PM: Section completed: initializing
11:43:55 PM: ​
11:43:55 PM: Netlify Build
11:43:55 PM: ────────────────────────────────────────────────────────────────
11:43:55 PM: ​
11:43:55 PM: ❯ Version
11:43:55 PM: @netlify/build 29.51.3
11:43:55 PM: ​
11:43:55 PM: ❯ Flags
11:43:55 PM: baseRelDir: true
11:43:55 PM: buildId: 66998c8387960c0008762094
11:43:55 PM: deployId: 66998c8387960c0008762096
11:43:55 PM: ​
11:43:55 PM: ❯ Current directory
11:43:55 PM: /opt/build/repo
11:43:55 PM: ​
11:43:55 PM: ❯ Config file
11:43:55 PM: No config file was defined: using default values.
11:43:55 PM: ​
11:43:55 PM: ❯ Context
11:43:55 PM: production
11:43:55 PM: ​
11:43:55 PM: Build command from Netlify app
11:43:55 PM: ────────────────────────────────────────────────────────────────
11:43:55 PM: ​
11:43:55 PM: $ npm run build
11:43:55 PM: > miksi@0.0.1 build
11:43:55 PM: > astro check && astro build
11:43:56 PM: 21:43:56 [types] Generated 43ms
11:43:56 PM: 21:43:56 [check] Getting diagnostics for Astro files in /opt/build/repo…
11:43:58 PM: astro.config.mjs:3:1 - warning ts(6133): β€˜vercel’ is declared but its value is never read.
11:43:58 PM: 3 import vercel from β€œ@astrojs/vercel/serverless”;
11:43:58 PM: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
11:43:58 PM: Result (11 files):
11:43:58 PM: - 0 errors
11:43:58 PM: - 0 warnings
11:43:58 PM: - 1 hint
11:43:58 PM:
11:43:59 PM: 21:43:59 [WARN] [config] The feature β€œassets” is experimental and subject to change (used by @astrojs/netlify).
11:43:59 PM: 21:43:59 [WARN] [config] The feature β€œastro:env getSecret” is experimental and subject to change (used by @astrojs/netlify).
11:43:59 PM: 21:43:59 [types] Generated 40ms
11:43:59 PM: 21:43:59 [build] output: β€œserver”
11:43:59 PM: 21:43:59 [build] directory: /opt/build/repo/dist/
11:43:59 PM: 21:43:59 [build] adapter: @astrojs/netlify
11:43:59 PM: 21:43:59 [build] Collecting build info…
11:43:59 PM: 21:43:59 [build] βœ“ Completed in 71ms.
11:43:59 PM: 21:43:59 [build] Building server entrypoints…
11:44:00 PM: 21:44:00 [vite] βœ“ built in 589ms
11:44:00 PM: 21:44:00 [build] βœ“ Completed in 617ms.
11:44:00 PM: 21:44:00
11:44:00 PM: finalizing server assets
11:44:00 PM: 21:44:00 [build] Rearranging server assets…
11:44:00 PM: 21:44:00 [@astrojs/netlify] Emitted _redirects
11:44:00 PM: 21:44:00 [@astrojs/netlify] Bundling function …/…/…/build/entry.mjs
11:44:03 PM: 21:44:03 [build] Waiting for integration β€œ@astrojs/netlify”, hook β€œastro:build:done”…
11:44:04 PM: ENOENT: no such file or directory, realpath β€˜/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/os/mac/pkgconfig/fuse/fuse.pc’
11:44:04 PM: Stack trace:
11:44:04 PM:
11:44:04 PM: ​
11:44:04 PM: β€œbuild.command” failed
11:44:05 PM: Failed during stage β€˜building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
11:44:04 PM: ────────────────────────────────────────────────────────────────
11:44:04 PM: ​
11:44:04 PM: Error message
11:44:04 PM: Command failed with exit code 1: npm run build (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
11:44:04 PM: ​
11:44:04 PM: Error location
11:44:04 PM: In Build command from Netlify app:
11:44:04 PM: npm run build
11:44:04 PM: ​
11:44:04 PM: Resolved config
11:44:04 PM: build:
11:44:04 PM: command: npm run build
11:44:04 PM: commandOrigin: ui
11:44:04 PM: environment:
11:44:04 PM: - CALLBACK_URL
11:44:04 PM: - CLIENT_ID
11:44:04 PM: - CLIENT_SECRET
11:44:04 PM: publish: /opt/build/repo/dist
11:44:04 PM: publishOrigin: ui
11:44:05 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
11:44:05 PM: Failing build: Failed to build site
11:44:05 PM: Finished processing build request in 25.649s

Build settings:

1 Like

Are you using Vercel adapter by any chance or importing it somewhere? It’s strange to even see that mentioned in the logs.

This line mentions you’re using Netlify, so it’s even weird.

Any chance you can share your repo?

I’m running into the same issue after Upgrade Astro for TypeScript 5.5

Here’s that code that runs during the β€œastro:build:done” hook

It looks like it’s writing some kind of config file

Seems like I got it to deploy again with astro 4.11.5 and it’s respective packages.

Not an ideal solution but it works for now.