Build failure with hugo - setting hugo version

I have created a new website with Academic template and wanted to add multilingual function (en and fr). It works on my local computer (compilation done with R Studio). So I push to github the resulting files. But Netifly send me an error message and could not deploy the multilingual version.

I suspect it is related to the fact that I have not created content/en for the default language ?

5:43:56 PM: Build ready to start
5:43:58 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
5:43:58 PM: build-image tag: v3.3.2
5:43:58 PM: buildbot version: ef8d0929ed0baabafd8bbb7d0b021e1fc24180c0
5:43:58 PM: Fetching cached dependencies
5:43:58 PM: Starting to download cache of 255.0KB
5:43:58 PM: Finished downloading cache in 108.227845ms
5:43:58 PM: Starting to extract cache
5:43:58 PM: Failed to fetch cache, continuing with build
5:43:58 PM: Starting to prepare the repo for build
5:43:59 PM: No cached dependencies found. Cloning fresh repo
5:43:59 PM: git clone GitHub - ClaudeGrasland/CG
5:43:59 PM: Preparing Git Reference refs/heads/master
5:44:01 PM: Found netlify.toml. Overriding site configuration
5:44:01 PM: Starting build script
5:44:01 PM: Installing dependencies
5:44:02 PM: Downloading and installing node v10.16.3…
5:44:02 PM: Downloading https://nodejs.org/dist/v10.16.3/node-v10.16.3-linux-x64.tar.xz
5:44:03 PM:

6.0%

5:44:03 PM:
#############################################
5:44:03 PM: 63.0%
5:44:03 PM:
########################################################################
5:44:03 PM: 100.0%
5:44:03 PM: Computing checksum with sha256sum
5:44:03 PM: Checksums matched!
5:44:05 PM: Now using node v10.16.3 (npm v6.9.0)
5:44:06 PM: Attempting ruby version 2.6.2, read from environment
5:44:07 PM: Using ruby version 2.6.2
5:44:07 PM: Using PHP version 5.6
5:44:07 PM: Installing Hugo 0.55.6
5:44:09 PM: Hugo Static Site Generator v0.55.6-A5D4C82D2/extended linux/amd64 BuildDate: 2019-05-18T08:08:34Z
5:44:09 PM: Started restoring cached go cache
5:44:09 PM: Finished restoring cached go cache
5:44:09 PM: unset GOOS;
5:44:09 PM: unset GOARCH;
5:44:09 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.12.linux.amd64’;
5:44:09 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}”;
5:44:09 PM: go version >&2;
5:44:09 PM: export GIMME_ENV=‘/opt/buildhome/.gimme/env/go1.12.linux.amd64.env’;
5:44:09 PM: go version go1.12 linux/amd64
5:44:09 PM: Installing missing commands
5:44:09 PM: Verify run directory
5:44:09 PM: Executing user command: hugo --gc --minify -b $URL
5:44:09 PM: Error: found overlapping content dirs (“/opt/build/repo/content/” and “/opt/build/repo/content/fr/”)
5:44:09 PM: Skipping functions preparation step: no functions directory set
5:44:09 PM: Caching artifacts
5:44:09 PM: Started saving pip cache
5:44:09 PM: Finished saving pip cache
5:44:09 PM: Started saving emacs cask dependencies
5:44:09 PM: Finished saving emacs cask dependencies
5:44:09 PM: Started saving maven dependencies
5:44:09 PM: Finished saving maven dependencies
5:44:09 PM: Started saving boot dependencies
5:44:09 PM: Finished saving boot dependencies
5:44:09 PM: Started saving go dependencies
5:44:09 PM: Finished saving go dependencies
5:44:15 PM: Error running command: Build script returned non-zero exit code: 255
5:44:15 PM: Failing build: Failed to build site
5:44:15 PM: failed during stage ‘building site’: Build script returned non-zero exit code: 255
5:44:15 PM: Finished processing build request in 16.682610383s
Some tips:

  • Briefly summarize the issues you have been experiencing
  • Provide a link to your site hosted on Netlify
  • Post your deploy logs showing error messages
  • Mention what have you tried to fix the problem

Problem solved by changing the HUGO_VERSION in the netifly.toml file, as suggested by the doc :slight_smile:

1 Like