Please, I need some help; I keep getting two errors, one is [exit-code-2], and the second is [exit-code-255]

Please, I need some help; I keep getting two errors, one is [exit-code-2], and the second is [exit-code-255].

I tried running my website with config.toml, and it didn’t work, but once I switched to the config.yaml, it started working but not deploying.

  • Netlify site name: https://thee-a-team.netlify.app
  • my GitHub: https://github.com/sussmanbu/ma4615-fa22-final-project-the_a_team

3:38:23 PM: build-image version: 524714d1a66d1a967316f5c39465e22c77fdd56c (focal)
3:38:23 PM: build-image tag: v4.16.0
3:38:23 PM: buildbot version: 2956156cff73cc91029b26e56f43b4bf895eefff
3:38:23 PM: Fetching cached dependencies
3:38:23 PM: Starting to download cache of 266.6MB
3:38:26 PM: Finished downloading cache in 2.789838683s
3:38:26 PM: Starting to extract cache
3:38:27 PM: Finished extracting cache in 1.299843988s
3:38:27 PM: Finished fetching cache in 4.129945234s
3:38:27 PM: Starting to prepare the repo for build
3:38:27 PM: Preparing Git Reference refs/heads/master
3:38:33 PM: Parsing package.json dependencies
3:38:33 PM: Section completed: initializing
3:38:33 PM: Starting build script
3:38:33 PM: Installing dependencies
3:38:33 PM: Python version set to 2.7
3:38:34 PM: Started restoring cached node version
3:38:35 PM: Finished restoring cached node version
3:38:35 PM: v16.19.0 is already installed.
3:38:35 PM: Now using node v16.19.0 (npm v8.19.3)
3:38:35 PM: Enabling node corepack
3:38:35 PM: Started restoring cached build plugins
3:38:35 PM: Finished restoring cached build plugins
3:38:35 PM: Attempting ruby version 2.7.2, read from environment
3:38:36 PM: Using ruby version 2.7.2
3:38:36 PM: Using PHP version 8.0
3:38:36 PM: Installing Hugo 0.90.1
3:38:36 PM: hugo v0.90.1-48907889+extended linux/amd64 BuildDate=2021-12-10T10:56:41Z VendorInfo=gohugoio
3:38:36 PM: Started restoring cached go cache
3:38:36 PM: Finished restoring cached go cache
3:38:36 PM: Installing Go version 1.17 (requested 1.17)
3:38:41 PM: unset GOOS;
3:38:41 PM: unset GOARCH;
3:38:41 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
3:38:41 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
3:38:41 PM: go version >&2;
3:38:41 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
3:38:41 PM: go version go1.17 linux/amd64
3:38:41 PM: Detected 1 framework(s)
3:38:41 PM: “hugo” at version “unknown”
3:38:41 PM: Installing missing commands
3:38:41 PM: Verify run directory
3:38:42 PM: ​
3:38:42 PM: ────────────────────────────────────────────────────────────────
3:38:42 PM: Netlify Build
3:38:42 PM: ────────────────────────────────────────────────────────────────
3:38:42 PM: ​
3:38:42 PM: ❯ Version
3:38:42 PM: @netlify/build 29.1.1
3:38:42 PM: ​
3:38:42 PM: ❯ Flags
3:38:42 PM: baseRelDir: true
3:38:42 PM: buildId: 639b85a656cd400008254dbf
3:38:42 PM: deployId: 639b85a656cd400008254dc1
3:38:42 PM: ​
3:38:42 PM: ❯ Current directory
3:38:42 PM: /opt/build/repo
3:38:42 PM: ​
3:38:42 PM: ❯ Config file
3:38:42 PM: /opt/build/repo/netlify.toml
3:38:42 PM: ​
3:38:42 PM: ❯ Context
3:38:42 PM: production
3:38:43 PM: Creating deploy upload records
3:38:42 PM: ​
3:38:42 PM: ────────────────────────────────────────────────────────────────
3:38:42 PM: 1. build.command from netlify.toml
3:38:42 PM: ────────────────────────────────────────────────────────────────
3:38:42 PM: ​
3:38:43 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)
3:38:42 PM: $ hugo
3:38:42 PM: Start building sites …
3:38:42 PM: hugo v0.90.1-48907889+extended linux/amd64 BuildDate=2021-12-10T10:56:41Z VendorInfo=gohugoio
3:38:43 PM: Error: Error building site: TOCSS: failed to transform “ananke/css/main.css” (text/css): resource “css/ananke/css/main.css_af7eae7717e76be05924f27bac629e80” not found in file cache
3:38:43 PM: Total in 104 ms
3:38:43 PM: ​
3:38:43 PM: ────────────────────────────────────────────────────────────────
3:38:43 PM: “build.command” failed
3:38:43 PM: ────────────────────────────────────────────────────────────────
3:38:43 PM: ​
3:38:43 PM: Error message
3:38:43 PM: Command failed with exit code 255: hugo (Search results for '"non-zero exit code: 255"' - Netlify Support Forums)
3:38:43 PM: ​
3:38:43 PM: Error location
3:38:43 PM: In build.command from netlify.toml:
3:38:43 PM: hugo
3:38:43 PM: ​
3:38:43 PM: Resolved config
3:38:43 PM: build:
3:38:43 PM: command: hugo
3:38:43 PM: commandOrigin: config
3:38:43 PM: environment:
3:38:43 PM: - NETLIFY_GRAPH_TOKEN
3:38:43 PM: - ONEGRAPH_AUTHLIFY_TOKEN
3:38:43 PM: - HUGO_VERSION
3:38:43 PM: - HUGO_ENV
3:38:43 PM: publish: /opt/build/repo/public
3:38:43 PM: publishOrigin: config
3:38:43 PM: Caching artifacts
3:38:43 PM: Started saving build plugins
3:38:43 PM: Finished saving build plugins
3:38:43 PM: Started saving pip cache
3:38:43 PM: Finished saving pip cache
3:38:43 PM: Started saving emacs cask dependencies
3:38:43 PM: Finished saving emacs cask dependencies
3:38:43 PM: Started saving maven dependencies
3:38:43 PM: Finished saving maven dependencies
3:38:43 PM: Started saving boot dependencies
3:38:43 PM: Finished saving boot dependencies
3:38:43 PM: Started saving rust rustup cache
3:38:43 PM: Finished saving rust rustup cache
3:38:43 PM: Started saving go dependencies
3:38:43 PM: Finished saving go dependencies
3:38:43 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:38:43 PM: Failing build: Failed to build site
3:38:43 PM: Finished processing build request in 20.684075575s

It’s looking for something in your cache folder and that file doesn’t exist. Any specific reason why you’re relying on cache instead of building the file from scratch?