# Netlify build error

**URL:** <https://discourse.gohugo.io/t/netlify-build-error/21657>\
**Category:** support\
**Created:** [November 6, 2019, 8:47pm UTC](https://discourse.gohugo.io/t/netlify-build-error/21657 "2019-11-06T20:47:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wasim](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/wasim/32/9024_2.png) [@wasim](https://discourse.gohugo.io/u/wasim)\
**Post date:** [November 6, 2019, 8:47pm UTC](https://discourse.gohugo.io/t/netlify-build-error/21657/1 "2019-11-06T20:47:04Z")

</div>

I am facing the same issue:

Repository: [https://github.com/wasim-ullah/brightin](https://github.com/wasim-ullah/brightin)  
Deployment: [https://suspicious-pare-9c023f.netlify.com/](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.

---

<div class="post-metadata">

**Author:** ![zwbetz](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/zwbetz/32/16088_2.png) [@zwbetz](https://discourse.gohugo.io/u/zwbetz)\
**Post date:** [November 7, 2019, 1:01am UTC](https://discourse.gohugo.io/t/netlify-build-error/21657/2 "2019-11-07T01:01:16Z")

</div>

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
```

---

<div class="post-metadata">

**Author:** ![wasim](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/wasim/32/9024_2.png) [@wasim](https://discourse.gohugo.io/u/wasim)\
**Post date:** [November 7, 2019, 12:19pm UTC](https://discourse.gohugo.io/t/netlify-build-error/21657/3 "2019-11-07T12:19:21Z")

</div>

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/](https://themes.gohugo.io/hugonews/)  
Repository: [https://github.com/wasim-ullah/brightin.me](https://github.com/wasim-ullah/brightin.me)  
Log: [https://app.netlify.com/sites/brightinme/deploys/5dc40aee5b0dc6000a37c6c0](https://app.netlify.com/sites/brightinme/deploys/5dc40aee5b0dc6000a37c6c0)

---

<div class="post-metadata">

**Author:** ![alexandros](https://avatars.discourse-cdn.com/v4/letter/a/ecc23a/32.png) [@alexandros](https://discourse.gohugo.io/u/alexandros)\
**Post date:** [November 7, 2019, 12:31pm UTC](https://discourse.gohugo.io/t/netlify-build-error/21657/4 "2019-11-07T12:31:03Z")

</div>

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

```auto
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`](https://github.com/gohugoio/hugoThemes/blob/master/netlify.toml) that is currently used for the deployment of the Hugo Themes repo.

---

<div class="post-metadata">

**Author:** ![wasim](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/wasim/32/9024_2.png) [@wasim](https://discourse.gohugo.io/u/wasim)\
**Post date:** [November 7, 2019, 12:37pm UTC](https://discourse.gohugo.io/t/netlify-build-error/21657/5 "2019-11-07T12:37:08Z")

</div>

It solved the issue. Thanks a bunch
