Site no longer builds with Eleventy

My builds started failing yesterday.
Looks like even standard utils are not found in path.

4:48:20 PM: Build ready to start
4:48:22 PM: build-image version: e4d2dbe4cfec46db257e869258461ded89b75c9b
4:48:22 PM: build-image tag: v3.7.3
4:48:22 PM: buildbot version: 2cb5794cb93042dadefe5dbdc6b35edc34c20454
4:48:22 PM: Building without cache
4:48:22 PM: Starting to prepare the repo for build
4:48:22 PM: No cached dependencies found. Cloning fresh repo
4:48:22 PM: git clone https://github.com/…
4:48:24 PM: Preparing Git Reference refs/heads/main
4:48:25 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: β€˜netlify/functions’ versus β€˜β€™ in the Netlify UI
4:48:25 PM: Starting build script
4:48:25 PM: /opt/build-bin/build: line 3: dirname: command not found
4:48:26 PM: /opt/build-bin/build: line 23: cat: command not found
4:48:26 PM: /opt/build-bin/build: line 25: /run-build-functions.sh: No such file or directory
4:48:26 PM: /opt/build-bin/build: line 36: date: command not found
4:48:26 PM: Installing dependencies
4:48:26 PM: /opt/build-bin/build: line 48: install_dependencies: command not found
4:48:26 PM: /opt/build-bin/build: line 36: date: command not found
4:48:26 PM: Installing missing commands
4:48:26 PM: /opt/build-bin/build: line 52: install_missing_commands: command not found
4:48:26 PM: Verify run directory
4:48:26 PM: /opt/build-bin/build: line 55: set_go_import_path: command not found
4:48:26 PM: /opt/build-bin/build: line 36: date: command not found
4:48:26 PM: /opt/build-bin/build: line 58: which: command not found
4:48:27 PM: ​
4:48:27 PM: ────────────────────────────────────────────────────────────────
4:48:27 PM: Netlify Build
4:48:27 PM: ────────────────────────────────────────────────────────────────
4:48:27 PM: ​
4:48:27 PM: ❯ Version
4:48:27 PM: @netlify/build 11.5.1
4:48:27 PM: ​
4:48:27 PM: ❯ Flags
4:48:27 PM: deployId: 608d38fc9328aa3367e95bf1
4:48:27 PM: ​
4:48:27 PM: ❯ Current directory
4:48:27 PM: /opt/build/repo
4:48:27 PM: ​
4:48:27 PM: ❯ Config file
4:48:27 PM: /opt/build/repo/netlify.toml
4:48:27 PM: ​
4:48:27 PM: ❯ Context
4:48:27 PM: production
4:48:28 PM: ​
4:48:28 PM: ────────────────────────────────────────────────────────────────
4:48:28 PM: 1. build.command from netlify.toml
4:48:28 PM: ────────────────────────────────────────────────────────────────
4:48:28 PM: ​
4:48:28 PM: $ eleventy
4:48:28 PM: ​
4:48:28 PM: ────────────────────────────────────────────────────────────────
4:48:28 PM: β€œbuild.command” failed
4:48:28 PM: ────────────────────────────────────────────────────────────────

Could you share your repo?

From the looks of it, it seems like something is going wrong with the commands. I can’t tell for sure until I see the repo.

Thanks for the offer.

I found our error, in an attempt to provide some variables to a function, we had overridden the PATH variable, which is shared with the build scripts themselves.

1 Like

Thank you for coming back with this update, @sumitbando. This will be a helpful next step for any future Forums members who encounter something similar :netliconfetti: