Kindly request your support.
I’m trying to render a Blog (R blogdown + Hugo: Theme (Anatole) + GitHub Repo).
When I started deploying the Blog from GitHub (Repo: GitHub - arehor/Blog - HUGO_VERSION = 0.85.0)
the following Error Message appears: “Error: Unable to locate config file or config directory”
I’m attaching the deploy log:
8:00:10 PM: Starting build script
8:00:10 PM: Installing dependencies
8:00:10 PM: Python version set to 2.7
8:00:06 PM: Build ready to start
8:00:08 PM: build-image version: 6c366b9e0cc38bb3f3a40b7951f398b33cac286d
8:00:08 PM: build-image tag: v3.8.1
8:00:08 PM: buildbot version: d6f7e5fc881fb3682c2d42eb968d84e9b04dfca0
8:00:08 PM: Fetching cached dependencies
8:00:08 PM: Failed to fetch cache, continuing with build
8:00:08 PM: Starting to prepare the repo for build
8:00:09 PM: No cached dependencies found. Cloning fresh repo
8:00:09 PM: git clone GitHub - arehor/Blog
8:00:09 PM: Preparing Git Reference refs/heads/main
8:00:10 PM: Parsing package.json dependencies
8:00:11 PM: v12.18.0 is already installed.
8:00:12 PM: Now using node v12.18.0 (npm v6.14.4)
8:00:12 PM: Started restoring cached build plugins
8:00:12 PM: Finished restoring cached build plugins
8:00:12 PM: Attempting ruby version 2.7.2, read from environment
8:00:13 PM: Using ruby version 2.7.2
8:00:14 PM: Using PHP version 5.6
8:00:14 PM: Installing Hugo 0.85.0
8:00:15 PM: hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
8:00:15 PM: Started restoring cached go cache
8:00:15 PM: Finished restoring cached go cache
8:00:15 PM: go version go1.14.4 linux/amd64
8:00:15 PM: go version go1.14.4 linux/amd64
8:00:15 PM: Installing missing commands
8:00:15 PM: Verify run directory
8:00:15 PM:
8:00:15 PM: ────────────────────────────────────────────────────────────────
8:00:15 PM: Netlify Build
8:00:15 PM: ────────────────────────────────────────────────────────────────
8:00:15 PM:
8:00:15 PM: ❯ Version
8:00:15 PM: @netlify/build 15.11.5
8:00:15 PM:
8:00:15 PM: ❯ Flags
8:00:15 PM: deployId: 60f4b276bc7fd15d1c301879
8:00:15 PM:
8:00:15 PM: ❯ Current directory
8:00:15 PM: /opt/build/repo
8:00:15 PM:
8:00:15 PM: ❯ Config file
8:00:15 PM: No config file was defined: using default values.
8:00:15 PM:
8:00:15 PM: ❯ Context
8:00:15 PM: production
8:00:15 PM:
8:00:15 PM: ────────────────────────────────────────────────────────────────
8:00:15 PM: 1. Build command from Netlify app
8:00:15 PM: ────────────────────────────────────────────────────────────────
8:00:15 PM:
8:00:15 PM: $ hugo
8:00:15 PM: Error: Unable to locate config file or config directory. Perhaps you need to create a new site.
8:00:15 PM: Run hugo help new
for details.
8:00:15 PM: Total in 0 ms
8:00:15 PM:
8:00:15 PM: ────────────────────────────────────────────────────────────────
8:00:15 PM: “build.command” failed
8:00:15 PM: ────────────────────────────────────────────────────────────────
8:00:15 PM:
8:00:15 PM: Error message
8:00:15 PM: Command failed with exit code 255: hugo
8:00:15 PM:
8:00:15 PM: Error location
8:00:15 PM: In Build command from Netlify app:
8:00:15 PM: hugo
8:00:15 PM:
8:00:15 PM: Resolved config
8:00:15 PM: build:
8:00:15 PM: command: hugo
8:00:15 PM: commandOrigin: ui
8:00:15 PM: environment:
8:00:15 PM: - HUGO_VERSION
8:00:15 PM: publish: /opt/build/repo/public
8:00:15 PM: publishOrigin: ui
8:00:16 PM: Caching artifacts
8:00:16 PM: Started saving build plugins
8:00:16 PM: Finished saving build plugins
8:00:16 PM: Started saving pip cache
8:00:16 PM: Finished saving pip cache
8:00:16 PM: Started saving emacs cask dependencies
8:00:16 PM: Finished saving emacs cask dependencies
8:00:16 PM: Started saving maven dependencies
8:00:16 PM: Finished saving maven dependencies
8:00:16 PM: Started saving boot dependencies
8:00:16 PM: Finished saving boot dependencies
8:00:16 PM: Started saving rust rustup cache
8:00:16 PM: Finished saving rust rustup cache
8:00:16 PM: Started saving go dependencies
8:00:16 PM: Finished saving go dependencies
8:00:18 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:00:18 PM: Creating deploy upload records
8:00:18 PM: Failing build: Failed to build site
8:00:18 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2
8:00:18 PM: Finished processing build request in 10.494336973s
Pls, your support on this.
Thanks in advance,
Alex