[hugo] exit code 255 & exit code 2

Domain:
https://lustrous-clafoutis-0b6e4b.netlify.app

Log:

3:45:11 PM: build-image version: a2d22d22e4555d1ef0a972ed14a0a4b366ad20c4 (focal)
3:45:11 PM: build-image tag: v4.16.3
3:45:11 PM: buildbot version: 71fa8712e52292c0874121592d848207a905baab
3:45:11 PM: Fetching cached dependencies
3:45:11 PM: Failed to fetch cache, continuing with build
3:45:11 PM: Starting to prepare the repo for build
3:45:12 PM: No cached dependencies found. Cloning fresh repo
3:45:12 PM: git clone --filter=blob:none https://github.com/pO7HncXR/my810gg
3:45:12 PM: Preparing Git Reference refs/heads/master
3:45:13 PM: Parsing package.json dependencies
3:45:14 PM: Starting build script
3:45:14 PM: Installing dependencies
3:45:14 PM: Python version set to 2.7
3:45:14 PM: v16.19.0 is already installed.
3:45:14 PM: Now using node v16.19.0 (npm v8.19.3)
3:45:14 PM: Enabling Node.js Corepack
3:45:14 PM: Started restoring cached build plugins
3:45:14 PM: Finished restoring cached build plugins
3:45:14 PM: Attempting Ruby version 2.7.2, read from environment
3:45:15 PM: Using Ruby version 2.7.2
3:45:15 PM: Using PHP version 8.0
3:45:15 PM: Installing Hugo 0.87.0
3:45:16 PM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio
3:45:16 PM: Started restoring cached go cache
3:45:16 PM: Finished restoring cached go cache
3:45:16 PM: go version go1.19.4 linux/amd64
3:45:16 PM: Detected 1 framework(s)
3:45:16 PM: "cecil" at version "unknown"
3:45:16 PM: Installing missing commands
3:45:16 PM: Verify run directory
3:45:16 PM: Section completed: initializing
3:45:18 PM: ​
3:45:18 PM:   Netlify Build                                                 
3:45:18 PM: ────────────────────────────────────────────────────────────────
3:45:18 PM: ​
3:45:18 PM: ❯ Version
3:45:18 PM:   @netlify/build 29.4.2
3:45:18 PM: ​
3:45:18 PM: ❯ Flags
3:45:18 PM:   baseRelDir: true
3:45:18 PM:   buildId: 63beaf54ee05f400080deffb
3:45:18 PM:   deployId: 63beaf54ee05f400080deffd
3:45:18 PM: ​
3:45:18 PM: ❯ Current directory
3:45:18 PM:   /opt/build/repo
3:45:18 PM: ​
3:45:18 PM: ❯ Config file
3:45:18 PM:   No config file was defined: using default values.
3:45:18 PM: ​
3:45:18 PM: ❯ Context
3:45:18 PM:   production
3:45:18 PM: ​
3:45:18 PM:   1. Build command from Netlify app                             
3:45:18 PM: ────────────────────────────────────────────────────────────────
3:45:18 PM: ​
3:45:18 PM: $ hugo
3:45:18 PM: Error: module "PaperMod" not found; either add it as a Hugo Module or store it in "/opt/build/repo/themes".: module does not exist
3:45:18 PM: Total in 0 ms
3:45:18 PM: ​
3:45:18 PM:   "build.command" failed                                        
3:45:18 PM: ────────────────────────────────────────────────────────────────
3:45:18 PM: ​
3:45:18 PM:   Error message
3:45:18 PM:   Command failed with exit code 255: hugo (https://ntl.fyi/exit-code-255)
3:45:18 PM: ​
3:45:18 PM:   Error location
3:45:18 PM:   In Build command from Netlify app:
3:45:18 PM:   hugo
3:45:18 PM: ​
3:45:18 PM:   Resolved config
3:45:18 PM:   build:
3:45:18 PM:     command: hugo
3:45:18 PM:     commandOrigin: ui
3:45:18 PM:     environment:
3:45:18 PM:       - HUGO_VERSION
3:45:20 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
3:45:18 PM:     publish: /opt/build/repo/public
3:45:18 PM:     publishOrigin: ui
3:45:18 PM: Caching artifacts
3:45:18 PM: Started saving build plugins
3:45:18 PM: Finished saving build plugins
3:45:18 PM: Started saving pip cache
3:45:18 PM: Finished saving pip cache
3:45:18 PM: Started saving emacs cask dependencies
3:45:18 PM: Finished saving emacs cask dependencies
3:45:18 PM: Started saving maven dependencies
3:45:18 PM: Finished saving maven dependencies
3:45:18 PM: Started saving boot dependencies
3:45:18 PM: Finished saving boot dependencies
3:45:18 PM: Started saving rust rustup cache
3:45:18 PM: Finished saving rust rustup cache
3:45:18 PM: Started saving go dependencies
3:45:18 PM: Finished saving go dependencies
3:45:20 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:45:20 PM: Failing build: Failed to build site
3:45:20 PM: Finished processing build request in 8.538617381s

Hi @pO7HncXR :wave:t6:,

Welcome to the forums!

Can you give this response a read and see if adding the extended version to the build run helps? More info here: Failed to deploy website: Command failed with exit code 255 - #2 by SamO