Skip to content

Instantly share code, notes, and snippets.

@growdigital
Created February 7, 2025 17:26
Show Gist options
  • Save growdigital/4d09e088223ff845239ec945bedb168c to your computer and use it in GitHub Desktop.
Save growdigital/4d09e088223ff845239ec945bedb168c to your computer and use it in GitHub Desktop.
Netlify LogBook error
5:25:23 PM: Netlify Build
5:25:23 PM: ────────────────────────────────────────────────────────────────
5:25:23 PM: ​
5:25:23 PM: ❯ Version
5:25:23 PM: @netlify/build 29.58.9
5:25:23 PM: ​
5:25:23 PM: ❯ Flags
5:25:23 PM: accountId: 668fbdb1723c471de22327f2
5:25:23 PM: baseRelDir: true
5:25:23 PM: buildId: 67a641df84e5be0008ff0892
5:25:23 PM: deployId: 67a641df84e5be0008ff0894
5:25:23 PM: ​
5:25:23 PM: ❯ Current directory
5:25:23 PM: /opt/build/repo
5:25:23 PM: ​
5:25:23 PM: ❯ Config file
5:25:23 PM: /opt/build/repo/netlify.toml
5:25:23 PM: ​
5:25:23 PM: ❯ Context
5:25:23 PM: production
5:25:23 PM: ​
5:25:23 PM: build.command from netlify.toml
5:25:23 PM: ────────────────────────────────────────────────────────────────
5:25:23 PM: ​
5:25:23 PM: $ yarn project-setup && yarn build
5:25:24 PM: yarn run v1.22.22
5:25:24 PM: $ node ./scripts/projectSetup.js
5:25:24 PM: Done in 0.07s.
5:25:24 PM: yarn run v1.22.22
5:25:24 PM: $ hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic
5:25:32 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
5:25:26 PM: hugo: downloading modules …
5:25:31 PM: hugo: collected modules in 6834 ms
5:25:31 PM: Start building sites …
5:25:31 PM: hugo v0.115.1-857374e69358f788bd31ddc55255c5c8e3dcfd80+extended linux/amd64 BuildDate=2023-07-03T17:28:25Z VendorInfo=gohugoio
5:25:32 PM: ERROR render of "page" failed: "/opt/build/repo/themes/logbook-hugo/layouts/_default/baseof.html:13:9": execute of template failed: template: _default/single.html:13:9: executing "_default/single.html" at <partialCached "essentials/style.html" .>: error calling partialCached: "/opt/build/repo/themes/logbook-hugo/layouts/partials/essentials/style.html:43:25": execute of template failed: template: partials/essentials/style.html:43:25: executing "partials/essentials/style.html" at <css>: can't evaluate field PostCSS in type interface {}
ERROR render of "page" failed: "/opt/build/repo/themes/logbook-hugo/layouts/_default/baseof.html:13:9": execute of template failed: template: _default/about.html:13:9: executing "_default/about.html" at <partialCached "essentials/style.html" .>: error calling partialCached: "/opt/build/repo/themes/logbook-hugo/layouts/partials/essentials/style.html:43:25": execute of template failed: template: partials/essentials/style.html:43:25: executing "partials/essentials/style.html" at <css>: can't evaluate field PostCSS in type interface {}
ERROR render of "page" failed: "/opt/build/repo/themes/logbook-hugo/layouts/_default/baseof.html:13:9": execute of template failed: template: _default/contact.html:13:9: executing "_default/contact.html" at <partialCached "essentials/style.html" .>: error calling partialCached: "/opt/build/repo/themes/logbook-hugo/layouts/partials/essentials/style.html:43:25": execute of template failed: template: partials/essentials/style.html:43:25: executing "partials/essentials/style.html" at <css>: can't evaluate field PostCSS in type interface {}
5:25:32 PM: Template Metrics:
5:25:32 PM: cumulative average maximum cache percent cached total
5:25:32 PM: duration duration duration potential cached count count template
5:25:32 PM: ---------- -------- -------- --------- ------- ------ ----- --------
5:25:32 PM: 3.536050081s 392.894453ms 719.644245ms 0 0 0 9 _default/single.html
5:25:32 PM: 3.144728348s 349.41426ms 404.250597ms 0 0 0 9 homepage/single.html
5:25:32 PM: 2.908641488s 363.580186ms 388.762514ms 0 0 0 8 shop/single.html
5:25:32 PM: 1.037450311s 20.749006ms 718.797607ms 49 0 0 50 partials/essentials/head.html
5:25:32 PM: 962.979434ms 19.259588ms 718.515425ms 53 0 0 50 partials/basic-seo.html
5:25:32 PM: 677.166941ms 677.166941ms 677.166941ms 0 0 0 1 shortcodes/gallery.html
5:25:32 PM: 674.603292ms 112.433882ms 239.215867ms 100 0 0 6 partials/image-pipe.html
5:25:32 PM: 413.386159ms 413.386159ms 413.386159ms 0 0 0 1 _default/404.html
5:25:32 PM: 397.047305ms 19.852365ms 393.246229ms 0 0 0 20 partials/essentials/style.html
5:25:32 PM: 336.074628ms 336.074628ms 336.074628ms 0 0 0 1 _default/search.html
5:25:32 PM: 335.266758ms 335.266758ms 335.266758ms 0 0 0 1 _default/about.html
5:25:32 PM: 323.418908ms 323.418908ms 323.418908ms 0 0 0 1 _default/contact.html
5:25:32 PM: 321.686186ms 321.686186ms 321.686186ms 0 0 0 1 author/single.html
5:25:32 PM: 302.166361ms 302.166361ms 302.166361ms 0 0 0 1 index.html
5:25:32 PM: 42.145792ms 860.118µs 17.688133ms 100 100 49 49 partials/favicon
5:25:32 PM: 16.74949ms 985.264µs 3.054254ms 0 0 0 17 _default/list.html
5:25:32 PM: 13.498181ms 13.498181ms 13.498181ms 0 0 0 1 partials/favicon.html
5:25:32 PM: 3.337619ms 66.752µs 209.344µs 100 0 0 50 partials/search-index.html
5:25:32 PM: 2.710631ms 2.710631ms 2.710631ms 0 0 0 1 shortcodes/image.html
5:25:32 PM: 1.770916ms 1.770916ms 1.770916ms 0 0 0 1 shop/list.html
5:25:32 PM: 242.671µs 30.333µs 150.9µs 0 0 0 8 _default/_markup/render-link.html
5:25:32 PM: 221.737µs 221.737µs 221.737µs 0 0 0 1 shortcodes/tabs.html
5:25:32 PM: 208.312µs 208.312µs 208.312µs 0 0 0 1 _internal/shortcodes/youtube.html
5:25:32 PM: 179.451µs 44.862µs 128.735µs 0 0 0 4 shortcodes/notice.html
5:25:32 PM: 158.935µs 52.978µs 98.374µs 0 0 0 3 shortcodes/accordion.html
5:25:32 PM: 152.231µs 152.231µs 152.231µs 0 0 0 1 shortcodes/quote.html
5:25:32 PM: 134.911µs 44.97µs 114.116µs 0 0 0 3 shortcodes/tab.html
5:25:32 PM: 122.718µs 2.454µs 60.489µs 100 98 49 50 partials/custom-script.html
5:25:32 PM: 121.864µs 121.864µs 121.864µs 0 0 0 1 shortcodes/video.html
5:25:32 PM: 120.05µs 120.05µs 120.05µs 0 0 0 1 shortcodes/toc.html
5:25:32 PM: 118.688µs 2.373µs 88.213µs 100 98 49 50 partials/matomo-analytics.html
5:25:32 PM: 118.256µs 2.365µs 90.486µs 100 98 49 50 partials/counter-analytics.html
5:25:32 PM: 113.007µs 113.007µs 113.007µs 0 0 0 1 shortcodes/button.html
5:25:32 PM: 104.115µs 2.082µs 70.947µs 100 98 49 50 partials/site-verifications.html
5:25:32 PM: 103.177µs 2.063µs 72.629µs 100 98 49 50 partials/gtm.html
5:25:32 PM: 100.57µs 2.011µs 73.908µs 100 98 49 50 partials/crisp-chat.html
5:25:32 PM: 97.243µs 97.243µs 97.243µs 0 0 0 1 partials/manifest.html
5:25:32 PM: 92.532µs 1.85µs 60.669µs 100 98 49 50 partials/plausible-analytics.html
5:25:32 PM: 88.528µs 88.528µs 88.528µs 0 0 0 1 shortcodes/codepen.html
5:25:32 PM: 83.399µs 1.667µs 55.096µs 100 98 49 50 partials/baidu-analytics.html
5:25:32 PM: 74.291µs 74.291µs 74.291µs 0 0 0 1 scss/style.scss
5:25:32 PM: 41.245µs 841ns 5.294µs 100 100 49 49 partials/manifest
5:25:32 PM: Total in 7714 ms
5:25:32 PM: Error: error building site: render: failed to render pages: render of "page" failed: "/opt/build/repo/themes/logbook-hugo/layouts/_default/baseof.html:13:9": execute of template failed: template: _default/404.html:13:9: executing "_default/404.html" at <partialCached "essentials/style.html" .>: error calling partialCached: "/opt/build/repo/themes/logbook-hugo/layouts/partials/essentials/style.html:43:25": execute of template failed: template: partials/essentials/style.html:43:25: executing "partials/essentials/style.html" at <css>: can't evaluate field PostCSS in type interface {}
error Command failed with exit code 1.
5:25:32 PM: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
5:25:32 PM: ​
5:25:32 PM: "build.command" failed
5:25:32 PM: ────────────────────────────────────────────────────────────────
5:25:32 PM: ​
5:25:32 PM: Error message
5:25:32 PM: Command failed with exit code 1: yarn project-setup && yarn build
5:25:32 PM: ​
5:25:32 PM: Error location
5:25:32 PM: In build.command from netlify.toml:
5:25:32 PM: yarn project-setup && yarn build
5:25:32 PM: ​
5:25:32 PM: Resolved config
5:25:32 PM: build:
5:25:32 PM: command: yarn project-setup && yarn build
5:25:32 PM: commandOrigin: config
5:25:32 PM: environment:
5:25:32 PM: - HUGO_VERSION
5:25:32 PM: - HUGO_BASEURL
5:25:32 PM: publish: /opt/build/repo/public
5:25:32 PM: publishOrigin: config
5:25:32 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
5:25:32 PM: Failing build: Failed to build site
5:25:33 PM: Finished processing build request in 33.9s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment