11ty build failing with Ubuntu Nobile

I switched to Ubuntu Noble for the first time this morning and the build failed for my 11ty site with the following error:

9:07:33 AM: [11ty] Problem writing Eleventy templates:
9:07:33 AM: [11ty] 1. Having trouble rendering njk template ./fighters.njk (via TemplateContentRenderError)
9:07:33 AM: [11ty] 2. heifsave: Unsupported compression

There isn’t much in that template, just a name and image that loads with 11ty image. Is my 11ty image code likely to be the culprit? Or is it more like to be due to using HEIC images in the CMS and the build can’t process them somehow?

Full deploy log ↓

9:06:18 AM: build-image version: 09e1898b62f1787f28f3d49630f96c3fc8719129 (noble)
9:06:18 AM: buildbot version: 09e1898b62f1787f28f3d49630f96c3fc8719129
9:06:21 AM: Fetching cached dependencies
9:06:21 AM: Failed to fetch cache, continuing with build
9:06:21 AM: Starting to prepare the repo for build
9:06:22 AM: No cached dependencies found. Cloning fresh repo
9:06:22 AM: git clone --filter=blob:none https://github.com/derekjohnson/box-predict
9:06:22 AM: Preparing Git Reference refs/heads/main
9:06:47 AM: Custom edge functions path detected. Proceeding with the specified path: 'netlify/edge-functions'
9:06:48 AM: Starting to install dependencies
9:06:49 AM: Downloading and installing node v18.20.8...
9:06:49 AM: Downloading https://nodejs.org/dist/v18.20.8/node-v18.20.8-linux-x64.tar.xz...
9:06:49 AM: Computing checksum with sha256sum
9:06:49 AM: Checksums matched!
9:06:51 AM: Now using node v18.20.8 (npm v10.8.2)
9:06:51 AM: Enabling Node.js Corepack
9:06:51 AM: Started restoring cached build plugins
9:06:51 AM: Finished restoring cached build plugins
9:06:51 AM: Started restoring cached corepack dependencies
9:06:51 AM: Finished restoring cached corepack dependencies
9:06:51 AM: No npm workspaces detected
9:06:51 AM: Started restoring cached node modules
9:06:51 AM: Finished restoring cached node modules
9:06:51 AM: Installing npm packages using npm version 10.8.2
9:07:14 AM: added 304 packages in 22s
9:07:14 AM: npm packages installed
9:07:14 AM: Successfully installed dependencies
9:07:14 AM: Starting build script
9:07:15 AM: Detected 1 framework(s)
9:07:15 AM: "eleventy" at version "3.0.0"
9:07:15 AM: Section completed: initializing
9:07:16 AM: ​
9:07:16 AM: Netlify Build                                                 
9:07:16 AM: ────────────────────────────────────────────────────────────────
9:07:16 AM: ​
9:07:16 AM: ❯ Version
9:07:16 AM:   @netlify/build 34.3.0
9:07:16 AM: ​
9:07:16 AM: ❯ Flags
9:07:16 AM:   accountId: 5b48a17e73f2cf1ae1a0365d
9:07:16 AM:   baseRelDir: true
9:07:16 AM:   buildId: 6881e977709d14000846ad20
9:07:16 AM:   deployId: 6881e977709d14000846ad22
9:07:16 AM: ​
9:07:16 AM: ❯ Current directory
9:07:16 AM:   /opt/build/repo
9:07:16 AM: ​
9:07:16 AM: ❯ Config file
9:07:16 AM:   No config file was defined: using default values.
9:07:16 AM: ​
9:07:16 AM: ❯ Context
9:07:16 AM:   production
9:07:16 AM: ​
9:07:16 AM: ❯ Installing plugins
9:07:16 AM:    - @netlify/plugin-lighthouse@6.0.1
9:07:28 AM: ​
9:07:28 AM: ❯ Loading plugins
9:07:28 AM:    - @netlify/plugin-lighthouse@6.0.1 from Netlify app
9:07:30 AM: ​
9:07:30 AM: Build command from Netlify app                                
9:07:30 AM: ────────────────────────────────────────────────────────────────
9:07:30 AM: ​
9:07:30 AM: $ eleventy
9:07:33 AM: 2025-07-24T08:07:33.620Z EleventyImg Cache miss for '{"cacheDuration":"1d","cacheOptions":{},"concurrency":10,"dryRun":false,"extensions":{},"filenameFormat":null,"formatHooks":{},"formats":["jpeg","webp","avif"],"hashLength":10,"outputDir":"./_site/images/","remoteImageMetadata":{},"sharpAvifOptions":{},"sharpJpegOptions":{"quality":50},"sharpOptions":{},"sharpPngOptions":{},"sharpWebpOptions":{},"statsOnly":false,"svgAllowUpscale":true,"svgCompressionSize":"","svgShortCircuit":false,"urlFormat":null,"urlPath":"/images/","useCache":true,"useCacheValidityInHash":true,"widths":[650],"__originalSrc":"./images/img_4496.png","__originalSize":37027}'
9:07:33 AM: 2025-07-24T08:07:33.621Z EleventyImg In-memory cache miss for './images/img_4496.png', options: { widths: [ 650 ], formats: [ 'jpeg', 'webp', 'avif' ], urlPath: '/images/', outputDir: './_site/images/', sharpJpegOptions: { quality: 50 } }
9:07:33 AM: 2025-07-24T08:07:33.621Z EleventyImg Concurrency: 10, Size: 0, Pending: 0
9:07:33 AM: 2025-07-24T08:07:33.622Z EleventyImg Added '{"cacheDuration":"1d","cacheOptions":{},"concurrency":10,"dryRun":false,"extensions":{},"filenameFormat":null,"formatHooks":{},"formats":["jpeg","webp","avif"],"hashLength":10,"outputDir":"./_site/images/","remoteImageMetadata":{},"sharpAvifOptions":{},"sharpJpegOptions":{"quality":50},"sharpOptions":{},"sharpPngOptions":{},"sharpWebpOptions":{},"statsOnly":false,"svgAllowUpscale":true,"svgCompressionSize":"","svgShortCircuit":false,"urlFormat":null,"urlPath":"/images/","useCache":true,"useCacheValidityInHash":true,"widths":[650],"__originalSrc":"./images/img_4496.png","__originalSize":37027}' to cache (size: 1)
9:07:33 AM: 2025-07-24T08:07:33.629Z EleventyImg Reading from file system: './images/img_4496.png'
9:07:33 AM: 2025-07-24T08:07:33.630Z EleventyImg Re-using computed hash for './images/img_4496.png': '6tjPZA-2qm'
9:07:33 AM: 2025-07-24T08:07:33.630Z EleventyImg Re-using computed hash for './images/img_4496.png': '6tjPZA-2qm'
9:07:33 AM: 2025-07-24T08:07:33.642Z EleventyImg Wrote '_site/images/6tjPZA-2qm-128.jpeg'
9:07:33 AM: 2025-07-24T08:07:33.665Z EleventyImg Wrote '_site/images/6tjPZA-2qm-128.webp'
9:07:33 AM: 2025-07-24T08:07:33.685Z EleventyImg Wrote '_site/images/6tjPZA-2qm-128.avif'
9:07:33 AM: [11ty] Problem writing Eleventy templates:
9:07:33 AM: [11ty] 1. Having trouble rendering njk template ./fighters.njk (via TemplateContentRenderError)
9:07:33 AM: [11ty] 2. heifsave: Unsupported compression
9:07:33 AM: [11ty] Copied 55 Wrote 0 files in 3.16 seconds (v3.0.0)
9:07:34 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
9:07:34 AM: ​
9:07:34 AM: "build.command" failed                                        
9:07:34 AM: ────────────────────────────────────────────────────────────────
9:07:34 AM: ​
9:07:34 AM:   Error message
9:07:34 AM:   Command failed with exit code 1: eleventy (https://ntl.fyi/exit-code-1)
9:07:34 AM: ​
9:07:34 AM:   Error location
9:07:34 AM:   In Build command from Netlify app:
9:07:34 AM:   eleventy
9:07:34 AM: ​
9:07:34 AM:   Resolved config
9:07:34 AM:   build:
9:07:34 AM:     command: eleventy
9:07:34 AM:     commandOrigin: ui
9:07:34 AM:     edge_functions: /opt/build/repo/netlify/edge-functions
9:07:34 AM:     environment:
9:07:34 AM:       - CLOUDINARY_CLOUD_NAME
9:07:34 AM:       - DEBUG
9:07:34 AM:     publish: /opt/build/repo/_site
9:07:34 AM:     publishOrigin: ui
9:07:34 AM:   plugins:
9:07:34 AM:     - inputs: {}
9:07:34 AM:       origin: ui
9:07:34 AM:       package: "@netlify/plugin-lighthouse"
9:07:34 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:07:34 AM: Failing build: Failed to build site
9:07:35 AM: Finished processing build request in 1m17.008s

Hi, @derekjohnson . There isn’t enough information in the error message to say from it alone what the reason for the failed build was. I would recommend addressing both issues mentioned in the error logs as it is possible they are both preventing the build from succeeding.

If there are follow-up questions, please let us know.