Error: error building site: logged 1 error(s)

9:15:06 AM: Netlify Build
9:15:06 AM: ────────────────────────────────────────────────────────────────
9:15:06 AM: ​
9:15:06 AM: ❯ Version
9:15:06 AM: @netlify/build 29.26.4
9:15:06 AM: ​
9:15:06 AM: ❯ Flags
9:15:06 AM: baseRelDir: true
9:15:06 AM: buildId: 65532c796f021333e24f1aad
9:15:06 AM: deployId: 65532c796f021333e24f1aaf
9:15:06 AM: ​
9:15:06 AM: ❯ Current directory
9:15:06 AM: /opt/build/repo
9:15:06 AM: ​
9:15:06 AM: ❯ Config file
9:15:06 AM: /opt/build/repo/netlify.toml
9:15:06 AM: ​
9:15:06 AM: ❯ Context
9:15:06 AM: production
9:15:06 AM: ​
9:15:06 AM: build.command from netlify.toml
9:15:06 AM: ────────────────────────────────────────────────────────────────
9:15:06 AM: ​
9:15:06 AM: $ hugo --gc --minify
9:15:06 AM: Start building sites …
9:15:06 AM: hugo v0.120.4-f11bca5fec2ebb3a02727fb2a5cfb08da96fd9df+extended linux/amd64 BuildDate=2023-11-08T11:18:07Z VendorInfo=gohugoio
9:15:07 AM: Failed during stage “building site”: Build script returned non-zero exit code: 2
9:15:07 AM: ERROR Could not find an author page at /authors/admin. Please check the value of author in your About widget and create an associated author page if one does not already exist. See Hugo Blox Docs
9:15:07 AM: Total in 543 ms
9:15:07 AM: Error: error building site: logged 1 error(s)
9:15:07 AM: ​
9:15:07 AM: “build.command” failed
9:15:07 AM: ────────────────────────────────────────────────────────────────
9:15:07 AM: ​
9:15:07 AM: Error message
9:15:07 AM: Command failed with exit code 1: hugo --gc --minify (Search results for '"non-zero exit code: 1"' - Netlify Support Forums)
9:15:07 AM: ​
9:15:07 AM: Error location
9:15:07 AM: In build.command from netlify.toml:
9:15:07 AM: hugo --gc --minify
9:15:07 AM: ​
9:15:07 AM: Resolved config
9:15:07 AM: build:
9:15:07 AM: command: hugo --gc --minify
9:15:07 AM: commandOrigin: config
9:15:07 AM: environment:
9:15:07 AM: - HUGO_VERSION
9:15:07 AM: - HUGO_ENV
9:15:07 AM: - HUGO_ENABLEGITINFO
9:15:07 AM: publish: /opt/build/repo/public
9:15:07 AM: publishOrigin: config
9:15:07 AM: headers:
9:15:07 AM: - for: /*
values:
Permissions-Policy: accelerometer=(), camera=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), usb=()
Referrer-Policy: strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubDomains
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
- for: /index.webmanifest
values:
Content-Type: application/manifest+json
- for: /index.xml
values:
Content-Type: application/rss+xml
9:15:07 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:15:07 AM: Failing build: Failed to build site
9:15:08 AM: Finished processing build request in 13.348s

Hi @BOUGHANMIChaima,

Thanks for reaching out and welcome to Netlify’s Support Forums!

Looks like the error is here:

ERROR Could not find an author page at /authors/admin. Please check the value of author in your About widget and create an associated author page if one does not already exist. See https://wowchemy.com/docs/page-builder/#about

Does that page exist within your repo?

I did find a post here that references that error that may help you narrow down the cause.

1 Like

Hello, thank you for your reply.
But the link you mentioned doesn’t work. And I’ve checked in the authors folder, there is a well-filled admin file /authors/admin .
I don’t understand the problem.
Help please !!!

@BOUGHANMIChaima, that’s as far as we can advise here with the provided details. This is clearly a problem with your repo and/or the theme. You should either reach out to:

  1. Hugo’s forums
  2. The theme’s developers