Netlify deployment issues

Would someone be able to help me deploy my hugo site to Netlify?

9:19:05 PM: Build ready to start
9:19:06 PM: Fetching cached dependencies
9:19:06 PM: Expected build cache - but failed to find it
9:19:07 PM: Failed to extract cache, continuing with build
9:19:07 PM: No cached dependencies found. Cloning fresh repo
9:19:07 PM: git clone git@github.com:ItsPugle/ItsPugle-Hugo
9:19:08 PM: git remote rm origin
9:19:08 PM: Preparing Git Reference refs/heads/master
9:19:13 PM: Running build command: hugo
9:19:15 PM: Downloading and installing node v6.11.4...
9:19:15 PM: Downloading https://nodejs.org/dist/v6.11.4/node-v6.11.4-linux-x64.tar.xz...
9:19:16 PM: 
                                                                           0.0%
9:19:16 PM: 
9:19:16 PM:   1.1%
9:19:16 PM: 
###                                                                        4.9%
9:19:16 PM: 
##############                                                            19.6%
9:19:16 PM: 
#############################                                             41.5%
9:19:16 PM: 
#########################################
9:19:16 PM: ########
9:19:16 PM: 68.
9:19:16 PM: 1
9:19:17 PM: %
9:19:17 PM: 
######################################################################## 100.0%
9:19:17 PM: 
9:19:17 PM: Computing checksum with sha256sum
9:19:17 PM: Checksums matched!
9:19:18 PM: Now using node v6.11.4 (npm v3.10.10)
9:19:18 PM: Using version v6.11.4 of node
9:19:18 PM: Using /opt/buildhome/.rvm/gems/ruby-2.1.2
9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:346: No 'baseurl' set in configuration or as a flag. Features like page menus will not work without one.
9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:421: Current theme does not support Hugo version 0.17. Minimum version required is 0.25
9:19:19 PM: Started building sites ...
9:19:19 PM: ERROR: 2017/10/19 11:19:19 template.go:477: template: theme/partials/site-footer.html:4: function "now" not defined
9:19:19 PM: ERROR: 2017/10/19 11:19:19 general.go:212: Error while rendering taxonomy terms for tag: template: /opt/build/repo/themes/ananke/layouts/_default/baseof.html:5:9: executing "main" at <.Content>: can't evaluate field Content in type *hugolib.Node
9:19:21 PM: Build complete: exit code: 255
9:19:21 PM: Cleaning up docker container
9:19:21 PM: Error running command: Build script returned non-zero exit code: 255
9:19:21 PM: An error occurred while building the site, skipping the deploy and cache refresh.
9:19:22 PM: Build script returned non-zero exit code: 255
9:19:22 PM: Finished processing build request in 16.329727861s

Copied from #3982.

A lot of things are wrong!

You just need to read the errors.


As the error says:

9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:346: No ‘baseurl’ set in configuration or as a flag. Features like page menus will not work without one.

You are missing a baseurl in you config.toml. You can either specify the baseurl in there, or put it directly in the Netlify Build command as hugo --baseURL=https://YOUR-DOMAIN.com/.


Also using plain hugo uses an archaic hugo version… version 0.17 as in the below error.

9:19:19 PM: ERROR: 2017/10/19 11:19:19 hugo.go:421: Current theme does not support Hugo version 0.17. Minimum version required is 0.25

Instead, set the hugo version to the latest in Netlify by setting the HUGO_VERSION to 0.30.2 or the latest version in https://app.netlify.com/sites/YOUR-SITE/settings/deploys#build-environment-variables.

Below error is related because that old hugo version does not understand now.

9:19:19 PM: ERROR: 2017/10/19 11:19:19 template.go:477: template: theme/partials/site-footer.html:4: function “now” not defined

1 Like

Hey @kaushalmodi!

Thanks for getting back to me. I’m not familiar in the slightest with deployment and all that digital goodness, so I struggled to understand what those errors actually mean.

I’ve added in a baseURL to the config.toml file per the deploy URL: https://general-manager-chipmunk-77848.netlify.com/. I’ve also added the HUGO_VERSION variable to the build variables, and set it to 0.30.2 per your suggestion.

Cheers, and thank you so much :heart:

1 Like