Error 127 when deploying a Zola website

Hello,

the site name is: marvelous-kulfi-0cff94.netlify.app/

It is deploying from a Github repository and has been working fine until yesterday afternoon. It started failing in the late afternoon, worked twice in the evening, and consistently fails since this afternoon. There was no changes to the site’s configuration, only content.

Build log:

6:06:15 PM: build-image version: c0621868af5001023389eeaa9dbfbbaf313f67e2 (focal)
6:06:15 PM: buildbot version: c0621868af5001023389eeaa9dbfbbaf313f67e2
6:06:15 PM: Fetching cached dependencies
6:06:15 PM: Starting to download cache of 194.9MB
6:06:16 PM: Finished downloading cache in 1.18s
6:06:16 PM: Starting to extract cache
6:06:17 PM: Finished extracting cache in 779ms
6:06:17 PM: Finished fetching cache in 2.005s
6:06:17 PM: Starting to prepare the repo for build
6:06:17 PM: Preparing Git Reference refs/heads/main
6:06:20 PM: Parsing package.json dependencies
6:06:21 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus '' in the Netlify UI
6:06:21 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh' versus '' in the Netlify UI
6:06:21 PM: Starting to install dependencies
6:06:21 PM: Installing Zola 0.15.2
6:06:23 PM: Started restoring cached go cache
6:06:23 PM: Finished restoring cached go cache
6:06:23 PM: Installing Go version 1.19.5 (requested 1.19.5)
6:06:33 PM: go version go1.19.5 linux/amd64
6:06:34 PM: Using PHP version 8.0
6:06:34 PM: v16.19.1 is already installed.
6:06:35 PM: Now using node v16.19.1 (npm v8.19.3)
6:06:35 PM: Enabling Node.js Corepack
6:06:35 PM: Started restoring cached build plugins
6:06:35 PM: Finished restoring cached build plugins
6:06:35 PM: Python version set to 3.8
6:06:35 PM: Attempting Ruby version 2.7.2, read from environment
6:06:36 PM: Using Ruby version 2.7.2
6:06:37 PM: Install dependencies script success
6:06:37 PM: Starting build script
6:06:37 PM: Using stage install dependencies
6:06:37 PM: Detected 0 framework(s)
6:06:37 PM: Section completed: initializing
6:06:38 PM: ​
6:06:38 PM:   Netlify Build                                                 
6:06:38 PM: ────────────────────────────────────────────────────────────────
6:06:38 PM: ​
6:06:38 PM: ❯ Version
6:06:38 PM:   @netlify/build 29.5.8
6:06:38 PM: ​
6:06:38 PM: ❯ Flags
6:06:38 PM:   baseRelDir: true
6:06:38 PM:   buildId: 63f4f9f6483df50008daffcb
6:06:38 PM:   deployId: 63f4f9f6483df50008daffcd
6:06:38 PM: ​
6:06:38 PM: ❯ Current directory
6:06:38 PM:   /opt/build/repo
6:06:38 PM: ​
6:06:38 PM: ❯ Config file
6:06:38 PM:   /opt/build/repo/netlify.toml
6:06:38 PM: ​
6:06:38 PM: ❯ Context
6:06:38 PM:   production
6:06:38 PM: ​
6:06:38 PM:   1. build.command from netlify.toml                            
6:06:38 PM: ────────────────────────────────────────────────────────────────
6:06:38 PM: ​
6:06:38 PM: $ rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh
6:06:38 PM: mv: cannot move '__obsidian' to a subdirectory of itself, '__obsidian/__obsidian'
6:06:38 PM: Cloning into '__site'...
6:06:40 PM: Collecting python-slugify
6:06:40 PM:   Downloading python_slugify-8.0.0-py2.py3-none-any.whl (9.5 kB)
6:06:40 PM: Collecting text-unidecode>=1.3
6:06:40 PM:   Downloading text_unidecode-1.3-py2.py3-none-any.whl (78 kB)
6:06:40 PM: Installing collected packages: text-unidecode, python-slugify
6:06:40 PM: Successfully installed python-slugify-8.0.0 text-unidecode-1.3
...
6:06:41 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
...
6:06:41 PM: __site/run.sh: line 24: zola: command not found
6:06:41 PM: ​
6:06:41 PM:   "build.command" failed                                        
6:06:41 PM: ────────────────────────────────────────────────────────────────
6:06:41 PM: ​
6:06:41 PM:   Error message
6:06:41 PM:   Command failed with exit code 127: rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh (https://ntl.fyi/exit-code-127)
6:06:41 PM: ​
6:06:41 PM:   Error location
6:06:41 PM:   In build.command from netlify.toml:
6:06:41 PM:   rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh
6:06:41 PM: ​
6:06:41 PM:   Resolved config
6:06:41 PM:   build:
6:06:41 PM:     command: rm -rf __obsidian __site && mkdir __obsidian && mv * __obsidian || true && git clone https://github.com/ppeetteerrs/obsidian-zola.git __site && __site/run.sh
6:06:41 PM:     commandOrigin: config
6:06:41 PM:     environment:
6:06:41 PM:       - LANDING_BUTTON
6:06:41 PM:       - LANDING_DESCRIPTION
6:06:41 PM:       - LANDING_PAGE
6:06:41 PM:       - LANDING_TITLE
6:06:41 PM:       - PYTHON_VERSION
6:06:41 PM:       - REPO_URL
6:06:41 PM:       - SITE_TITLE
6:06:41 PM:       - SITE_TITLE_TAB
6:06:41 PM:       - SITE_URL
6:06:41 PM:       - TIMEZONE
6:06:41 PM:       - ZOLA_VERSION
6:06:41 PM:       - SORT_BY
6:06:41 PM:       - GANALYTICS
6:06:41 PM:       - SLUGIFY
6:06:41 PM:       - HOME_GRAPH
6:06:41 PM:       - PAGE_GRAPH
6:06:41 PM:       - SIDEBAR_COLLAPSED
6:06:41 PM:       - FOOTER
6:06:41 PM:       - ROOT_SECTION_NAME
6:06:41 PM:     publish: /opt/build/repo/public
6:06:41 PM:     publishOrigin: config
6:06:41 PM: Caching artifacts
6:06:41 PM: Started saving build plugins
6:06:41 PM: Finished saving build plugins
6:06:41 PM: Started saving pip cache
6:06:41 PM: Finished saving pip cache
6:06:41 PM: Started saving emacs cask dependencies
6:06:41 PM: Finished saving emacs cask dependencies
6:06:41 PM: Started saving maven dependencies
6:06:41 PM: Finished saving maven dependencies
6:06:41 PM: Started saving boot dependencies
6:06:41 PM: Finished saving boot dependencies
6:06:41 PM: Started saving rust rustup cache
6:06:41 PM: Finished saving rust rustup cache
6:06:41 PM: Started saving go dependencies
6:06:41 PM: Finished saving go dependencies
6:06:41 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:06:41 PM: Failing build: Failed to build site
6:06:41 PM: Finished processing build request in 26.533s

I have tried making a totally empty site (except the README page and the netlify.toml page) and the error is the same, so it’s not content related.

I suppose that the issue is that Zola is not properly installed (β€œsite/run.sh: line 24: zola: command not found”), but I don’t know how I can check that.

There’s also this message: β€œmv: cannot move β€˜__obsidian’ to a subdirectory of itself, β€˜__obsidian/__obsidian’”, but it was already appearing on the successful builds, so I don’t think it’s really relevant.

I have two sites using the same publishing system (the other is astounding-cocada-404faa) and they both have the issue (and briefly worked again yesterday evening).

Thanks for your help!

Put your pasted logs in a code block (three backticks, newline, logs, newline, three backticks) then it reads better and you have no limits on links.

1 Like

I think netlify has some serious issues today. Will go to bed now and hope for another day :slight_smile:

Experiencing the same issue: zola: command not found

Definitely seems like an issue on netlify’s end.

Hi all @Levino @orditeck are you both still having this issue.

All good now! Look like the rollback of yesterday’s changes did the trick! Thanks for checking in @SamO :smiley:

1 Like

Issues have been resolved.