Home
Support Forums

HUGO_Version is not accepted. Error deploying Website

I am currently encountering a weird problem. I tried to deploy my first website on netlify and I always get the same ERROR Message from the log:

10:23:19 PM: ERROR 2020/11/02 21:23:19 HUGO-CODER theme does not support Hugo version 0.54.0. Minimum version required is 0.57

I already changed the netlify.toml to my current hugo version:

[build]
  publish = "public"
  command = "hugo"

[context.production.environment]
  HUGO_VERSION = "0.74.2"
  HUGO_ENV = "production"
  HUGO_ENABLEGITINFO = "true"

[context.deploy-preview]
  command = "hugo"

[context.deploy-preview.environment]
  HUGO_VERSION = "0.74.2"

`
however nothing changed since. I tried restarting hugo, checked if I have the latest commit on github and tried to change the version to 0.57. to test if this would work. In any case I get the error, that the hugo version 0.54 is too old to be used for my selected theme. But my hugo version is 0.74.2 so I do not get why netlify thinks I am using an older hugo version than actually downloaded.

Can anybody help?

Here is the log: (Please ignore the Warnings - these are because of my language setting in my website, but should not hinder the build)

10:23:09 PM: Build ready to start
10:23:11 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
10:23:11 PM: build-image tag: v3.4.1
10:23:11 PM: buildbot version: 9c8ae11ff96d61099561d579a91d03dc24930de5
10:23:11 PM: Fetching cached dependencies
10:23:11 PM: Failed to fetch cache, continuing with build
10:23:11 PM: Starting to prepare the repo for build
10:23:12 PM: No cached dependencies found. Cloning fresh repo
10:23:12 PM: git clone https://github.com/CarFried/Website-Carlotta
10:23:13 PM: Preparing Git Reference refs/heads/master
10:23:14 PM: Starting build script
10:23:14 PM: Installing dependencies
10:23:14 PM: Python version set to 2.7
10:23:15 PM: v12.18.0 is already installed.
10:23:16 PM: Now using node v12.18.0 (npm v6.14.4)
10:23:16 PM: Started restoring cached build plugins
10:23:16 PM: Finished restoring cached build plugins
10:23:16 PM: Attempting ruby version 2.7.1, read from environment
10:23:17 PM: Using ruby version 2.7.1
10:23:18 PM: Using PHP version 5.6
10:23:18 PM: 5.2 is already installed.
10:23:18 PM: Using Swift version 5.2
10:23:18 PM: Started restoring cached go cache
10:23:18 PM: Finished restoring cached go cache
10:23:18 PM: go version go1.14.4 linux/amd64
10:23:18 PM: go version go1.14.4 linux/amd64
10:23:18 PM: Installing missing commands
10:23:18 PM: Verify run directory
10:23:19 PM: ​
10:23:19 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
10:23:19 PM: β”‚        Netlify Build        β”‚
10:23:19 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
10:23:19 PM: ​
10:23:19 PM: ❯ Version
10:23:19 PM:   @netlify/build 5.2.1
10:23:19 PM: ​
10:23:19 PM: ❯ Flags
10:23:19 PM:   deployId: 5fa078b50ffe472092da6385
10:23:19 PM:   mode: buildbot
10:23:19 PM: ​
10:23:19 PM: ❯ Current directory
10:23:19 PM:   /opt/build/repo
10:23:19 PM: ​
10:23:19 PM: ❯ Config file
10:23:19 PM:   No config file was defined: using default values.
10:23:19 PM: ​
10:23:19 PM: ❯ Context
10:23:19 PM:   production
10:23:19 PM: ​
10:23:19 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
10:23:19 PM: β”‚ 1. Build command from Netlify app β”‚
10:23:19 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
10:23:19 PM: ​
10:23:19 PM: $ hugo
****10:23:19 PM: ERROR 2020/11/02 21:23:19 HUGO-CODER theme does not support Hugo version** 0.54.0. Minimum version required is 0.57**
10:23:19 PM: Building sites … WARN 2020/11/02 21:23:19 Found no layout for "taxonomyTerm", language "en", output format "HTML": create a template below /layouts with one of these filenames: categories/category.terms.en.html.html, categories/terms.en.html.html, categories/list.en.html.html, categories/category.terms.html.html, categories/terms.html.html, categories/list.html.html, categories/category.terms.en.html, categories/terms.en.html, categories/list.en.html, categories/category.terms.html, categories/terms.html, categories/list.html, taxonomy/category.terms.en.html.html, taxonomy/terms.en.html.html, taxonomy/list.en.html.html, taxonomy/category.terms.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/category.terms.en.html, taxonomy/terms.en.html, taxonomy/list.en.html, taxonomy/category.terms.html, taxonomy/terms.html, taxonomy/list.html, category/category.terms.en.html.html, category/terms.en.html.html, category/list.en.html.html, category/category.terms.html.html, category/terms.html.html, category/list.html.html, category/category.terms.en.html, category/terms.en.html, category/list.en.html, category/category.terms.html, category/terms.html, category/list.html, _default/category.terms.en.html.html, _default/terms.en.html.html, _default/list.en.html.html, _default/category.terms.html.html, _default/terms.html.html, _default/list.html.html, _default/category.terms.en.html, _default/terms.en.html, _default/list.en.html, _default/category.terms.html, _default/terms.html, _default/list.html
10:23:19 PM: WARN 2020/11/02 21:23:19 Found no layout for "taxonomyTerm", language "en", output format "HTML": create a template below /layouts with one of these filenames: series/series.terms.en.html.html, series/terms.en.html.html, series/list.en.html.html, series/series.terms.html.html, series/terms.html.html, series/list.html.html, series/series.terms.en.html, series/terms.en.html, series/list.en.html, series/series.terms.html, series/terms.html, series/list.html, taxonomy/series.terms.en.html.html, taxonomy/terms.en.html.html, taxonomy/list.en.html.html, taxonomy/series.terms.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/series.terms.en.html, taxonomy/terms.en.html, taxonomy/list.en.html, taxonomy/series.terms.html, taxonomy/terms.html, taxonomy/list.html, _default/series.terms.en.html.html, _default/terms.en.html.html, _default/list.en.html.html, _default/series.terms.html.html, _default/terms.html.html, _default/list.html.html, _default/series.terms.en.html, _default/terms.en.html, _default/list.en.html, _default/series.terms.html, _default/terms.html, _default/list.html
10:23:19 PM: WARN 2020/11/02 21:23:19 Found no layout for "taxonomyTerm", language "en", output format "HTML": create a template below /layouts with one of these filenames: tags/tag.terms.en.html.html, tags/terms.en.html.html, tags/list.en.html.html, tags/tag.terms.html.html, tags/terms.html.html, tags/list.html.html, tags/tag.terms.en.html, tags/terms.en.html, tags/list.en.html, tags/tag.terms.html, tags/terms.html, tags/list.html, taxonomy/tag.terms.en.html.html, taxonomy/terms.en.html.html, taxonomy/list.en.html.html, taxonomy/tag.terms.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/tag.terms.en.html, taxonomy/terms.en.html, taxonomy/list.en.html, taxonomy/tag.terms.html, taxonomy/terms.html, taxonomy/list.html, tag/tag.terms.en.html.html, tag/terms.en.html.html, tag/list.en.html.html, tag/tag.terms.html.html, tag/terms.html.html, tag/list.html.html, tag/tag.terms.en.html, tag/terms.en.html, tag/list.en.html, tag/tag.terms.html, tag/terms.html, tag/list.html, _default/tag.terms.en.html.html, _default/terms.en.html.html, _default/list.en.html.html, _default/tag.terms.html.html, _default/terms.html.html, _default/list.html.html, _default/tag.terms.en.html, _default/terms.en.html, _default/list.en.html, _default/tag.terms.html, _default/terms.html, _default/list.html
10:23:19 PM: WARN 2020/11/02 21:23:19 Found no layout for "taxonomyTerm", language "de", output format "HTML": create a template below /layouts with one of these filenames: categories/category.terms.de.html.html, categories/terms.de.html.html, categories/list.de.html.html, categories/category.terms.html.html, categories/terms.html.html, categories/list.html.html, categories/category.terms.de.html, categories/terms.de.html, categories/list.de.html, categories/category.terms.html, categories/terms.html, categories/list.html, taxonomy/category.terms.de.html.html, taxonomy/terms.de.html.html, taxonomy/list.de.html.html, taxonomy/category.terms.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/category.terms.de.html, taxonomy/terms.de.html, taxonomy/list.de.html, taxonomy/category.terms.html, taxonomy/terms.html, taxonomy/list.html, category/category.terms.de.html.html, category/terms.de.html.html, category/list.de.html.html, category/category.terms.html.html, category/terms.html.html, category/list.html.html, category/category.terms.de.html, category/terms.de.html, category/list.de.html, category/category.terms.html, category/terms.html, category/list.html, _default/category.terms.de.html.html, _default/terms.de.html.html, _default/list.de.html.html, _default/category.terms.html.html, _default/terms.html.html, _default/list.html.html, _default/category.terms.de.html, _default/terms.de.html, _default/list.de.html, _default/category.terms.html, _default/terms.html, _default/list.html
10:23:19 PM: WARN 2020/11/02 21:23:19 Found no layout for "taxonomyTerm", language "de", output format "HTML": create a template below /layouts with one of these filenames: series/series.terms.de.html.html, series/terms.de.html.html, series/list.de.html.html, series/series.terms.html.html, series/terms.html.html, series/list.html.html, series/series.terms.de.html, series/terms.de.html, series/list.de.html, series/series.terms.html, series/terms.html, series/list.html, taxonomy/series.terms.de.html.html, taxonomy/terms.de.html.html, taxonomy/list.de.html.html, taxonomy/series.terms.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/series.terms.de.html, taxonomy/terms.de.html, taxonomy/list.de.html, taxonomy/series.terms.html, taxonomy/terms.html, taxonomy/list.html, _default/series.terms.de.html.html, _default/terms.de.html.html, _default/list.de.html.html, _default/series.terms.html.html, _default/terms.html.html, _default/list.html.html, _default/series.terms.de.html, _default/terms.de.html, _default/list.de.html, _default/series.terms.html, _default/terms.html, _default/list.html
10:23:19 PM: WARN 2020/11/02 21:23:19 Found no layout for "taxonomyTerm", language "de", output format "HTML": create a template below /layouts with one of these filenames: tags/tag.terms.de.html.html, tags/terms.de.html.html, tags/list.de.html.html, tags/tag.terms.html.html, tags/terms.html.html, tags/list.html.html, tags/tag.terms.de.html, tags/terms.de.html, tags/list.de.html, tags/tag.terms.html, tags/terms.html, tags/list.html, taxonomy/tag.terms.de.html.html, taxonomy/terms.de.html.html, taxonomy/list.de.html.html, taxonomy/tag.terms.html.html, taxonomy/terms.html.html, taxonomy/list.html.html, taxonomy/tag.terms.de.html, taxonomy/terms.de.html, taxonomy/list.de.html, taxonomy/tag.terms.html, taxonomy/terms.html, taxonomy/list.html, tag/tag.terms.de.html.html, tag/terms.de.html.html, tag/list.de.html.html, tag/tag.terms.html.html, tag/terms.html.html, tag/list.html.html, tag/tag.terms.de.html, tag/terms.de.html, tag/list.de.html, tag/tag.terms.html, tag/terms.html, tag/list.html, _default/tag.terms.de.html.html, _default/terms.de.html.html, _default/list.de.html.html, _default/tag.terms.html.html, _default/terms.html.html, _default/list.html.html, _default/tag.terms.de.html, _default/terms.de.html, _default/list.de.html, _default/tag.terms.html, _default/terms.html, _default/list.html
10:23:19 PM: Total in 80 ms
10:23:19 PM: Error: Error building site: logged 1 error(s)
10:23:19 PM: ​
10:23:19 PM: β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
10:23:19 PM: β”‚   "build.command" failed    β”‚
10:23:19 PM: β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
10:23:19 PM: ​
10:23:19 PM:   Error message
10:23:19 PM:   Command failed with exit code 255: hugo
10:23:19 PM: ​
10:23:19 PM:   Error location
10:23:19 PM:   In Build command from Netlify app:
10:23:19 PM:   hugo
10:23:19 PM: ​
10:23:19 PM:   Resolved config
10:23:19 PM:   build:
10:23:19 PM:     command: hugo
10:23:19 PM:     commandOrigin: ui
10:23:19 PM:     publish: /opt/build/repo/public
10:23:19 PM: Caching artifacts
10:23:19 PM: Started saving build plugins
10:23:19 PM: Finished saving build plugins
10:23:19 PM: Started saving pip cache
10:23:20 PM: Finished saving pip cache
10:23:20 PM: Started saving emacs cask dependencies
10:23:20 PM: Finished saving emacs cask dependencies
10:23:20 PM: Started saving maven dependencies
10:23:20 PM: Finished saving maven dependencies
10:23:20 PM: Started saving boot dependencies
10:23:20 PM: Finished saving boot dependencies
10:23:20 PM: Started saving go dependencies
10:23:20 PM: Finished saving go dependencies
10:23:22 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:23:22 PM: Failing build: Failed to build site
10:23:22 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
10:23:22 PM: Finished processing build request in 11.370760149s

Does adding context = "production" to your [build] in netlify.toml work? It should look like this:

[build]
	command = "hugo"
	context = "production"
	publish = "public"

Thank you for the reply, unfortunately it did not work. I still get the same error.

Well, that seemed like an easy catch, but apparently it’s not. Sadly, I’d need a repo to check this more, because that’s what I could figure out from your build log and the other stuff that you mentioned?

One thing though, in your build log are you getting anything similar to this, because I couldn’t see it in the one you posted:

2:38:22 PM: Using Swift version 5.2
2:38:22 PM: Installing Hugo 0.77.0
2:38:22 PM: Hugo Static Site Generator v0.77.0-EF290125/extended linux/amd64 BuildDate: 2020-10-30T10:21:36Z
2:38:22 PM: Started restoring cached go cache

If you’re not, it’s probably because Netlify isn’t downloading the Hugo version you mention (probably because of some incorrect config).

Hi hrishikesh,

indeed - there is nothing like this in the log file - therefore I assume you are right. If I take a look at the logs I am seeing this as well:
Config file
9:22:43 PM: No config file was defined: using default values.
9:22:43 PM:

could this be the issue? I am not sure why it says there is no config file defined because I have clearly a netlify.toml and config.toml - but I will see if I can get a hint there, so far this is not clear to me.

Thanks!

Carlotta

Well, just make sure there’s no typo or extra spaces in the name. I remember once wasting hours to debug a 404 on my website just to find out it was a typo in the filename.

Thank you again!
I rechecked my directories and the config files. It wasn’t a typo but still something annoying. The netlify.toml was not in the root directory but one beneath - it was hard to spot but once I changed it the deploy worked fine!

To anyone experiencing similar problems:Please double check if the netlify.toml is in your root directory of your website!

1 Like

thank you @CarFried and @hrishikesh!