Zola initialised but not available in build stage

  • Site: nulltree.xyz
  • Deployment fails on build stage as it can’t find zola. Zola is initialised via the set environment variable ZOLA_VERSION (0.21.0) in the Dashboard though, verified by setting it to the (yet) invalid 0.22.0 , erroring in the initialisation step already. This was working as-is end of September.
  • npm run build:cssis a wrapper for npx @tailwindcsscli -i styles/tailwind.css -o public/style.css --minify
3:51:19 PM: build-image version: 8ebab867ddcee083308c896d1c35cd5e9bbcfbe5 (noble-new-builds)
3:51:19 PM: buildbot version: 6f5f9443f6ed0ae0b6f7d33a8fbb9b39d22366c0
3:51:19 PM: Building without cache
3:51:19 PM: Starting to prepare the repo for build
3:51:20 PM: No cached dependencies found. Cloning fresh repo
3:51:20 PM: git clone --filter=blob:none https://github.com/leonqadirie/nulltree
3:51:20 PM: Preparing Git Reference refs/heads/main
3:51:22 PM: Starting to install dependencies
3:51:22 PM: mise ~/.config/mise/config.toml tools: python@3.14.1
3:51:22 PM: mise ~/.config/mise/config.toml tools: ruby@3.4.7
3:51:22 PM: mise ~/.config/mise/config.toml tools: go@1.25.5
3:51:22 PM: Installing Zola 0.21.0
3:51:24 PM: v22.21.1 is already installed.
3:51:24 PM: Now using node v22.21.1 (npm v10.9.4)
3:51:24 PM: Enabling Node.js Corepack
3:51:24 PM: No npm workspaces detected
3:51:24 PM: Installing npm packages using npm version 10.9.4
3:51:25 PM: added 35 packages in 1s
3:51:25 PM: npm packages installed
3:51:26 PM: Successfully installed dependencies
3:51:26 PM: Starting build script
3:51:26 PM: Detected 2 framework(s)
3:51:26 PM: "hugo" at version "unknown"
3:51:26 PM: "zola" at version "unknown"
3:51:26 PM: Section completed: initializing
3:51:28 PM: ​
3:51:28 PM: Netlify Build                                                 
3:51:28 PM: ────────────────────────────────────────────────────────────────
3:51:28 PM: ​
3:51:28 PM: ❯ Version
3:51:28 PM:   @netlify/build 35.5.2
3:51:28 PM: ​
3:51:28 PM: ❯ Flags
3:51:28 PM:   accountId: [redacted]
3:51:28 PM:   baseRelDir: true
3:51:28 PM:   buildId: [redacted]
3:51:28 PM:   deployId: [redacted]
3:51:29 PM: ​
3:51:29 PM: ❯ Current directory
3:51:29 PM:   /opt/build/repo
3:51:29 PM: ​
3:51:29 PM: ❯ Config file
3:51:29 PM:   No config file was defined: using default values.
3:51:29 PM: ​
3:51:29 PM: ❯ Context
3:51:29 PM:   production
3:51:29 PM: ​
3:51:29 PM: Build command from Netlify app                                
3:51:29 PM: ────────────────────────────────────────────────────────────────
3:51:29 PM: ​
3:51:29 PM: $ npm run build
3:51:29 PM: > build
3:51:29 PM: > zola build && npm run build:css
3:51:29 PM: sh: 1: zola: not found
3:51:29 PM: ​
3:51:29 PM: "build.command" failed                                        
3:51:29 PM: ────────────────────────────────────────────────────────────────
3:51:29 PM: ​
3:51:29 PM:   Error message
3:51:29 PM:   Command failed with exit code 127: npm run build (https://ntl.fyi/exit-code-127)
3:51:29 PM: ​
3:51:29 PM:   Error location
3:51:29 PM:   In Build command from Netlify app:
3:51:29 PM:   npm run build
3:51:29 PM: ​
3:51:29 PM:   Resolved config
3:51:29 PM:   build:
3:51:29 PM:     command: npm run build
3:51:29 PM:     commandOrigin: ui
3:51:29 PM:     environment:
3:51:29 PM:       - ZOLA_VERSION
3:51:29 PM:     publish: /opt/build/repo/public
3:51:29 PM:     publishOrigin: ui
3:51:29 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
3:51:29 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:51:29 PM: Failing build: Failed to build site
3:51:29 PM: Finished processing build request in 10.075s
1 Like

I’ve submitted a PR as a potential fix for this. Will let you know the outcome.

1 Like

Any news on fixing this?

1 Like

It will be looked at after the holidays to ensure stability.

I just tested deploying my website, and now it worked.

Happy to hear that, not working for me, though :slight_smile:

Did you do a normal deploy or one without cache?

My deploy was without cache, and it worked.

1 Like

Without cache twice ~3h apart. Both failing unfortunately.
ZOLA_VERSION = 0.21.0

I can confirm this change has been rolled out. Could you share a link to the deploy?

Did work now, thank you very much!

The update probably hadn’t propagated yet to my region/server.