Exit code error

Hi,

I tried it and it seemed like it worked and then it failed.

10:14:33 AM: build-image version: 524714d1a66d1a967316f5c39465e22c77fdd56c (focal)
10:14:33 AM: build-image tag: v4.16.0
10:14:33 AM: buildbot version: ccca89b58bb45671b9608069deb629f8ca866189
10:14:33 AM: Fetching cached dependencies
10:14:33 AM: Failed to fetch cache, continuing with build
10:14:33 AM: Starting to prepare the repo for build
10:14:33 AM: No cached dependencies found. Cloning fresh repo
10:14:33 AM: git clone GitHub - reke1608/rekeportfolio
10:14:34 AM: Preparing Git Reference refs/heads/main
10:14:34 AM: Parsing package.json dependencies
10:14:35 AM: Section completed: initializing
10:14:35 AM: Starting build script
10:14:35 AM: Installing dependencies
10:14:35 AM: Python version set to 2.7
10:14:35 AM: Downloading and installing node v16.19.0…
10:14:35 AM: Downloading https://nodejs.org/dist/v16.19.0/node-v16.19.0-linux-x64.tar.xz
10:14:36 AM: Computing checksum with sha256sum
10:14:36 AM: Checksums matched!
10:14:38 AM: Now using node v16.19.0 (npm v8.19.3)
10:14:38 AM: Enabling node corepack
10:14:38 AM: Started restoring cached build plugins
10:14:38 AM: Finished restoring cached build plugins
10:14:38 AM: Attempting ruby version 2.7.2, read from environment
10:14:38 AM: Using ruby version 2.7.2
10:14:38 AM: Using PHP version 8.0
10:14:38 AM: Started restoring cached go cache
10:14:38 AM: Finished restoring cached go cache
10:14:38 AM: Installing Go version 1.19.4 (requested 1.19.4)
10:14:38 AM: unset GOOS;
10:14:38 AM: unset GOARCH;
10:14:38 AM: export GOROOT=‘/opt/buildhome/.gimme/versions/go1.19.4.linux.amd64’;
10:14:38 AM: export PATH=“/opt/buildhome/.gimme/versions/go1.19.4.linux.amd64/bin:${PATH}”;
10:14:38 AM: go version >&2;
10:14:38 AM: export GIMME_ENV=‘/opt/buildhome/.gimme/env/go1.19.4.linux.amd64.env’;
10:14:38 AM: go version go1.19.4 linux/amd64
10:14:39 AM: Detected 0 framework(s)
10:14:39 AM: Installing missing commands
10:14:39 AM: Verify run directory
10:14:40 AM: ​
10:14:40 AM: ────────────────────────────────────────────────────────────────
10:14:40 AM: Netlify Build
10:14:40 AM: ────────────────────────────────────────────────────────────────
10:14:40 AM: ​
10:14:40 AM: ❯ Version
10:14:40 AM: @netlify/build 29.1.2
10:14:40 AM: ​
10:14:40 AM: ❯ Flags
10:14:40 AM: baseRelDir: true
10:14:40 AM: buildId: 639deae33b39e600086f5b0a
10:14:40 AM: deployId: 639deae33b39e600086f5b0c
10:14:40 AM: ​
10:14:40 AM: ❯ Current directory
10:14:40 AM: /opt/build/repo
10:14:40 AM: ​
10:14:40 AM: ❯ Config file
10:14:40 AM: /opt/build/repo/netlify.toml
10:14:40 AM: ​
10:14:40 AM: ❯ Context
10:14:40 AM: production
10:14:40 AM: ​
10:14:40 AM: ❯ Installing plugins
10:14:40 AM: - netlify-plugin-hugo-cache-resources@0.2.1
10:14:41 AM: ​
10:14:41 AM: ❯ Loading plugins
10:14:41 AM: - netlify-plugin-hugo-cache-resources@0.2.1 from netlify.toml
10:14:42 AM: ​
10:14:42 AM: ────────────────────────────────────────────────────────────────
10:14:42 AM: 1. netlify-plugin-hugo-cache-resources (onPreBuild event)
10:14:42 AM: ────────────────────────────────────────────────────────────────
10:14:42 AM: ​
10:14:42 AM: Checking if resources exist at “resources”
10:14:42 AM: No cache found for resources folder
10:14:42 AM: ​
10:14:42 AM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 8ms)
10:14:42 AM: ​
10:14:42 AM: ────────────────────────────────────────────────────────────────
10:14:42 AM: 2. build.command from netlify.toml
10:14:42 AM: ────────────────────────────────────────────────────────────────
10:14:42 AM: ​
10:14:42 AM: $ hugo --gc --minify -b $URL
10:14:44 AM: hugo: downloading modules …
10:14:47 AM: go: downloading GitHub - wowchemy/wowchemy-hugo-themes: 🔥 Hugo website builder, Hugo themes & Hugo CMS. No code, easily build with blocks! 创建在线课程,学术简历或初创网站。#OpenScience v4.8.0+incompatible
10:14:50 AM: go: downloading github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5 v5.7.0
10:14:50 AM: go: upgraded github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy/v5 v5.6.0 => v5.7.0
10:14:51 AM: hugo: collected modules in 8110 ms
10:14:51 AM: Start building sites …
10:14:51 AM: hugo v0.85.0-724D5DB5+extended linux/amd64 BuildDate=2021-07-05T10:46:28Z VendorInfo=gohugoio
10:14:51 AM: ERROR 2022/12/17 16:14:51 Hugo Chroma themes github-light.css and dracula.css not found in css/libs/chroma/. See hugo gen chromastyles | Hugo
10:14:53 AM: ERROR 2022/12/17 16:14:53 render of “term” failed: execute of template failed: template: authors/list.html:7:3: executing “authors/list.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:174:5: executing “partials/site_head.html” at <partial “wowchemy_seo” .>: error calling partial: execute of template failed: template: partials/wowchemy_seo.html:6:3: executing “partials/wowchemy_seo.html” at <partial “seo_tags” .>: error calling partial: execute of template failed: template: partials/seo_tags.html:61:22: executing “partials/seo_tags.html” at <partial “functions/get_featured_image.html” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core@v0.1.0/layouts/partials/functions/get_featured_image.html:18:54”: execute of template failed: template: partials/functions/get_featured_image.html:18:54: executing “partials/functions/get_featured_image.html” at <$filename>: invalid value; expected string
10:14:53 AM: ERROR 2022/12/17 16:14:53 render of “term” failed: 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:174:5: executing “partials/site_head.html” at <partial “wowchemy_seo” .>: error calling partial: execute of template failed: template: partials/wowchemy_seo.html:6:3: executing “partials/wowchemy_seo.html” at <partial “seo_tags” .>: error calling partial: execute of template failed: template: partials/seo_tags.html:61:22: executing “partials/seo_tags.html” at <partial “functions/get_featured_image.html” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core@v0.1.0/layouts/partials/functions/get_featured_image.html:18:54”: execute of template failed: template: partials/functions/get_featured_image.html:18:54: executing “partials/functions/get_featured_image.html” at <$filename>: invalid value; expected string
10:14:53 AM: ERROR 2022/12/17 16:14:53 render of “taxonomy” failed: execute of template failed: template: authors/terms.html:7:3: executing “authors/terms.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:174:5: executing “partials/site_head.html” at <partial “wowchemy_seo” .>: error calling partial: execute of template failed: template: partials/wowchemy_seo.html:6:3: executing “partials/wowchemy_seo.html” at <partial “seo_tags” .>: error calling partial: execute of template failed: template: partials/seo_tags.html:61:22: executing “partials/seo_tags.html” at <partial “functions/get_featured_image.html” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core@v0.1.0/layouts/partials/functions/get_featured_image.html:18:54”: execute of template failed: template: partials/functions/get_featured_image.html:18:54: executing “partials/functions/get_featured_image.html” at <$filename>: invalid value; expected string
10:14:53 AM: ERROR 2022/12/17 16:14:53 render of “section” failed: execute of template failed: template: section/event.html:7:3: executing “section/event.html” at <partial “site_head” .>: error calling partial: execute of template failed: template: partials/site_head.html:174:5: executing “partials/site_head.html” at <partial “wowchemy_seo” .>: error calling partial: execute of template failed: template: partials/wowchemy_seo.html:6:3: executing “partials/wowchemy_seo.html” at <partial “seo_tags” .>: error calling partial: execute of template failed: template: partials/seo_tags.html:61:22: executing “partials/seo_tags.html” at <partial “functions/get_featured_image.html” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core@v0.1.0/layouts/partials/functions/get_featured_image.html:18:54”: execute of template failed: template: partials/functions/get_featured_image.html:18:54: executing “partials/functions/get_featured_image.html” at <$filename>: invalid value; expected string
10:14:53 AM: Error: Error building site: failed to render pages: render of “taxonomy” failed: 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:174:5: executing “partials/site_head.html” at <partial “wowchemy_seo” .>: error calling partial: execute of template failed: template: partials/wowchemy_seo.html:6:3: executing “partials/wowchemy_seo.html” at <partial “seo_tags” .>: error calling partial: execute of template failed: template: partials/seo_tags.html:61:22: executing “partials/seo_tags.html” at <partial “functions/get_featured_image.html” .>: error calling partial: “/opt/build/cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/wowchemy/wowchemy-hugo-themes/modules/wowchemy-core@v0.1.0/layouts/partials/functions/get_featured_image.html:18:54”: execute of template failed: template: partials/functions/get_featured_image.html:18:54: executing “partials/functions/get_featured_image.html” at <$filename>: invalid value; expected string
10:14:53 AM: Total in 10683 ms
10:14:53 AM: ​
10:14:53 AM: ────────────────────────────────────────────────────────────────
10:14:53 AM: “build.command” failed
10:14:53 AM: ────────────────────────────────────────────────────────────────
10:14:53 AM: ​
10:14:53 AM: Error message
10:14:53 AM: Command failed with exit code 255: hugo --gc --minify -b $URL (Search results for '"non-zero exit code: 255"' - Netlify Support Forums)
10:14:53 AM: ​
10:14:53 AM: Error location
10:14:53 AM: In build.command from netlify.toml:
10:14:53 AM: hugo --gc --minify -b $URL
10:14:53 AM: ​
10:14:53 AM: Resolved config
10:14:53 AM: build:
10:14:53 AM: command: hugo --gc --minify -b $URL
10:14:53 AM: commandOrigin: config
10:14:53 AM: environment:
10:14:53 AM: - HUGO_ENV
10:14:53 AM: publish: /opt/build/repo/public
10:14:53 AM: publishOrigin: config
10:14:53 AM: plugins:
10:14:53 AM: - inputs:
10:14:53 AM: debug: true
10:14:53 AM: origin: config
10:14:53 AM: package: netlify-plugin-hugo-cache-resources
10:14:54 AM: Caching artifacts
10:14:54 AM: Started saving build plugins
10:14:54 AM: Finished saving build plugins
10:14:54 AM: Started saving pip cache
10:14:54 AM: Failed during stage ‘building site’: Build script returned non-zero exit code: 2 (Search results for '"non-zero exit code: 2"' - Netlify Support Forums)
10:14:54 AM: Finished saving pip cache
10:14:54 AM: Started saving emacs cask dependencies
10:14:54 AM: Finished saving emacs cask dependencies
10:14:54 AM: Started saving maven dependencies
10:14:54 AM: Finished saving maven dependencies
10:14:54 AM: Started saving boot dependencies
10:14:54 AM: Finished saving boot dependencies
10:14:54 AM: Started saving rust rustup cache
10:14:54 AM: Finished saving rust rustup cache
10:14:54 AM: Started saving go dependencies
10:14:54 AM: Finished saving go dependencies
10:14:54 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:14:54 AM: Failing build: Failed to build site
10:14:55 AM: Finished processing build request in 21.766979663s