Hi, my site is simple-site-from-codemon72
It is built with Hugo Theme Ananke and should get deployed from GitHub.
When I try to deploy I get this error message:
3:16:00 PM: ┌───────────────────────────────────┐
3:16:00 PM: │ 1. Build command from Netlify app │
3:16:00 PM: └───────────────────────────────────┘
3:16:00 PM:
3:16:00 PM: $ hugo
3:16:00 PM: ERROR 2020/11/03 14:16:00 ANANKE theme does not support Hugo version 0.54.0. Minimum version required is 0.55.0
3:16:00 PM: Building sites … Total in 37 ms
3:16:00 PM: Error: Error building site: logged 1 error(s)
3:16:00 PM:
3:16:00 PM: ┌─────────────────────────────┐
3:16:00 PM: │ "build.command" failed │
(full version below)
Looks straightforward, but when I check my hugo version I should be alright: Hugo Static Site Generator v0.73.0
Do I need to choose a newer Hugo version somewhere on Netlify?
Any help appreciated, I can’t make any sense out of this error message.
Full build log:
4:37:32 PM: Build ready to start
4:37:34 PM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
4:37:34 PM: build-image tag: v3.4.1
4:37:34 PM: buildbot version: 9c8ae11ff96d61099561d579a91d03dc24930de5
4:37:34 PM: Building without cache
4:37:34 PM: Starting to prepare the repo for build
4:37:34 PM: No cached dependencies found. Cloning fresh repo
4:37:34 PM: git clone https://github.com/Codemon72/simple-site
4:37:35 PM: Preparing Git Reference refs/heads/master
4:37:37 PM: Starting build script
4:37:37 PM: Installing dependencies
4:37:37 PM: Python version set to 2.7
4:37:39 PM: v12.18.0 is already installed.
4:37:39 PM: Now using node v12.18.0 (npm v6.14.4)
4:37:39 PM: Started restoring cached build plugins
4:37:39 PM: Finished restoring cached build plugins
4:37:39 PM: Attempting ruby version 2.7.1, read from environment
4:37:41 PM: Using ruby version 2.7.1
4:37:41 PM: Using PHP version 5.6
4:37:41 PM: 5.2 is already installed.
4:37:41 PM: Using Swift version 5.2
4:37:41 PM: Started restoring cached go cache
4:37:41 PM: Finished restoring cached go cache
4:37:41 PM: go version go1.14.4 linux/amd64
4:37:41 PM: go version go1.14.4 linux/amd64
4:37:41 PM: Installing missing commands
4:37:41 PM: Verify run directory
4:37:42 PM:
4:37:42 PM: ┌─────────────────────────────┐
4:37:42 PM: │ Netlify Build │
4:37:42 PM: └─────────────────────────────┘
4:37:42 PM:
4:37:42 PM: ❯ Version
4:37:42 PM: @netlify/build 5.2.1
4:37:42 PM:
4:37:42 PM: ❯ Flags
4:37:42 PM: deployId: 5fa1793c21a8bbf171df03c1
4:37:42 PM: mode: buildbot
4:37:42 PM:
4:37:42 PM: ❯ Current directory
4:37:42 PM: /opt/build/repo
4:37:42 PM:
4:37:42 PM: ❯ Config file
4:37:42 PM: No config file was defined: using default values.
4:37:42 PM:
4:37:42 PM: ❯ Context
4:37:42 PM: production
4:37:42 PM:
4:37:42 PM: ┌───────────────────────────────────┐
4:37:42 PM: │ 1. Build command from Netlify app │
4:37:42 PM: └───────────────────────────────────┘
4:37:42 PM:
4:37:42 PM: $ hugo
4:37:42 PM: ERROR 2020/11/03 15:37:42 ANANKE theme does not support Hugo version 0.54.0. Minimum version required is 0.55.0
4:37:42 PM: Building sites … Total in 27 ms
4:37:42 PM: Error: Error building site: logged 1 error(s)
4:37:42 PM:
4:37:42 PM: ┌─────────────────────────────┐
4:37:42 PM: │ "build.command" failed │
4:37:42 PM: └─────────────────────────────┘
4:37:42 PM:
4:37:42 PM: Error message
4:37:42 PM: Command failed with exit code 255: hugo
4:37:42 PM:
4:37:42 PM: Error location
4:37:42 PM: In Build command from Netlify app:
4:37:42 PM: hugo
4:37:42 PM:
4:37:42 PM: Resolved config
4:37:42 PM: build:
4:37:42 PM: command: hugo
4:37:42 PM: commandOrigin: ui
4:37:42 PM: publish: /opt/build/repo/public
4:37:43 PM: Caching artifacts
4:37:43 PM: Started saving build plugins
4:37:43 PM: Finished saving build plugins
4:37:43 PM: Started saving pip cache
4:37:43 PM: Finished saving pip cache
4:37:43 PM: Started saving emacs cask dependencies
4:37:43 PM: Finished saving emacs cask dependencies
4:37:43 PM: Started saving maven dependencies
4:37:43 PM: Finished saving maven dependencies
4:37:43 PM: Started saving boot dependencies
4:37:43 PM: Finished saving boot dependencies
4:37:43 PM: Started saving go dependencies
4:37:43 PM: Finished saving go dependencies
4:37:45 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
4:37:45 PM: Failing build: Failed to build site
4:37:45 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
4:37:45 PM: Finished processing build request in 11.307732214s
Hi, I have been trying to deploy for some time and have the same build.command failed error. I matched my versions and made the above changes to the netlify.toml and still face issues
I think this line explains quite a bit. You need to add the theme to the themes folder. If you’ve added it and it’s still not working, we’d need to see your repo.