Site name:
johnmuchovej.netlify.app
Build log:
12:12:00 AM: Build ready to start
12:12:02 AM: build-image version: b0258b965567defc4a2d7e2f2dec2e00c8f73ad6
12:12:02 AM: build-image tag: v3.4.1
12:12:02 AM: buildbot version: fcbc7a79f7372e5995cf02954ef19fc48d20c871
12:12:03 AM: Fetching cached dependencies
12:12:03 AM: Starting to download cache of 115.9MB
12:12:03 AM: Finished downloading cache in 761.050754ms
12:12:03 AM: Starting to extract cache
12:12:07 AM: Finished extracting cache in 3.509570921s
12:12:07 AM: Finished fetching cache in 4.328125675s
12:12:07 AM: Starting to prepare the repo for build
12:12:07 AM: Netlify Large Media is enabled, running git commands with GIT_LFS_SKIP_SMUDGE=1
12:12:07 AM: Unable to disable git gc.autoDetach: fatal: $HOME not set
12:12:07 AM: Preparing Git Reference refs/heads/master
12:12:09 AM: Starting build script
12:12:09 AM: Installing dependencies
12:12:09 AM: Python version set to 2.7
12:12:09 AM: Started restoring cached node version
12:12:12 AM: Finished restoring cached node version
12:12:13 AM: v12.18.0 is already installed.
12:12:13 AM: Now using node v12.18.0 (npm v6.14.4)
12:12:13 AM: Started restoring cached build plugins
12:12:13 AM: Finished restoring cached build plugins
12:12:13 AM: Attempting ruby version 2.7.1, read from environment
12:12:14 AM: Using ruby version 2.7.1
12:12:15 AM: Using PHP version 5.6
12:12:15 AM: 5.2 is already installed.
12:12:15 AM: Using Swift version 5.2
12:12:15 AM: Installing Hugo 0.72.0
12:12:15 AM: Hugo Static Site Generator v0.72.0-8A7EF3CF/extended linux/amd64 BuildDate: 2020-05-31T12:14:23Z
12:12:15 AM: Started restoring cached go cache
12:12:15 AM: Finished restoring cached go cache
12:12:15 AM: go version go1.14.4 linux/amd64
12:12:15 AM: go version go1.14.4 linux/amd64
12:12:15 AM: Installing missing commands
12:12:15 AM: Verify run directory
12:12:16 AM:
12:12:16 AM: ┌─────────────────────────────┐
12:12:16 AM: │ Netlify Build │
12:12:16 AM: └─────────────────────────────┘
12:12:16 AM:
12:12:16 AM: ❯ Version
12:12:16 AM: @netlify/build 3.3.0
12:12:16 AM:
12:12:16 AM: ❯ Flags
12:12:16 AM: deployId: 5f41ec90f78c890008bf7706
12:12:16 AM: mode: buildbot
12:12:16 AM:
12:12:16 AM: ❯ Current directory
12:12:16 AM: /opt/build/repo
12:12:16 AM:
12:12:16 AM: ❯ Config file
12:12:16 AM: /opt/build/repo/netlify.toml
12:12:16 AM:
12:12:16 AM: ❯ Context
12:12:16 AM: production
12:12:16 AM:
12:12:16 AM: ┌────────────────────────────────────┐
12:12:16 AM: │ 1. build.command from netlify.toml │
12:12:16 AM: └────────────────────────────────────┘
12:12:16 AM:
12:12:16 AM: $ hugo --gc --minify -b $URL
12:12:17 AM: Building sites … ERROR 2020/08/23 04:12:17 render of "home" failed: execute of template failed: template: index.html:18:3: executing "main" at <partial "widget_page.html" .>: error calling partial: execute of template failed: template: partials/widget_page.html:94:9: executing "partials/widget_page.html" at <partial $widget_path $widget_args>: error calling partial: execute of template failed: template: partials/widgets/pages.html:89:11: executing "partials/widgets/pages.html" at <partial "li_compact" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/li_compact.html:81:17": execute of template failed: template: partials/li_compact.html:81:17: executing "partials/li_compact.html" at <.Resize>: error calling Resize: image "/opt/build/repo/content/post/foraging-for-research/featured.jpg": resize : image: unknown format
12:12:17 AM: ERROR 2020/08/23 04:12:17 render of "section" failed: execute of template failed: template: section/post.html:18:9: executing "main" at <partial "li_compact" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/li_compact.html:81:17": execute of template failed: template: partials/li_compact.html:81:17: executing "partials/li_compact.html" at <.Resize>: error calling Resize: image "/opt/build/repo/content/post/foraging-for-research/featured.jpg": resize : image: unknown format
12:12:17 AM: Total in 1202 ms
12:12:17 AM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: project/single.html:29:15: executing "main" at <partial "li_compact" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/li_compact.html:81:17": execute of template failed: template: partials/li_compact.html:81:17: executing "partials/li_compact.html" at <.Resize>: error calling Resize: image "/opt/build/repo/content/post/foraging-for-research/featured.jpg": resize : image: unknown format
12:12:17 AM:
12:12:17 AM: ┌─────────────────────────────┐
12:12:17 AM: │ "build.command" failed │
12:12:17 AM: └─────────────────────────────┘
12:12:17 AM:
12:12:17 AM: Error message
12:12:17 AM: Command failed with exit code 255: hugo --gc --minify -b $URL
12:12:17 AM:
12:12:17 AM: Error location
12:12:17 AM: In build.command from netlify.toml:
12:12:17 AM: hugo --gc --minify -b $URL
12:12:17 AM:
12:12:17 AM: Resolved config
12:12:17 AM: build:
12:12:17 AM: command: hugo --gc --minify -b $URL
12:12:17 AM: commandOrigin: config
12:12:17 AM: environment:
12:12:17 AM: - NETLIFY_LFS_ORIGIN_URL
12:12:17 AM: - HUGO_VERSION
12:12:17 AM: - HUGO_ENABLEGITINFO
12:12:17 AM: - HUGO_ENV
12:12:17 AM: publish: /opt/build/repo/public
12:12:17 AM: Caching artifacts
12:12:17 AM: Started saving build plugins
12:12:17 AM: Finished saving build plugins
12:12:17 AM: Started saving pip cache
12:12:17 AM: Finished saving pip cache
12:12:17 AM: Started saving emacs cask dependencies
12:12:18 AM: Finished saving emacs cask dependencies
12:12:18 AM: Started saving maven dependencies
12:12:18 AM: Finished saving maven dependencies
12:12:18 AM: Started saving boot dependencies
12:12:18 AM: Finished saving boot dependencies
12:12:18 AM: Started saving go dependencies
12:12:18 AM: Finished saving go dependencies
12:12:18 AM: Error running command: Build script returned non-zero exit code: 1
12:12:18 AM: Failing build: Failed to build site
12:12:18 AM: Failed during stage 'building site': Build script returned non-zero exit code: 1
12:12:18 AM: Finished processing build request in 15.338613154s
Build settings:
hugo command: hugo --gc --minify -b $URL
OS: Ubuntu 16.04
Asset Optimization: All but Images is ON.
Thoughts so far:
From what I’ve gathered, it seems like the problem with the build is that the LFS references aren’t loading the proper files. Something I’ve found a bit confusing is that only PDFs display in my Netlify LMS portal, yet LFS-backed images show up on GitHub. (See screenshots.)
The file this build fails on is in the 2nd screenshot. This issue only seems to creep up when I have files that are pre-processed/transformed by hugo
itself during compilation. What I’ve read online conveys that Netlify builds clone LFS-backed files to the build server, but this seems to convey otherwise – as my local builds run perfectly fine, too.