I wanted to ask here before I take it to the Netlify forums. I have a free account and donβt expect any speedy resolve there
I have a website, that right now fails to be built by Hugo. A config variable is not defined and not checked with isset
. So Hugo fails and produces 0 pages.
Netlify still deploys the site.
https://app.netlify.com/teams/hugonewsletter/builds/6089529a5d59aa00080ca97c
(that link should be visible public, if not, let me know and Iβll copy paste the log)
I would expect Hugo to fail with an error code and Netlify to stop the build unsuccessful. Is that wrong, a known issue or is there a way to let Netlify know that the build failed somehow?
PS: the log seems to be non-public⦠here it is:
Summary
7:18:34 PM: Waiting for other deploys from your team to complete
7:18:35 PM: Build ready to start
7:18:37 PM: build-image version: 7b53c5fc4445e3ec99d3949e5d1174a8c5be4f16
7:18:37 PM: build-image tag: v3.7.2
7:18:37 PM: buildbot version: af9581a1b3313dc235fa26c62d25d6ae954cae6e
7:18:37 PM: Fetching cached dependencies
7:18:37 PM: Starting to download cache of 655.6MB
7:18:41 PM: Finished downloading cache in 3.564239535s
7:18:41 PM: Starting to extract cache
7:19:05 PM: Finished extracting cache in 24.326638826s
7:19:05 PM: Finished fetching cache in 28.090976946s
7:19:05 PM: Starting to prepare the repo for build
7:19:06 PM: Preparing Git Reference refs/heads/main
7:19:06 PM: Parsing package.json dependencies
7:19:08 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: βpublicβ versus βpublic/β in the Netlify UI
7:19:08 PM: Starting build script
7:19:08 PM: Installing dependencies
7:19:08 PM: Python version set to 2.7
7:19:09 PM: Started restoring cached node version
7:19:12 PM: Finished restoring cached node version
7:19:13 PM: v14.14.0 is already installed.
7:19:14 PM: Now using node v14.14.0 (npm v6.14.8)
7:19:14 PM: Started restoring cached build plugins
7:19:14 PM: Finished restoring cached build plugins
7:19:14 PM: Attempting ruby version 2.7.1, read from environment
7:19:16 PM: Using ruby version 2.7.1
7:19:16 PM: Using PHP version 7.2
7:19:16 PM: Started restoring cached node modules
7:19:16 PM: Finished restoring cached node modules
7:19:16 PM: Found npm version (6.14.8) that doesnβt match expected (7.11.0)
Installing npm at version 7.11.0
7:19:25 PM: /opt/buildhome/.nvm/versions/node/v14.14.0/bin/npm β /opt/buildhome/.nvm/versions/node/v14.14.0/lib/node_modules/npm/bin/npm-cli.js
7:19:25 PM: /opt/buildhome/.nvm/versions/node/v14.14.0/bin/npx β /opt/buildhome/.nvm/versions/node/v14.14.0/lib/node_modules/npm/bin/npx-cli.js
7:19:26 PM: + npm@7.11.0
7:19:26 PM: added 58 packages from 23 contributors, removed 238 packages and updated 196 packages in 8.561s
7:19:26 PM: NPM installed successfully
7:19:26 PM: Installing NPM modules using NPM version 7.11.0
7:19:41 PM: added 10 packages, removed 18 packages, changed 84 packages, and audited 2226 packages in 14s
7:19:41 PM: 323 packages are looking for funding
7:19:41 PM: run npm fund
for details
7:19:41 PM: found 0 vulnerabilities
7:19:41 PM: NPM modules installed
7:19:41 PM: Installing Hugo 0.82.1
7:19:42 PM: hugo v0.82.1-60618210+extended linux/amd64 BuildDate=2021-04-20T11:02:50Z VendorInfo=gohugoio
7:19:42 PM: Started restoring cached go cache
7:19:44 PM: Finished restoring cached go cache
7:19:44 PM: Installing Go version 1.16.3
7:19:49 PM: unset GOOS;
7:19:49 PM: unset GOARCH;
7:19:49 PM: export GOROOT=β/opt/buildhome/.gimme_cache/versions/go1.16.3.linux.amd64β;
7:19:49 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.16.3.linux.amd64/bin:${PATH}";
7:19:49 PM: go version >&2;
7:19:49 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.16.3.linux.amd64.env"
7:19:49 PM: go version go1.16.3 linux/amd64
7:19:49 PM: Installing missing commands
7:19:49 PM: Verify run directory
7:19:51 PM: β
7:19:51 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:19:51 PM: Netlify Build
7:19:51 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:19:51 PM: β
7:19:51 PM: β― Version
7:19:51 PM: @netlify /build 11.3.1
7:19:51 PM: β
7:19:51 PM: β― Flags
7:19:51 PM: deployId: 6089529a5d59aa00080ca97c
7:19:51 PM: β
7:19:51 PM: β― Current directory
7:19:51 PM: /opt/build/repo
7:19:51 PM: β
7:19:51 PM: β― Config file
7:19:51 PM: /opt/build/repo/netlify.toml
7:19:51 PM: β
7:19:51 PM: β― Context
7:19:51 PM: production
7:19:51 PM: β
7:19:51 PM: β― Loading plugins
7:19:51 PM: - netlify-plugin-hugo-cache-resources@0.2.0 from netlify.toml
7:19:51 PM: β
7:19:51 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:19:51 PM: 1. onPreBuild command from netlify-plugin-hugo-cache-resources
7:19:51 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:19:51 PM: β
7:19:52 PM: Checking if resources exist at βresourcesβ
7:19:52 PM: Restored cached resources folder. Total files: 2
7:19:52 PM: β
7:19:52 PM: 1. /opt/build/repo/resources
7:19:52 PM: 2. /opt/build/repo/resources/_gen
7:19:52 PM: β
7:19:52 PM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 277ms)
7:19:52 PM: β
7:19:52 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:19:52 PM: 2. build.command from netlify.toml
7:19:52 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:19:52 PM: β
7:19:52 PM: $ ./bin/netlify.sh
7:19:52 PM: Update module in /opt/build/repo
7:19:54 PM: hugo: downloading modules β¦
7:19:55 PM: hugo: collected modules in 2899 ms
7:19:56 PM: go: downloading github.com/dnb-hugo/blocks v0.0.0-20210428112424-aa4401c3c09f
7:19:58 PM: go: downloading github.com/dnb-hugo/components v0.0.0-20210420145220-7bd6f709ca22
7:20:00 PM: go: downloading github.com/dnb-hugo/libraries v1.0.7
7:20:03 PM: > hugonewsletter.com @3.0.99 build
7:20:03 PM: > npm run build:hugo
7:20:04 PM: > hugonewsletter.com @3.0.99 build:hugo
7:20:04 PM: > hugo --gc --minify
7:20:04 PM: Start building sites β¦
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration blocks-bootstrap
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration functions
7:20:04 PM: WARNING: calling IsSet with unsupported type βinvalidβ () will always return false.
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration hugonewsletter
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration netlification
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration opensearch
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration renderhooks
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration sc-collection
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSSTemplate configuration sc-youtube
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration blocks-bootstrap
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration functions
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration hugonewsletter
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration netlification
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration opensearch
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration renderhooks
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration sc-collection
7:20:04 PM: WARN 2021/04/28 19:20:04 Checking SCSS configuration sc-youtube
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading SCSSFile libs/liteyoutube/lite-yt-embed.scss
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Going into PostProcessing
7:20:04 PM: WARN 2021/04/28 19:20:04 calculating open graph data
7:20:04 PM: WARN 2021/04/28 19:20:04 calculating twitter meta data
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/contact/_index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/_index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/newsletter/201911/index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/newsletter/201910/index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:head-end] (see %!s())
7:20:04 PM: Creating deploy upload records
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/notebook/print-ordinal-date-suffixes/index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/notebook/csp-vs-hugo-highlighting/index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201911/index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/_index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/notebook/analysing-collections/index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/analysing-collections/index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/v1/index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter/201910/index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/print-ordinal-date-suffixes/index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/csp-vs-hugo-highlighting/index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/contact/_index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration blocks-bootstrap
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration functions
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration hugonewsletter
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration netlification
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration opensearch
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration renderhooks
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration sc-collection
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading data configuration sc-youtube
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading JSFile libs/bootstrap/dist/js/bootstrap.bundle.min.js
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading JSFile libs/lite-vimeo/lite-vimeo.js
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading JSFile libs/liteyoutube/lite-yt-embed.js
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Loading js/script.js
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:content-end] (see %!s())
7:20:05 PM: Starting post processing
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/v1/index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/newsletter))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:sidebar-start] (see %!s())
7:20:05 PM: Post processing - HTML
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/newsletter) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/notebook/_index.md))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/categories))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/categories) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:setup] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:head-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:content-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 There is no Twitter profile defined. You need to add a data/dnb/social/twitter.toml configuration!%!(EXTRA *hugolib.pageState=Page(/tags))
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/notebook/_index.md) hook:container-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:head-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:body-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:container-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:content-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:content-end] (see %!s())
7:20:05 PM: Post processing - header rules
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:sidebar-start] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:sidebar-end] (see %!s())
7:20:04 PM: WARN 2021/04/28 19:20:04 Unused hook available for map[context:Page(/tags) hook:container-end] (see %!s())
7:20:04 PM: ERROR 2021/04/28 19:20:04 render of βpageβ failed: execute of template failed: template: _default/single.html:52:6: executing β_default/single.htmlβ at <partial βfooterβ .>: error calling partial: execute of template failed: template: partials/footer.html:51:8: executing βpartials/footer.htmlβ at <partialCached βfunc/getJavascript.htmlβ . $.Lang>: error calling partialCached: β/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/dnb-hugo/components/functions@v1.0.22/layouts/partials/func/getJavascript.html:42:31β: execute of template failed: template: partials/func/getJavascript.html:42:31: executing βpartials/func/getJavascript.htmlβ at <append $jsLocal>: error calling append: reflect: call of reflect.Value.Type on zero Value
7:20:04 PM: ERROR 2021/04/28 19:20:04 render of βpageβ failed: execute of template failed: template: newsletter/single.html:52:6: executing βnewsletter/single.htmlβ at <partial βfooterβ .>: error calling partial: execute of template failed: template: partials/footer.html:51:8: executing βpartials/footer.htmlβ at <partialCached βfunc/getJavascript.htmlβ . $.Lang>: error calling partialCached: β/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/dnb-hugo/components/functions@v1.0.22/layouts/partials/func/getJavascript.html:42:31β: execute of template failed: template: partials/func/getJavascript.html:42:31: executing βpartials/func/getJavascript.htmlβ at <append $jsLocal>: error calling append: reflect: call of reflect.Value.Type on zero Value
7:20:04 PM: ERROR 2021/04/28 19:20:04 render of βpageβ failed: execute of template failed: template: _default/single.html:52:6: executing β_default/single.htmlβ at <partial βfooterβ .>: error calling partial: execute of template failed: template: partials/footer.html:51:8: executing βpartials/footer.htmlβ at <partialCached βfunc/getJavascript.htmlβ . $.Lang>: error calling partialCached: β/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/dnb-hugo/components/functions@v1.0.22/layouts/partials/func/getJavascript.html:42:31β: execute of template failed: template: partials/func/getJavascript.html:42:31: executing βpartials/func/getJavascript.htmlβ at <append $jsLocal>: error calling append: reflect: call of reflect.Value.Type on zero Value
7:20:04 PM: ERROR 2021/04/28 19:20:04 render of βpageβ failed: execute of template failed: template: _default/single.html:52:6: executing β_default/single.htmlβ at <partial βfooterβ .>: error calling partial: execute of template failed: template: partials/footer.html:51:8: executing βpartials/footer.htmlβ at <partialCached βfunc/getJavascript.htmlβ . $.Lang>: error calling partialCached: β/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/dnb-hugo/components/functions@v1.0.22/layouts/partials/func/getJavascript.html:42:31β: execute of template failed: template: partials/func/getJavascript.html:42:31: executing βpartials/func/getJavascript.htmlβ at <append $jsLocal>: error calling append: reflect: call of reflect.Value.Type on zero Value
7:20:04 PM: Total in 309 ms
7:20:04 PM: Error: Error building site: failed to render pages: render of βpageβ failed: execute of template failed: template: newsletter/single.html:52:6: executing βnewsletter/single.htmlβ at <partial βfooterβ .>: error calling partial: execute of template failed: template: partials/footer.html:51:8: executing βpartials/footer.htmlβ at <partialCached βfunc/getJavascript.htmlβ . $.Lang>: error calling partialCached: β/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/dnb-hugo/components/functions@v1.0.22/layouts/partials/func/getJavascript.html:42:31β: execute of template failed: template: partials/func/getJavascript.html:42:31: executing βpartials/func/getJavascript.htmlβ at <append $jsLocal>: error calling append: reflect: call of reflect.Value.Type on zero Value
7:20:04 PM: β
7:20:04 PM: (build.command completed in 12.5s)
7:20:04 PM: β
7:20:05 PM: Post processing - redirect rules
7:20:04 PM: βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:20:04 PM: 3. onPostBuild command from netlify-plugin-hugo-cache-resources
7:20:04 PM: βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:20:04 PM: β
7:20:04 PM: Saved resources folder to cache. Total files: 2
7:20:04 PM: β
7:20:04 PM: 1. /opt/build/repo/resources
7:20:04 PM: 2. /opt/build/repo/resources/_gen
7:20:04 PM: β
7:20:04 PM: (netlify-plugin-hugo-cache-resources onPostBuild completed in 30ms)
7:20:04 PM: β
7:20:04 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:20:04 PM: 4. Deploy site
7:20:04 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:20:05 PM: Post processing done
7:20:04 PM: β
7:20:04 PM: Starting to deploy site from βpublicβ
7:20:04 PM: Creating deploy tree
7:20:04 PM: 0 new files to upload
7:20:04 PM: 0 new functions to upload
7:20:04 PM: Site deploy was successfully initiated
7:20:04 PM: β
7:20:04 PM: (Deploy site completed in 196ms)
7:20:05 PM: β
7:20:05 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:20:05 PM: Netlify Build Complete
7:20:05 PM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
7:20:05 PM: β
7:20:05 PM: (Netlify Build completed in 13.5s)
7:20:05 PM: Caching artifacts
7:20:05 PM: Site is live
7:20:05 PM: Started saving node modules
7:20:05 PM: Finished saving node modules
7:20:05 PM: Started saving build plugins
7:20:05 PM: Finished saving build plugins
7:20:05 PM: Started saving pip cache
7:20:05 PM: Finished saving pip cache
7:20:05 PM: Started saving emacs cask dependencies
7:20:05 PM: Finished saving emacs cask dependencies
7:20:05 PM: Started saving maven dependencies
7:20:05 PM: Finished saving maven dependencies
7:20:05 PM: Started saving boot dependencies
7:20:05 PM: Finished saving boot dependencies
7:20:05 PM: Started saving rust rustup cache
7:20:05 PM: Finished saving rust rustup cache
7:20:05 PM: Started saving go dependencies
7:20:09 PM: Finished saving go dependencies
7:20:09 PM: Build script success
7:22:25 PM: Finished processing build request in 3m48.620324554s
That really looks like it should be failing on Netlify as well⦠Weird.
No answers to give you, just an agreement that something looks not right. Also would like to know and follow along with what happens here.
There was no change in the output folder, so nothing for Netlify to deploy, so no change to your site. The previously built version will remain until your Hugo build completes and there are changes for Netlify to deploy.
Netlify still deploys the site.
No, it doesnβt look like it did. Netlify didnβt replace your existing site with a broken one, which is good.
zwbetz
April 28, 2021, 2:05pm
5
@davidsneighbour is your local hugo version the same as your netlify hugo version?
Edit: Also, what are the contents of this build script?
$ ./bin/netlify.sh
@zwbetz : Edit: Also, what are the contents of this build script?
https://github.com/dnb-hugo/hugonewsletter.com/blob/main/bin/netlify.sh
just a sequence of βget the latest changes from upstreamβ and βrun hugoβ
and hugo run build
is running these commands:
"build": "npm run build:hugo",
"build:hugo": "hugo --gc --minify",
@nternetinspired
I am pretty sure I donβt understand that. Public is not part of the repository so there is no public at that point and Hugo does not create a public folder. Netlify deploys an empty page (dark green with page not found error) instead of the last deploy that had pages in public. Hugo does not finish itβs job because there are errors. Netlify then deploys βnothingβ as if Hugo was successful.
Your netlify.sh
should check the exit status of the hugo command and exit appropriately. Something like this:
hugo mod get -u ./...
if [[ $? -ne 0 ]] ; then
echo "hugo build failed"
exit 1
fi
I would suggest doing something similar for every command executed by netlify.sh
.
1 Like
That did the trick. And I remembered having read something about the exit code of Hugo recently having changed⦠anyway, it works
system
Closed
May 1, 2021, 2:22pm
10
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.