Hugo

Netlify build error

I am facing the same issue:

Repository: https://github.com/wasim-ullah/brightin
Deployment: https://suspicious-pare-9c023f.netlify.com/

Log:

12:43:45 AM: Build ready to start
12:43:50 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
12:43:50 AM: build-image tag: v3.3.2
12:43:50 AM: buildbot version: a2bab682ae0761baa4d123ebd00c57be933655dc
12:43:51 AM: Fetching cached dependencies
12:43:51 AM: Starting to download cache of 84.2MB
12:43:51 AM: Finished downloading cache in 573.419206ms
12:43:51 AM: Starting to extract cache
12:43:54 AM: Finished extracting cache in 3.082664527s
12:43:54 AM: Finished fetching cache in 3.719570662s
12:43:54 AM: Starting to prepare the repo for build
12:43:55 AM: Preparing Git Reference refs/heads/master
12:43:55 AM: Starting build script
12:43:55 AM: Installing dependencies
12:43:56 AM: Started restoring cached node version
12:43:58 AM: Finished restoring cached node version
12:43:59 AM: v10.17.0 is already installed.
12:44:00 AM: Now using node v10.17.0 (npm v6.11.3)
12:44:01 AM: Attempting ruby version 2.6.2, read from environment
12:44:02 AM: Using ruby version 2.6.2
12:44:03 AM: Using PHP version 5.6
12:44:03 AM: Started restoring cached go cache
12:44:03 AM: Finished restoring cached go cache
12:44:03 AM: unset GOOS;
12:44:03 AM: unset GOARCH;
12:44:03 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
12:44:03 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:44:03 AM: go version >&2;
12:44:03 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
12:44:03 AM: go version go1.12 linux/amd64
12:44:03 AM: Installing missing commands
12:44:03 AM: Verify run directory
12:44:03 AM: Executing user command: hugo
12:44:03 AM: Error: Unable to find theme Directory: /opt/build/repo/themes/hugonews
12:44:03 AM: Skipping functions preparation step: no functions directory set
12:44:03 AM: Caching artifacts
12:44:03 AM: Started saving pip cache
12:44:03 AM: Finished saving pip cache
12:44:03 AM: Started saving emacs cask dependencies
12:44:03 AM: Finished saving emacs cask dependencies
12:44:03 AM: Started saving maven dependencies
12:44:03 AM: Finished saving maven dependencies
12:44:03 AM: Started saving boot dependencies
12:44:03 AM: Finished saving boot dependencies
12:44:03 AM: Started saving go dependencies
12:44:03 AM: Finished saving go dependencies
12:44:03 AM: Error running command: Build script returned non-zero exit code: 255
12:44:03 AM: failed during stage 'building site': Build script returned non-zero exit code: 255
12:44:03 AM: Failing build: Failed to build site
12:44:03 AM: Finished processing build request in 12.504986878s

Please share your recommendations.

I moved your post to a new topic. This error message from your logs is the issue:

12:44:03 AM: Error: Unable to find theme Directory: /opt/build/repo/themes/hugonews

Hi,

I still have the same issue, I have applied the suggested improvement but it is not working on my end:

Theme: https://themes.gohugo.io/hugonews/
Repository: https://github.com/wasim-ullah/brightin.me
Log: https://app.netlify.com/sites/brightinme/deploys/5dc40aee5b0dc6000a37c6c0

The explanation for the deploy error is present in the Netlify deploy log:

2:15:59 PM: ERROR 2019/11/07 12:15:59 HUGONEWS theme does not support Hugo version 0.54.0. Minimum version required is 0.57.0

You need to use a higher Hugo version in your build, either by specifying it in Netlify’s settings for your project or by using a netlify.tom. Here is a sample netify.toml that is currently used for the deployment of the Hugo Themes repo.

1 Like

It solved the issue. Thanks a bunch