Hey Everyone,
I’m trying to parse this build error for my Netlify blog. I use continuous deployment from my GitHub repository. I have an older build that is stable; the site works on my local machine using the serve_site() function in RStudio. The only new thing is a post I authored, including the .Rmd and .html files, which successfully builds on my machine. The full build log is below. Can anyone help me understand the error?
Edit: I’ve also tried adjusting my Hugo build version in Netlify’s settings. I’m using Hugo version 0.73.0 locally and changed my hugo_version
variable to the same.
6:37:58 PM: Build ready to start
6:38:00 PM: build-image version: ca811f47d4c1cbd1812d1eb6ecb0c977e86d1a1d
6:38:00 PM: build-image tag: v3.3.20
6:38:00 PM: buildbot version: be8ecf2af866e16fa4301cc5c14de2ccbbb21cf4
6:38:00 PM: Fetching cached dependencies
6:38:00 PM: Starting to download cache of 73.6MB
6:38:01 PM: Finished downloading cache in 633.955852ms
6:38:01 PM: Starting to extract cache
6:38:04 PM: Finished extracting cache in 2.754338598s
6:38:04 PM: Finished fetching cache in 3.416821315s
6:38:04 PM: Starting to prepare the repo for build
6:38:04 PM: Preparing Git Reference refs/heads/master
6:38:05 PM: Starting build script
6:38:05 PM: Installing dependencies
6:38:06 PM: Python version set to 2.7
6:38:06 PM: Started restoring cached node version
6:38:09 PM: Finished restoring cached node version
6:38:10 PM: v12.18.0 is already installed.
6:38:10 PM: Now using node v12.18.0 (npm v6.14.4)
6:38:11 PM: Started restoring cached build plugins
6:38:11 PM: Finished restoring cached build plugins
6:38:11 PM: Attempting ruby version 2.7.1, read from environment
6:38:12 PM: Using ruby version 2.7.1
6:38:12 PM: Using PHP version 5.6
6:38:12 PM: 5.2 is already installed.
6:38:12 PM: Using Swift version 5.2
6:38:12 PM: Started restoring cached go cache
6:38:12 PM: Finished restoring cached go cache
6:38:13 PM: go version go1.14.4 linux/amd64
6:38:13 PM: go version go1.14.4 linux/amd64
6:38:13 PM: Installing missing commands
6:38:13 PM: Verify run directory
6:38:14 PM:
6:38:14 PM: ┌─────────────────────────────┐
6:38:14 PM: │ Netlify Build │
6:38:14 PM: └─────────────────────────────┘
6:38:14 PM:
6:38:14 PM: ❯ Version
6:38:14 PM: @netlify/build 3.0.1
6:38:14 PM:
6:38:14 PM: ❯ Flags
6:38:14 PM: deployId: 5f124466916c6f000749ba14
6:38:14 PM: mode: buildbot
6:38:14 PM:
6:38:14 PM: ❯ Current directory
6:38:14 PM: /opt/build/repo
6:38:14 PM:
6:38:14 PM: ❯ Config file
6:38:14 PM: No config file was defined: using default values.
6:38:14 PM:
6:38:14 PM: ❯ Context
6:38:14 PM: production
6:38:14 PM:
6:38:14 PM: ┌───────────────────────────────────┐
6:38:14 PM: │ 1. Build command from Netlify app │
6:38:14 PM: └───────────────────────────────────┘
6:38:14 PM:
6:38:14 PM: $ hugo
6:38:14 PM: Building sites … Total in 37 ms
6:38:14 PM: Error: Error building site: template: __0be9dfb067f0347e585ad7274391e782:410: function “O” not defined
6:38:14 PM:
6:38:14 PM: ┌─────────────────────────────┐
6:38:14 PM: │ “build.command” failed │
6:38:14 PM: └─────────────────────────────┘
6:38:14 PM:
6:38:14 PM: Error message
6:38:14 PM: Command failed with exit code 255: hugo
6:38:14 PM:
6:38:14 PM: Error location
6:38:14 PM: In Build command from Netlify app:
6:38:14 PM: hugo
6:38:14 PM:
6:38:14 PM: Resolved config
6:38:14 PM: build:
6:38:14 PM: command: hugo
6:38:14 PM: commandOrigin: ui
6:38:14 PM: publish: /opt/build/repo/public
6:38:14 PM: Caching artifacts
6:38:14 PM: Started saving build plugins
6:38:14 PM: Finished saving build plugins
6:38:14 PM: Started saving pip cache
6:38:14 PM: Finished saving pip cache
6:38:14 PM: Started saving emacs cask dependencies
6:38:14 PM: Finished saving emacs cask dependencies
6:38:14 PM: Started saving maven dependencies
6:38:14 PM: Finished saving maven dependencies
6:38:14 PM: Started saving boot dependencies
6:38:14 PM: Finished saving boot dependencies
6:38:14 PM: Started saving go dependencies
6:38:14 PM: Finished saving go dependencies
6:38:14 PM: Error running command: Build script returned non-zero exit code: 1
6:38:14 PM: Failing build: Failed to build site
6:38:14 PM: Failed during stage ‘building site’: Build script returned non-zero exit code: 1
6:38:15 PM: Finished processing build request in 14.75277601s