Hi,
It all started with the netlify cms.
I was not able to manage the left menu and made a post about it here:
So I tried to add the layouts folder to my directory and ended up with the following error:
render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/opt/build/repo/layouts/partials/site_head.html:104:38": execute of template failed: template: partials/site_head.html:104:38: executing "partials/site_head.html" at <fingerprint "md5">: error calling fingerprint: []interface {} can not be transformed
My repo url:
Deployment logs:
9:15:16 AM: Build ready to start
9:15:17 AM: build-image version: a6bb34428a07e7de82f4df5dfe1843fbde91f670 (focal)
9:15:17 AM: build-image tag: v4.5.1
9:15:17 AM: buildbot version: ab5da211e6eeae701db03e18619b2fc5572ed90a
9:15:18 AM: Fetching cached dependencies
9:15:18 AM: Starting to download cache of 194.4MB
9:15:19 AM: Finished downloading cache in 1.057444045s
9:15:19 AM: Starting to extract cache
9:15:24 AM: Finished extracting cache in 4.961317695s
9:15:24 AM: Finished fetching cache in 6.087811479s
9:15:24 AM: Starting to prepare the repo for build
9:15:24 AM: Preparing Git Reference refs/heads/master
9:15:26 AM: Parsing package.json dependencies
9:15:27 AM: Starting build script
9:15:27 AM: Installing dependencies
9:15:27 AM: Python version set to 2.7
9:15:27 AM: Started restoring cached node version
9:15:29 AM: Finished restoring cached node version
9:15:30 AM: v16.13.1 is already installed.
9:15:30 AM: Now using node v16.13.1 (npm v8.1.2)
9:15:30 AM: Started restoring cached build plugins
9:15:30 AM: Finished restoring cached build plugins
9:15:31 AM: Attempting ruby version 2.7.2, read from environment
9:15:32 AM: Using ruby version 2.7.2
9:15:32 AM: Using PHP version 8.0
9:15:32 AM: Installing Hugo 0.87.0
9:15:32 AM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio
9:15:32 AM: Started restoring cached go cache
9:15:32 AM: Finished restoring cached go cache
9:15:32 AM: go version go1.16.5 linux/amd64
9:15:32 AM: go version go1.16.5 linux/amd64
9:15:33 AM: Installing missing commands
9:15:33 AM: Verify run directory
9:15:34 AM: β
9:15:34 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:34 AM: Netlify Build
9:15:34 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:34 AM: β
9:15:34 AM: β― Version
9:15:34 AM: @netlify/build 20.3.0
9:15:34 AM: β
9:15:34 AM: β― Flags
9:15:34 AM: baseRelDir: true
9:15:34 AM: buildId: 61b5a184542cb700088cbc5c
9:15:34 AM: deployId: 61b5a184542cb700088cbc5e
9:15:34 AM: β
9:15:34 AM: β― Current directory
9:15:34 AM: /opt/build/repo
9:15:34 AM: β
9:15:34 AM: β― Config file
9:15:34 AM: /opt/build/repo/netlify.toml
9:15:34 AM: β
9:15:34 AM: β― Context
9:15:34 AM: production
9:15:34 AM: β
9:15:34 AM: β― Loading plugins
9:15:34 AM: - netlify-plugin-hugo-cache-resources@0.2.1 from netlify.toml
9:15:35 AM: β
9:15:35 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:35 AM: 1. netlify-plugin-hugo-cache-resources (onPreBuild event)
9:15:35 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:35 AM: β
9:15:35 AM: Checking if resources exist at "resources"
9:15:35 AM: Restored cached resources folder. Total files: 2
9:15:35 AM: ---
9:15:35 AM: 1. /opt/build/repo/resources
9:15:35 AM: 2. /opt/build/repo/resources/_gen
9:15:35 AM: β
9:15:35 AM: (netlify-plugin-hugo-cache-resources onPreBuild completed in 401ms)
9:15:35 AM: β
9:15:35 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:35 AM: 2. build.command from netlify.toml
9:15:35 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:35 AM: β
9:15:35 AM: $ hugo --gc --minify -b $URL
9:15:35 AM: Start building sites β¦
9:15:35 AM: hugo v0.87.0-B0C541E4+extended linux/amd64 BuildDate=2021-08-03T10:57:28Z VendorInfo=gohugoio
9:15:36 AM: ERROR 2021/12/12 07:15:36 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/opt/build/repo/layouts/partials/site_head.html:103:44": execute of template failed: template: partials/site_head.html:103:44: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
9:15:36 AM: ERROR 2021/12/12 07:15:36 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/opt/build/repo/layouts/partials/site_head.html:103:44": execute of template failed: template: partials/site_head.html:103:44: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
9:15:36 AM: ERROR 2021/12/12 07:15:36 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/opt/build/repo/layouts/partials/site_head.html:103:44": execute of template failed: template: partials/site_head.html:103:44: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
9:15:36 AM: ERROR 2021/12/12 07:15:36 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/opt/build/repo/layouts/partials/site_head.html:103:44": execute of template failed: template: partials/site_head.html:103:44: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
9:15:36 AM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "/opt/build/repo/layouts/partials/site_head.html:103:44": execute of template failed: template: partials/site_head.html:103:44: executing "partials/site_head.html" at <resources.Concat>: error calling Concat: slice []interface {} not supported in concat
9:15:36 AM: Total in 451 ms
9:15:36 AM: β
9:15:36 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:36 AM: "build.command" failed
9:15:36 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
9:15:36 AM: β
9:15:36 AM: Error message
9:15:36 AM: Command failed with exit code 255: hugo --gc --minify -b $URL
9:15:36 AM: β
9:15:36 AM: Error location
9:15:36 AM: In build.command from netlify.toml:
9:15:36 AM: hugo --gc --minify -b $URL
9:15:36 AM: β
9:15:36 AM: Resolved config
9:15:36 AM: build:
9:15:36 AM: command: hugo --gc --minify -b $URL
9:15:36 AM: commandOrigin: config
9:15:36 AM: environment:
9:15:36 AM: - HUGO_VERSION
9:15:36 AM: - HUGO_ENABLEGITINFO
9:15:36 AM: - HUGO_ENV
9:15:36 AM: publish: /opt/build/repo/public
9:15:36 AM: publishOrigin: config
9:15:36 AM: plugins:
9:15:36 AM: - inputs:
9:15:36 AM: debug: true
9:15:36 AM: origin: config
9:15:36 AM: package: netlify-plugin-hugo-cache-resources
9:15:36 AM: Caching artifacts
9:15:36 AM: Started saving build plugins
9:15:36 AM: Finished saving build plugins
9:15:36 AM: Started saving pip cache
9:15:36 AM: Finished saving pip cache
9:15:36 AM: Started saving emacs cask dependencies
9:15:36 AM: Finished saving emacs cask dependencies
9:15:36 AM: Started saving maven dependencies
9:15:36 AM: Finished saving maven dependencies
9:15:36 AM: Started saving boot dependencies
9:15:36 AM: Finished saving boot dependencies
9:15:36 AM: Started saving rust rustup cache
9:15:36 AM: Finished saving rust rustup cache
9:15:36 AM: Started saving go dependencies
9:15:36 AM: Finished saving go dependencies
9:15:36 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:15:36 AM: Creating deploy upload records
9:15:36 AM: Failing build: Failed to build site
9:15:36 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
9:15:36 AM: Finished processing build request in 19.014411086s