Hi, I am new to Hugo. When I try to depoly, it failed showing the following message:
Deploy details
Deploy failed
Production: main@HEAD. Today at 1:27 AM
We couldnβt deploy your site. Check out our Build docs for tips on troubleshooting your build, or ask us for debugging advice.
Fancy a game?
This deploy is done, but hey, you can still play if you want to!
Deploy log
1:27:04 AM: Build ready to start
1:27:06 AM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
1:27:06 AM: build-image tag: v4.5.3
1:27:06 AM: buildbot version: 25fcfe2826afed3a7b9532f47a1782777298db51
1:27:06 AM: Fetching cached dependencies
1:27:06 AM: Failed to fetch cache, continuing with build
1:27:06 AM: Starting to prepare the repo for build
1:27:07 AM: No cached dependencies found. Cloning fresh repo
1:27:07 AM: git clone https://github.com/sardarms/test-site-1
1:27:07 AM: Preparing Git Reference refs/heads/main
1:27:07 AM: Parsing package.json dependencies
1:27:08 AM: Starting build script
1:27:08 AM: Installing dependencies
1:27:08 AM: Python version set to 2.7
1:27:09 AM: Downloading and installing node v16.14.0β¦
1:27:10 AM: Downloading https://nodejs.org/dist/v16.14.0/node-v16.14.0-linux-x64.tar.xzβ¦
1:27:10 AM: Computing checksum with sha256sum
1:27:10 AM: Checksums matched!
1:27:14 AM: Now using node v16.14.0 (npm v8.3.1)
1:27:14 AM: Started restoring cached build plugins
1:27:14 AM: Finished restoring cached build plugins
1:27:14 AM: Attempting ruby version 2.7.2, read from environment
1:27:16 AM: Using ruby version 2.7.2
1:27:16 AM: Using PHP version 8.0
1:27:16 AM: Installing Hugo 0.92.2
1:27:18 AM: hugo v0.92.2-CDF6A0D6+extended linux/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
1:27:18 AM: Started restoring cached go cache
1:27:18 AM: Finished restoring cached go cache
1:27:18 AM: go version go1.16.5 linux/amd64
1:27:18 AM: go version go1.16.5 linux/amd64
1:27:18 AM: Installing missing commands
1:27:18 AM: Verify run directory
1:27:20 AM: β
1:27:20 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:27:20 AM: Netlify Build
1:27:20 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:27:20 AM: β
1:27:20 AM: β― Version
1:27:20 AM: @netlify/build 26.3.2
1:27:20 AM: β
1:27:20 AM: β― Flags
1:27:20 AM: baseRelDir: true
1:27:20 AM: buildId: 620aad0817c65066304d3375
1:27:20 AM: deployId: 620aad0817c65066304d3377
1:27:20 AM: β
1:27:20 AM: β― Current directory
1:27:20 AM: /opt/build/repo
1:27:20 AM: β
1:27:20 AM: β― Config file
1:27:20 AM: /opt/build/repo/netlify.toml
1:27:20 AM: β
1:27:20 AM: β― Context
1:27:20 AM: production
1:27:20 AM: β
1:27:20 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:27:20 AM: 1. build.command from netlify.toml
1:27:20 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:27:20 AM: β
1:27:20 AM: $ hugo --gc --minify
1:27:20 AM: Start building sites β¦
1:27:20 AM: hugo v0.92.2-CDF6A0D6+extended linux/amd64 BuildDate=2022-02-11T14:17:39Z VendorInfo=gohugoio
1:27:20 AM: WARN 2022/02/14 19:27:20 The βtwitter_simpleβ shortcode will soon require two named parameters: user and id. See β/opt/build/repo/content/blog/rich-content.md:24:1β
1:27:20 AM: ERROR 2022/02/14 19:27:20 JSON parse error: expected comma character or an array or object ending on line 87 and column 40
1:27:20 AM: 12: {
1:27:20 AM: ^
1:27:20 AM: ERROR 2022/02/14 19:27:20 JSON parse error: expected comma character or an array or object ending on line 87 and column 40
1:27:20 AM: 12: {
1:27:20 AM: ^
1:27:20 AM: ERROR 2022/02/14 19:27:20 JSON parse error: expected comma character or an array or object ending on line 87 and column 40
1:27:20 AM: 12: {
1:27:20 AM: ^
1:27:20 AM: ERROR 2022/02/14 19:27:20 JSON parse error: expected comma character or an array or object ending on line 87 and column 40
1:27:20 AM: 12: {
1:27:20 AM: ^
1:27:20 AM: Error: Error building site: failed to render pages: render of βpageβ failed: execute of template failed: template: _default/single.html:5:8: executing β_default/single.htmlβ at <partial βhead.htmlβ .>: error calling partial: execute of template failed: template: partials/templates/opengraph.html:45:17: executing βpartials/templates/opengraph.htmlβ at <index $siteSeries ($name | urlize)>: error calling index: index of untyped nil
1:27:20 AM: Total in 474 ms
1:27:20 AM: β
1:27:20 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:27:20 AM: βbuild.commandβ failed
1:27:20 AM: ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
1:27:20 AM: β
1:27:20 AM: Error message
1:27:20 AM: Command failed with exit code 255: hugo --gc --minify
1:27:20 AM: β
1:27:20 AM: Error location
1:27:20 AM: In build.command from netlify.toml:
1:27:20 AM: hugo --gc --minify
1:27:20 AM: β
1:27:20 AM: Resolved config
1:27:20 AM: build:
1:27:20 AM: command: hugo --gc --minify
1:27:20 AM: commandOrigin: config
1:27:20 AM: environment:
1:27:20 AM: - HUGO_VERSION
1:27:20 AM: - HUGO_ENV
1:27:20 AM: - HUGO_ENABLEGITINFO
1:27:20 AM: publish: /opt/build/repo/public
1:27:20 AM: publishOrigin: config
1:27:20 AM: redirects:
1:27:21 AM: - from: /npmjs/*
status: 200
to: /npmjs/
redirectsOrigin: config
Caching artifacts1:27:21 AM: Started saving build plugins
1:27:21 AM: Finished saving build plugins
1:27:21 AM: Started saving pip cache
1:27:21 AM: Finished saving pip cache
1:27:21 AM: Started saving emacs cask dependencies
1:27:21 AM: Finished saving emacs cask dependencies
1:27:21 AM: Started saving maven dependencies
1:27:21 AM: Finished saving maven dependencies
1:27:21 AM: Started saving boot dependencies
1:27:21 AM: Finished saving boot dependencies
1:27:21 AM: Started saving rust rustup cache
1:27:21 AM: Finished saving rust rustup cache
1:27:21 AM: Started saving go dependencies
1:27:21 AM: Finished saving go dependencies
1:27:24 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:27:24 AM: Creating deploy upload records
1:27:24 AM: Failing build: Failed to build site
1:27:24 AM: Failed during stage βbuilding siteβ: Build script returned non-zero exit code: 2
1:27:24 AM: Finished processing build request in 17.82163704s
Β© 2022 Netlify