Build Changes do not show on my site-- newbie needs help!

  • My netlify site name: https://labs-usc.netlify.app
    I encountered a weird situation. I made changes but the same errors came back:

The key part of the log:

8:27:50 PM: ERROR 2022/11/23 01:27:50 failed to load data: failed to load data: "/opt/build/repo/data/content/publication/lecun-deep-2015/cite.bib:1:1": unmarshal of format "" is not supported

I don’t have the folder lecun-deep-2015 in my current folder (I deleted it already), but the errors keep saying this…

Below is the full log:

8:27:35 PM: build-image version: 4c0c1cadee6a31c9bb8d824514030009c4c05c6a (focal)
8:27:35 PM: build-image tag: v4.15.0
8:27:35 PM: buildbot version: 1b4d875963b865c08089f01df4ac094d0921a24e
8:27:35 PM: Fetching cached dependencies
8:27:36 PM: Starting to download cache of 140.9MB
8:27:37 PM: Finished downloading cache in 1.676643732s
8:27:37 PM: Starting to extract cache
8:27:38 PM: Finished extracting cache in 549.45361ms
8:27:38 PM: Finished fetching cache in 2.282771259s
8:27:38 PM: Starting to prepare the repo for build
8:27:38 PM: Preparing Git Reference refs/heads/main
8:27:39 PM: Parsing package.json dependencies
8:27:39 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: ‘public’ versus ‘’ in the Netlify UI
8:27:39 PM: Different build command detected, going to use the one specified in the Netlify configuration file: ‘hugo --gc --minify -b $URL’ versus ‘’ in the Netlify UI
8:27:39 PM: Section completed: initializing
8:27:40 PM: Starting build script
8:27:40 PM: Installing dependencies
8:27:40 PM: Python version set to 2.7
8:27:40 PM: Started restoring cached node version
8:27:40 PM: Finished restoring cached node version
8:27:41 PM: v16.18.1 is already installed.
8:27:41 PM: Now using node v16.18.1 (npm v8.19.2)
8:27:41 PM: Enabling node corepack
8:27:41 PM: Started restoring cached build plugins
8:27:41 PM: Finished restoring cached build plugins
8:27:41 PM: Attempting ruby version 2.7.2, read from environment
8:27:42 PM: Using ruby version 2.7.2
8:27:42 PM: Using PHP version 8.0
8:27:42 PM: Installing Hugo 0.97.3
8:27:42 PM: hugo v0.97.3-078053a43d746a26aa3d48cf1ec7122ae78a9bb4+extended linux/amd64 BuildDate=2022-04-18T17:22:19Z VendorInfo=gohugoio
8:27:42 PM: Started restoring cached go cache
8:27:42 PM: Finished restoring cached go cache
8:27:42 PM: Installing Go version 1.17 (requested 1.17)
8:27:46 PM: unset GOOS;
8:27:46 PM: unset GOARCH;
8:27:46 PM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.17.linux.amd64’;
8:27:46 PM: export PATH=“/opt/buildhome/.gimme/versions/go1.17.linux.amd64/bin:${PATH}”;
8:27:46 PM: go version >&2;
8:27:46 PM: export GIMME_ENV=“/opt/buildhome/.gimme/env/go1.17.linux.amd64.env”
8:27:46 PM: go version go1.17 linux/amd64
8:27:46 PM: Detected 0 framework(s)
8:27:46 PM: Installing missing commands
8:27:46 PM: Verify run directory
8:27:48 PM: ​
8:27:48 PM: ────────────────────────────────────────────────────────────────
8:27:48 PM: Netlify Build
8:27:48 PM: ────────────────────────────────────────────────────────────────
8:27:48 PM: ​
8:27:48 PM: ❯ Version
8:27:48 PM: @netlify/build 28.4.0
8:27:48 PM: ​
8:27:48 PM: ❯ Flags
8:27:48 PM: baseRelDir: true
8:27:48 PM: buildId: 637d7706bb58cc00082d06f2
8:27:48 PM: deployId: 637d7706bb58cc00082d06f4
8:27:48 PM: ​
8:27:48 PM: ❯ Current directory
8:27:48 PM: /opt/build/repo
8:27:48 PM: ​
8:27:48 PM: ❯ Config file
8:27:48 PM: /opt/build/repo/netlify.toml
8:27:48 PM: ​
8:27:48 PM: ❯ Context
8:27:48 PM: production
8:27:48 PM: ​
8:27:48 PM: ❯ Loading plugins
8:27:48 PM: - netlify-plugin-hugo-cache-resources@0.2.1 from netlify.toml
8:27:49 PM: ​
8:27:49 PM: ────────────────────────────────────────────────────────────────
8:27:49 PM: 1. netlify-plugin-hugo-cache-resources (onPreBuild event)
8:27:49 PM: ────────────────────────────────────────────────────────────────
8:27:49 PM: ​
8:27:49 PM: Checking if resources exist at “resources”
8:27:49 PM: Restored cached resources folder. Total files: 2
8:27:49 PM: —
8:27:49 PM: 1. /opt/build/repo/resources
8:27:49 PM: 2. /opt/build/repo/resources/_gen
8:27:49 PM: ​
8:27:49 PM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 63ms)
8:27:49 PM: ​
8:27:49 PM: ────────────────────────────────────────────────────────────────
8:27:49 PM: 2. build.command from netlify.toml
8:27:49 PM: ────────────────────────────────────────────────────────────────
8:27:49 PM: ​
8:27:49 PM: $ hugo --gc --minify -b $URL
8:27:49 PM: Start building sites …
8:27:49 PM: hugo v0.97.3-078053a43d746a26aa3d48cf1ec7122ae78a9bb4+extended linux/amd64 BuildDate=2022-04-18T17:22:19Z VendorInfo=gohugoio
8:27:50 PM: ERROR 2022/11/23 01:27:50 failed to load data: failed to load data: “/opt/build/repo/data/content/publication/lecun-deep-2015/cite.bib:1:1”: unmarshal of format “” is not supported
8:27:50 PM: ERROR 2022/11/23 01:27:50 failed to load data: failed to load data: “/opt/build/repo/data/content/publication/lecun-deep-2015/cite.bib:1:1”: unmarshal of format “” is not supported
8:27:50 PM: ERROR 2022/11/23 01:27:50 failed to load data: failed to load data: “/opt/build/repo/data/content/publication/lecun-deep-2015/cite.bib:1:1”: unmarshal of format “” is not supported
8:27:50 PM: ERROR 2022/11/23 01:27:50 failed to load data: failed to load data: “/opt/build/repo/data/content/publication/lecun-deep-2015/cite.bib:1:1”: unmarshal of format “” is not supported
8:27:50 PM: ERROR 2022/11/23 01:27:50 render of “term” failed: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/_default/baseof.html:7:19”: execute of template failed: template: _default/list.html:7:3: executing “_default/list.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:16:5: executing “partials/site_head.html” at <partial “functions/parse_theme” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/partials/functions/parse_theme.html:7:19”: execute of template failed: template: partials/functions/parse_theme.html:7:19: executing “partials/functions/parse_theme.html” at <index site.Data.themes $theme_day_index>: error calling index: index of untyped nil
8:27:50 PM: ERROR 2022/11/23 01:27:50 render of “page” failed: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/_default/baseof.html:7:19”: execute of template failed: template: landing/single.html:7:3: executing “landing/single.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:16:5: executing “partials/site_head.html” at <partial “functions/parse_theme” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/partials/functions/parse_theme.html:7:19”: execute of template failed: template: partials/functions/parse_theme.html:7:19: executing “partials/functions/parse_theme.html” at <index site.Data.themes $theme_day_index>: error calling index: index of untyped nil
8:27:50 PM: Creating deploy upload records
8:27:50 PM: ERROR 2022/11/23 01:27:50 render of “taxonomy” failed: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/_default/baseof.html:7:19”: execute of template failed: template: _default/list.html:7:3: executing “_default/list.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:16:5: executing “partials/site_head.html” at <partial “functions/parse_theme” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/partials/functions/parse_theme.html:7:19”: execute of template failed: template: partials/functions/parse_theme.html:7:19: executing “partials/functions/parse_theme.html” at <index site.Data.themes $theme_day_index>: error calling index: index of untyped nil
8:27:50 PM: ERROR 2022/11/23 01:27:50 render of “term” failed: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/_default/baseof.html:7:19”: execute of template failed: template: _default/list.html:7:3: executing “_default/list.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:16:5: executing “partials/site_head.html” at <partial “functions/parse_theme” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5@v5.7.1-0.20221025214855-5dcefaa0c593/layouts/partials/functions/parse_theme.html:7:19”: execute of template failed: template: partials/functions/parse_theme.html:7:19: executing “partials/functions/parse_theme.html” at <index site.Data.themes $theme_day_index>: error calling index: index of untyped nil
8:27:50 PM: Error: Error building site: failed to load data: failed to load data: “/opt/build/repo/data/content/publication/lecun-deep-2015/cite.bib:1:1”: unmarshal of format “” is not supported
8:27:50 PM: Total in 256 ms
8:27:50 PM: ​
8:27:50 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
8:27:50 PM: ────────────────────────────────────────────────────────────────
8:27:50 PM: “build.command” failed
8:27:50 PM: ────────────────────────────────────────────────────────────────
8:27:50 PM: ​
8:27:50 PM: Error message
8:27:50 PM: Command failed with exit code 255: hugo --gc --minify -b $URL (Search results for '"non-zero exit code: 255"' - Netlify Support Forums)
8:27:50 PM: ​
8:27:50 PM: Error location
8:27:50 PM: In build.command from netlify.toml:
8:27:50 PM: hugo --gc --minify -b $URL
8:27:50 PM: ​
8:27:50 PM: Resolved config
8:27:50 PM: build:
8:27:50 PM: command: hugo --gc --minify -b $URL
8:27:50 PM: commandOrigin: config
8:27:50 PM: environment:
8:27:50 PM: - HUGO_VERSION
8:27:50 PM: - HUGO_ENABLEGITINFO
8:27:50 PM: - HUGO_ENV
8:27:50 PM: publish: /opt/build/repo/public
8:27:50 PM: publishOrigin: config
8:27:50 PM: plugins:
8:27:50 PM: - inputs:
8:27:50 PM: debug: true
8:27:50 PM: origin: config
8:27:50 PM: package: netlify-plugin-hugo-cache-resources
8:27:50 PM: Caching artifacts
8:27:50 PM: Started saving build plugins
8:27:50 PM: Finished saving build plugins
8:27:50 PM: Started saving pip cache
8:27:50 PM: Finished saving pip cache
8:27:50 PM: Started saving emacs cask dependencies
8:27:50 PM: Finished saving emacs cask dependencies
8:27:50 PM: Started saving maven dependencies
8:27:50 PM: Finished saving maven dependencies
8:27:50 PM: Started saving boot dependencies
8:27:50 PM: Finished saving boot dependencies
8:27:50 PM: Started saving rust rustup cache
8:27:50 PM: Finished saving rust rustup cache
8:27:50 PM: Started saving go dependencies
8:27:50 PM: Finished saving go dependencies
8:27:50 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:27:50 PM: Failing build: Failed to build site
8:27:51 PM: Finished processing build request in 15.209119271s

Hi, @anbai106. It should be possible to prevent the error by re-running a deploy and choosing the “Clear cache” option as shown in the screenshot here (link below):

That should only be required once because if the build succeeds it will save a new cache which should now be missing that directory.

If that doesn’t work or if there are other questions.