Zola build fails (not found)

I chose Zola in the build configurations, left it all default (so zola build for the command and /public for the output folder), and I’ve set the environment variable ZOLA_VERSION to 0.17.2

After cloning my repo from GitHub, the logs say this:

11:44:42.877	Success: Finished cloning repository files
11:44:43.657	Detected the following tools from environment: 
11:44:43.658	Executing user command: zola build
11:44:43.668	/bin/sh: 1: zola: not found
11:44:43.669	Failed: Error while executing user command. Exited with error code: 127
11:44:43.676	Failed: build command exited with code: 1
11:44:45.318	Failed: error occurred while running build command

Not sure what other info could be useful, but on my local computer running zola build and zola serve does work.

1 Like

I also got the same error here, with exactly the same setup.

Looks like Zola is no longer supported, see https://developers.cloudflare.com/pages/platform/build-configuration/.

As for the workaround, I have an idea:

  1. Unset framework in the settings.
  2. Use Github Actions to build Zola website. See https://github.com/iamdejan/portfolio-website/blob/main/.github/workflows/build.yaml for example.
1 Like

You need to switch the build system to version one:

Open the project Settings tab and navigate to the Builds & deployments sub-tab. Scroll down to Build system version and click Configure Production build system. Change the build system from version 2 to version 1 so that Zola will be installed.

source: https://github.com/getzola/zola/pull/2253

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.