Deploy is failing after switching from Ubuntu Xenial 16.04 to Ubuntu Focal 20.04

Hi,
Recently my build image is switched to Ubuntu Focal 20.04 from Ubuntu Xenial 16.04
But now the deploy is failing.

Site name: dazzling-archimedes-f639d4
Deploys from [GitHub] (https://github.com/esterad-website/gatsby) with Gatsby.
Website: https://www.esterad.net/

Deploy URL: Netlify App

Build log:

2:10:42 PM: build-image version: d55944c047ef0aee2ac01971edde72cb2a50acfe (focal)
2:10:42 PM: build-image tag: v4.16.1
2:10:42 PM: buildbot version: 54c43bf6e2b5c9246a84788e30d1cb1a8806d36a
2:10:42 PM: Building without cache
2:10:42 PM: Starting to prepare the repo for build
2:10:43 PM: No cached dependencies found. Cloning fresh repo
2:10:43 PM: git clone https://github.com/esterad-website/gatsby
2:10:48 PM: Preparing Git Reference refs/heads/master
2:10:49 PM: Parsing package.json dependencies
2:10:50 PM: Starting build script
2:10:50 PM: Installing dependencies
2:10:50 PM: Python version set to 2.7
2:10:51 PM: Downloading and installing node v10.24.1...
2:10:51 PM: Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.xz...
2:10:51 PM: Computing checksum with sha256sum
2:10:51 PM: Checksums matched!
2:10:52 PM: Now using node v10.24.1 (npm v6.14.12)
2:10:52 PM: Started restoring cached build plugins
2:10:52 PM: Finished restoring cached build plugins
2:10:52 PM: Attempting ruby version 2.6.2, read from environment
2:10:53 PM: Required ruby-2.6.2 is not installed - installing.
2:10:53 PM: Searching for binary rubies, this might take some time.
2:10:53 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2
2:10:53 PM: Checking requirements for ubuntu.
2:10:53 PM: Requirements installation successful.
2:10:53 PM: ruby-2.6.2 - #configure
2:10:53 PM: ruby-2.6.2 - #download
2:10:54 PM: ruby-2.6.2 - #validate archive
2:10:57 PM: ruby-2.6.2 - #extract
2:10:59 PM: ruby-2.6.2 - #validate binary
2:10:59 PM: ruby-2.6.2 - #setup
2:11:00 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global
2:11:00 PM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
2:11:00 PM: ruby-2.6.2 - #generating global wrappers........
2:11:00 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2
2:11:00 PM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
2:11:01 PM: ruby-2.6.2 - #generating default wrappers........
2:11:01 PM: Using /opt/buildhome/.rvm/gems/ruby-2.6.2
2:11:01 PM: Using ruby version 2.6.2
2:11:01 PM: Using PHP version 8.0
2:11:01 PM: Started restoring cached yarn cache
2:11:01 PM: Finished restoring cached yarn cache
2:11:02 PM: Found yarn version (1.22.19) that doesn't match expected (1.17.0)up to date in 0.02s
2:11:02 PM: Installing yarn at version 1.17.0
2:11:02 PM: Installing Yarn!
2:11:02 PM: > Downloading tarball...
2:11:02 PM: [1/2]: https://yarnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz --> /tmp/yarn.tar.gz.WGum2S97By
2:11:02 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2:11:02 PM:                                  Dload  Upload   Total   Spent    Left  Speed
2:11:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2:11:03 PM: 100    79  100    79    0     0    652      0 --:--:-- --:--:-- --:--:--   652
2:11:03 PM: 100    93  100    93    0     0    381      0 --:--:-- --:--:-- --:--:--   381
2:11:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2:11:03 PM: 100 1213k  100 1213k    0     0  1816k      0 --:--:-- --:--:-- --:--:-- 1816k
2:11:03 PM: [2/2]: https://yarnpkg.com/downloads/1.17.0/yarn-v1.17.0.tar.gz.asc --> /tmp/yarn.tar.gz.WGum2S97By.asc
2:11:03 PM:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
2:11:03 PM:                                  Dload  Upload   Total   Spent    Left  Speed
2:11:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2:11:03 PM: 100    83  100    83    0     0   1202      0 --:--:-- --:--:-- --:--:--  1202
2:11:03 PM: 100    97  100    97    0     0    960      0 --:--:-- --:--:-- --:--:--   960
2:11:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2:11:03 PM:   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
2:11:03 PM: 100   832  100   832    0     0   3224      0 --:--:-- --:--:-- --:--:--  3224
2:11:03 PM: > Verifying integrity...
2:11:03 PM: gpg: Signature made Fri 14 Jun 2019 06:55:58 PM UTC
2:11:03 PM: gpg:                using RSA key 6D98490C6F1ACDDD448E45954F77679369475BAA
2:11:03 PM: gpg: Good signature from "Yarn Packaging <yarn@dan.cx>" [unknown]
2:11:03 PM: gpg: WARNING: This key is not certified with a trusted signature!
2:11:03 PM: gpg:          There is no indication that the signature belongs to the owner.
2:11:03 PM: Primary key fingerprint: 72EC F46A 56B4 AD39 C907  BBB7 1646 B01B 86E5 0310
2:11:03 PM:      Subkey fingerprint: 6D98 490C 6F1A CDDD 448E  4595 4F77 6793 6947 5BAA
2:11:03 PM: > GPG signature looks good
2:11:03 PM: > Extracting to ~/.yarn...
2:11:03 PM: > Adding to $PATH...
2:11:04 PM: > Successfully installed Yarn 1.17.0! Please open another terminal where the `yarn` command will now be available.
2:11:04 PM: No yarn workspaces detected
2:11:04 PM: Started restoring cached node modules
2:11:04 PM: Finished restoring cached node modules
2:11:04 PM: Installing NPM modules using Yarn version 1.17.0
2:11:04 PM: yarn install v1.17.0
2:11:04 PM: [1/4] Resolving packages...
2:11:05 PM: [2/4] Fetching packages...
2:11:21 PM: info fsevents@2.1.2: The platform "linux" is incompatible with this module.
2:11:21 PM: info "fsevents@2.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
2:11:21 PM: info fsevents@1.2.11: The platform "linux" is incompatible with this module.
2:11:21 PM: info "fsevents@1.2.11" is an optional dependency and failed compatibility check. Excluding it from installation.
2:11:21 PM: [3/4] Linking dependencies...
2:11:21 PM: warning "gatsby > react-hot-loader@4.12.20" has unmet peer dependency "@types/react@^15.0.0 || ^16.0.0".
2:11:21 PM: warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
2:11:21 PM: warning "gatsby-plugin-sass > sass-loader@7.3.1" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
2:11:21 PM: warning " > react-animate-on-scroll@2.1.5" has unmet peer dependency "classnames@^2.2.5".
2:11:21 PM: warning " > slick-carousel@1.8.1" has unmet peer dependency "jquery@>=1.8.0".
2:11:21 PM: warning " > eslint-config-airbnb@18.1.0" has unmet peer dependency "eslint-plugin-react-hooks@^2.5.0 || ^1.7.0".
2:11:21 PM: warning " > eslint-loader@3.0.3" has unmet peer dependency "webpack@^4.0.0 || ^5.0.0".
2:11:27 PM: [4/4] Building fresh packages...
2:11:42 PM: Done in 38.21s.
2:11:42 PM: NPM modules installed using Yarn
2:11:43 PM: Started restoring cached go cache
2:11:43 PM: Finished restoring cached go cache
2:11:43 PM: Installing Go version 1.12 (requested 1.12)
2:11:48 PM: unset GOOS;
2:11:48 PM: unset GOARCH;
2:11:48 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.12.linux.amd64';
2:11:48 PM: export PATH="/opt/buildhome/.gimme/versions/go1.12.linux.amd64/bin:${PATH}";
2:11:48 PM: go version >&2;
2:11:48 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.12.linux.amd64.env"
2:11:48 PM: go version go1.12 linux/amd64
2:11:49 PM: Detected 1 framework(s)
2:11:49 PM: "gatsby" at version "2.19.43"
2:11:49 PM: Installing missing commands
2:11:49 PM: Verify run directory
2:11:49 PM: Section completed: initializing
2:11:50 PM: ​
2:11:50 PM:   Netlify Build                                                 
2:11:50 PM: ────────────────────────────────────────────────────────────────
2:11:50 PM: ​
2:11:50 PM: ❯ Version
2:11:50 PM:   @netlify/build 29.2.1
2:11:50 PM: ​
2:11:50 PM: ❯ Flags
2:11:50 PM:   baseRelDir: true
2:11:50 PM:   buildId: 63b3e3008592e62e6a49e8ce
2:11:50 PM:   deployId: 63b3e3008592e62e6a49e8d0
2:11:50 PM: ​
2:11:50 PM: ❯ Current directory
2:11:50 PM:   /opt/build/repo
2:11:50 PM: ​
2:11:50 PM: ❯ Config file
2:11:50 PM:   No config file was defined: using default values.
2:11:50 PM: ​
2:11:50 PM: ❯ Context
2:11:50 PM:   production
2:11:50 PM: ​
2:11:50 PM:   1. Build command from Netlify app                             
2:11:50 PM: ────────────────────────────────────────────────────────────────
2:11:50 PM: ​
2:11:50 PM: $ gatsby build
2:11:51 PM: warning 
2:11:51 PM:   Replace Autoprefixer browsers option to Browserslist config.
2:11:51 PM:   Use browserslist key in package.json or .browserslistrc file.
2:11:51 PM: 
2:11:51 PM:   Using browsers option can cause errors. Browserslist config 
2:11:51 PM:   can be used for Babel, Autoprefixer, postcss-normalize and other tools.
2:11:51 PM: 
2:11:51 PM:   If you really need to use option, rename it to overrideBrowserslist.
2:11:51 PM: 
2:11:51 PM:   Learn more at:
2:11:51 PM:   https://github.com/browserslist/browserslist#readme
2:11:51 PM:   https://twitter.com/browserslist
2:11:51 PM: 
2:11:51 PM: 
2:11:51 PM: success open and validate gatsby-configs - 0.223s
2:11:52 PM: success load plugins - 0.487s
2:11:52 PM: success onPreInit - 0.002s
2:11:52 PM: success delete html and css files from previous builds - 0.008s
2:11:52 PM: success initialize cache - 0.004s
2:11:52 PM: success copy gatsby files - 0.019s
2:11:52 PM: success onPreBootstrap - 0.007s
2:11:52 PM: success createSchemaCustomization - 0.003s
2:11:52 PM: 
2:11:52 PM: =START PLUGIN=====================================
2:11:52 PM: Site URL: https://admin.esterad.net
2:11:52 PM: Site hosted on Wordpress.com: false
2:11:52 PM: Using ACF: true
2:11:52 PM: Auth: false
2:11:52 PM: Verbose output: true
2:11:52 PM: Mama Route URL: https://admin.esterad.net/index.php/wp-json
2:11:52 PM: 
2:11:53 PM: Detected ACF to REST namespace: acf/v2.
2:11:53 PM: Route discovered : /
2:11:53 PM: Excluded route: blacklisted
2:11:53 PM: Route discovered : /oembed/1.0
2:11:53 PM: Excluded route: blacklisted
2:11:53 PM: Route discovered : /oembed/1.0/embed
2:11:53 PM: Excluded route: blacklisted
2:11:53 PM: Route discovered : /oembed/1.0/proxy
2:11:53 PM: Excluded route: blacklisted
2:11:53 PM: Route discovered : /contact-form-7/v1
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /contact-form-7/v1/contact-forms
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /contact-form-7/v1/contact-forms/(?P<id>\d+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /contact-form-7/v1/contact-forms/(?P<id>\d+)/feedback
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /contact-form-7/v1/contact-forms/(?P<id>\d+)/refill
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /menus/v1
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /menus/v1/menus
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /menus/v1/menus/(?P<id>[a-zA-Z0-9_-]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /menus/v1/locations/(?P<id>[a-zA-Z0-9_-]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /menus/v1/locations
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /acf/v2
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /acf/v2/post/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/page/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/blocks/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/user/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/comment/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/term/(?P<taxonomy>[\w\-\_]+)/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/options/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /acf/v2/media/(?P<id>[\d]+)/?(?P<field>[\w\-\_]+)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wpgmza/v1
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/maps(\/\d+)?
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/markers/\d+
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/markers
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/markers/base64[A-Za-z0-9+\- ]+(={0,3})?(\/[A-Za-z0-9+\- ]+(={0,3})?)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wpgmza/v1/markers(\/\d+)?
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/datatables
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/datatables/base64[A-Za-z0-9+\- ]+(={0,3})?(\/[A-Za-z0-9+\- ]+(={0,3})?)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wpgmza/v1/geocode-cache
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/geocode-cache/base64[A-Za-z0-9+\- ]+(={0,3})?(\/[A-Za-z0-9+\- ]+(={0,3})?)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wpgmza/v1/decompress
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wpgmza/v1/decompress/base64[A-Za-z0-9+\- ]+(={0,3})?(\/[A-Za-z0-9+\- ]+(={0,3})?)?
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/posts
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/posts/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/posts/(?P<parent>[\d]+)/revisions
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/posts/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/posts/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/posts/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/pages
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/pages/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/pages/(?P<parent>[\d]+)/revisions
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/pages/(?P<parent>[\d]+)/revisions/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/pages/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/pages/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/media
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/media/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/media/(?P<id>[\d]+)/post-process
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/blocks
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/blocks/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/blocks/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/blocks/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/slider_directors
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/slider_directors/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/slider_directors/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/slider_directors/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/slider_managers
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/slider_managers/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/slider_managers/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/slider_managers/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/assets
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/assets/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/assets/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/assets/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/reports
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/reports/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/reports/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/reports/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/press_releases
2:11:53 PM: Valid route found. Will try to fetch.
2:11:53 PM: Route discovered : /wp/v2/press_releases/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/press_releases/(?P<id>[\d]+)/autosaves
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/press_releases/(?P<parent>[\d]+)/autosaves/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/types
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/types/(?P<type>[\w-]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/statuses
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/statuses/(?P<status>[\w-]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/taxonomies
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/taxonomies/(?P<taxonomy>[\w-]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/categories
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/categories/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/tags
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/tags/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/users
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/users/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/users/me
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/comments
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/comments/(?P<id>[\d]+)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/search
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>gutenberg-wpgmza/block)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/archives)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/block)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/calendar)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/categories)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/latest-comments)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/latest-posts)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/rss)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/search)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/shortcode)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/block-renderer/(?P<name>core/tag-cloud)
2:11:53 PM: Invalid route: detail route
2:11:53 PM: Route discovered : /wp/v2/settings
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: Route discovered : /wp/v2/themes
2:11:53 PM: Excluded route: not whitelisted
2:11:53 PM: 
2:11:53 PM: Fetching the JSON data from 9 valid API Routes...
2:11:53 PM: 
2:11:53 PM: === [ Fetching wordpress__acf_options ] === https://admin.esterad.net/index.php/wp-json/acf/v2/options/
2:11:53 PM:  -> wordpress__acf_options fetched : 1
2:11:53 PM: Fetching the wordpress__acf_options took: 466.533ms
2:11:53 PM: β €
2:11:53 PM: === [ Fetching wordpress__menus_menus ] === https://admin.esterad.net/index.php/wp-json/menus/v1/menus
2:11:54 PM: === [ Fetching wordpress__menus_menus_items ] === https://admin.esterad.net/index.php/wp-json/menus/v1/menus/9
2:11:54 PM:  -> wordpress__menus_menus_items fetched : 1
2:11:54 PM: Fetching the wordpress__menus_menus_items took: 459.810ms
2:11:54 PM: === [ Fetching wordpress__menus_menus_items ] === https://admin.esterad.net/index.php/wp-json/menus/v1/menus/10
2:11:55 PM:  -> wordpress__menus_menus_items fetched : 1
2:11:55 PM: Fetching the wordpress__menus_menus_items took: 575.384ms
2:11:55 PM:  -> wordpress__menus_menus fetched : 2
2:11:55 PM: Fetching the wordpress__menus_menus took: 1464.749ms
2:11:55 PM: β €
2:11:55 PM: === [ Fetching wordpress__POST ] === https://admin.esterad.net/index.php/wp-json/wp/v2/posts
2:11:56 PM:  -> wordpress__POST fetched : 48
2:11:56 PM: Fetching the wordpress__POST took: 962.829ms
2:11:56 PM: β €
2:11:56 PM: === [ Fetching wordpress__PAGE ] === https://admin.esterad.net/index.php/wp-json/wp/v2/pages
2:11:57 PM:  -> wordpress__PAGE fetched : 21
2:11:57 PM: Fetching the wordpress__PAGE took: 1495.685ms
2:11:57 PM: β €
2:11:57 PM: === [ Fetching wordpress__wp_slider_directors ] === https://admin.esterad.net/index.php/wp-json/wp/v2/slider_directors
2:11:58 PM:  -> wordpress__wp_slider_directors fetched : 16
2:11:58 PM: Fetching the wordpress__wp_slider_directors took: 532.825ms
2:11:58 PM: β €
2:11:58 PM: === [ Fetching wordpress__wp_slider_managers ] === https://admin.esterad.net/index.php/wp-json/wp/v2/slider_managers
2:11:58 PM:  -> wordpress__wp_slider_managers fetched : 10
2:11:58 PM: Fetching the wordpress__wp_slider_managers took: 476.967ms
2:11:58 PM: β €
2:11:58 PM: === [ Fetching wordpress__wp_assets ] === https://admin.esterad.net/index.php/wp-json/wp/v2/assets
2:11:59 PM:  -> wordpress__wp_assets fetched : 3
2:11:59 PM: Fetching the wordpress__wp_assets took: 445.913ms
2:11:59 PM: β €
2:11:59 PM: === [ Fetching wordpress__wp_reports ] === https://admin.esterad.net/index.php/wp-json/wp/v2/reports
2:11:59 PM: 
2:11:59 PM: Total entities : 122
2:11:59 PM: Pages to be requested : 2
2:12:00 PM:  -> wordpress__wp_reports fetched : 122
2:12:00 PM: Fetching the wordpress__wp_reports took: 1208.131ms
2:12:00 PM: β €
2:12:00 PM: === [ Fetching wordpress__wp_press_releases ] === https://admin.esterad.net/index.php/wp-json/wp/v2/press_releases
2:12:00 PM:  -> wordpress__wp_press_releases fetched : 56
2:12:00 PM: Fetching the wordpress__wp_press_releases took: 575.927ms
2:12:00 PM: β €
2:12:00 PM: =END PLUGIN=====================================: 8232.462ms
2:12:00 PM: success source and transform nodes - 8.410s
2:12:02 PM: success building schema - 1.237s
2:12:02 PM: success createPages - 0.079s
2:12:02 PM: success createPagesStatefully - 0.096s
2:12:02 PM: success onPreExtractQueries - 0.000s
2:12:02 PM: success update schema - 0.028s
2:12:02 PM: success extract queries from components - 0.552s
2:12:02 PM: success write out requires - 0.003s
2:12:02 PM: success write out redirect data - 0.001s
2:12:03 PM: success Build manifest and related icons - 0.110s
2:12:03 PM: success onPostBootstrap - 0.111s
2:12:03 PM: β €
2:12:03 PM: info bootstrap finished - 12.531 s
2:12:03 PM: β €
2:12:03 PM: error Failed to retrieve metadata from image /opt/build/repo/src/images/gatsby-astronaut.png Input file contains unsupported image format
2:12:03 PM: 
2:12:03 PM: 
2:12:03 PM:   Error: Input file contains unsupported image format
2:12:03 PM: 
2:12:03 PM: not finished run queries - 0.033s
2:12:03 PM: ​
2:12:03 PM:   "build.command" failed                                        
2:12:03 PM: ────────────────────────────────────────────────────────────────
2:12:03 PM: ​
2:12:03 PM:   Error message
2:12:03 PM:   Command failed with exit code 1: gatsby build (https://ntl.fyi/exit-code-1)
2:12:03 PM: ​
2:12:03 PM:   Error location
2:12:03 PM:   In Build command from Netlify app:
2:12:03 PM:   gatsby build
2:12:03 PM: ​
2:12:03 PM:   Resolved config
2:12:03 PM:   build:
2:12:03 PM:     command: gatsby build
2:12:03 PM:     commandOrigin: ui
2:12:03 PM:     publish: /opt/build/repo/public
2:12:03 PM:     publishOrigin: ui
2:12:03 PM: Caching artifacts
2:12:03 PM: Started saving node modules
2:12:03 PM: Finished saving node modules
2:12:03 PM: Started saving build plugins
2:12:03 PM: Finished saving build plugins
2:12:03 PM: Started saving yarn cache
2:12:06 PM: Finished saving yarn cache
2:12:06 PM: Started saving pip cache
2:12:06 PM: Finished saving pip cache
2:12:06 PM: Started saving emacs cask dependencies
2:12:06 PM: Finished saving emacs cask dependencies
2:12:06 PM: Started saving maven dependencies
2:12:07 PM: Finished saving maven dependencies
2:12:07 PM: Started saving boot dependencies
2:12:07 PM: Finished saving boot dependencies
2:12:07 PM: Started saving rust rustup cache
2:12:07 PM: Finished saving rust rustup cache
2:12:07 PM: Started saving go dependencies
2:12:07 PM: Finished saving go dependencies
2:12:07 PM: Cached ruby version 2.6.2
2:12:07 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:12:07 PM: Failing build: Failed to build site
2:12:08 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
2:12:08 PM: Finished processing build request in 1m25.370422934s

Hi @faisal95bd,

Thanks for reaching out!

Sorry to read about the issue with deploys failing after you switched to Ubuntu Focal.

Have you see this post:

Also, searching up the error that appears in the deploy log:

Error: Input file contains unsupported image format

I found this post from another customer. Does the solution work for you?

1 Like

– Update –

Seems like adding this below variable in the Netlify > Site settings> Build & deploy > Environment variables, fixed my issue

SHARP_IGNORE_GLOBAL_LIBVIPS=true

Hi @faisal95bd :wave:t6: , Welcome back to the forums! Thanks for letting us know what worked to resolve your issue here. We appreciate the feedback.