Error: failed to render pages - Help with debugging

Hi all.

I am totally new to Netlify and my debugging attempts have gone to waste so far.
I am building a professional website using https://sourcethemes.com/academic/, but at the end, the site fails to deploy and I get the following error. I tried to debug it according to Build Gotchas article, as suggested, but I couldn’t identify the exact error and how to fix it.

12:04:15 AM: Build ready to start
12:04:17 AM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
12:04:17 AM: build-image tag: v3.3.2
12:04:17 AM: buildbot version: 75cd99f62ada9e21edea53208e8baf0eab85a045
12:04:17 AM: Fetching cached dependencies
12:04:17 AM: Starting to download cache of 103.4MB
12:04:17 AM: Finished downloading cache in 496.391848ms
12:04:17 AM: Starting to extract cache
12:04:20 AM: Finished extracting cache in 3.068135021s
12:04:20 AM: Finished fetching cache in 3.606117107s
12:04:20 AM: Starting to prepare the repo for build
12:04:21 AM: Preparing Git Reference refs/heads/master
12:04:22 AM: Found netlify.toml. Overriding site configuration
12:04:22 AM: Different publish path detected, going to use the one specified in the toml file: 'public' versus '/' in the site
12:04:22 AM: Different build command detected, going to use the one specified in the toml file: 'hugo --gc --minify -b $URL' versus '' in the site
12:04:22 AM: Starting build script
12:04:22 AM: Installing dependencies
12:04:23 AM: Started restoring cached node version
12:04:26 AM: Finished restoring cached node version
12:04:26 AM: v10.16.0 is already installed.
12:04:27 AM: Now using node v10.16.0 (npm v6.9.0)
12:04:28 AM: Attempting ruby version 2.6.2, read from environment
12:04:29 AM: Using ruby version 2.6.2
12:04:30 AM: Using PHP version 5.6
12:04:30 AM: Installing Hugo 0.55.6
12:04:30 AM: Hugo Static Site Generator v0.55.6-A5D4C82D2/extended linux/amd64 BuildDate: 2019-05-18T08:08:34Z
12:04:30 AM: Started restoring cached go cache
12:04:30 AM: Finished restoring cached go cache
12:04:30 AM: unset GOOS;
12:04:30 AM: unset GOARCH;
12:04:30 AM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
12:04:30 AM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
12:04:30 AM: go version >&2;
12:04:30 AM: export GIMME_ENV='/opt/buildhome/.gimme/env/go1.12.linux.amd64.env';
12:04:30 AM: go version go1.12 linux/amd64
12:04:30 AM: Installing missing commands
12:04:30 AM: Verify run directory
12:04:30 AM: Executing user command: hugo --gc --minify -b $URL
12:04:30 AM: Building sites …
12:04:31 AM: Total in 420 ms
12:04:31 AM: Error: Error building site: failed to render pages: render of "home" failed: execute of template failed: template: index.html:7:3: executing "main" at <partial "widget_page.html" .>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/widget_page.html:40:23": execute of template failed: template: partials/widget_page.html:71:9: executing "partials/widget_page.html" at <partial $widget_path $widget_args>: error calling partial: "/opt/build/repo/themes/academic/layouts/partials/widgets/experience.html:40:23": execute of template failed: template: partials/widgets/experience.html:40:23: executing "partials/widgets/experience.html" at <.date_start>: can't evaluate field Format in type *errors.errorString
12:04:31 AM: failed during stage 'building site': Build script returned non-zero exit code: 255
12:04:31 AM: Skipping functions preparation step: no functions directory set
12:04:31 AM: Caching artifacts
12:04:31 AM: Started saving pip cache
12:04:31 AM: Finished saving pip cache
12:04:31 AM: Shutting down logging, 11 messages pending

Every kind of help is highly appreciated.

Thank you in advance!

There’s a problem in partials/widgets/experience.html seems to be on line 40.
Looking at that widget and the error message, perhaps you didn’t format one of the date fields properly?

Either that, or there’s a problem with the date format your configured (or maybe you didn’t configure it?)

at <.date_start>: can't evaluate field Format in type *errors.errorString

Fixing the date format did the work! Thank you for your help!

2 Likes