cncf / kubernetes-community-days

📅 Kubernetes Community Days website
https://www.cncf.io/kcds
Apache License 2.0
231 stars 98 forks source link

Netlify: select a new build image #448

Open nate-double-u opened 2 years ago

nate-double-u commented 2 years ago

Notice from Netlify

After November 15, 2022, builds for this site will fail unless you update the build image.

As reported via deploy logs:

DEPRECATION NOTICE: Builds using the Xenial build image will fail after November 15th, 2022.

The build image for this site uses Ubuntu 16.04 Xenial Xerus, which is no longer supported. All Netlify builds using the Xenial build image will begin failing in the week of November 15th, 2022.

To avoid service disruption, please select a newer build image at the following link: https://app.netlify.com/sites/etcd/settings/deploys#build-image-selection

For more details, visit the build image migration guide: https://answers.netlify.com/t/please-read-end-of-support-for-xenial-build-image-everything-you-need-to-know/68239

nate-double-u commented 1 year ago

As all the deploy preview builds appeared to be failing, I've updated the image:

Screenshot 2023-02-10 at 3 07 57 PM

However, now that builds are able to be run again, there is a build error with the new image:

3:09:53 PM: build-image version: 9495be345de05eb8e91837e5d92c5afd0dbd65f6 (focal)
3:09:53 PM: buildbot version: 9495be345de05eb8e91837e5d92c5afd0dbd65f6
3:09:53 PM: Fetching cached dependencies
3:09:53 PM: Failed to fetch cache, continuing with build
3:09:53 PM: Starting to prepare the repo for build
3:09:53 PM: No cached dependencies found. Cloning fresh repo
3:09:53 PM: git clone --filter=blob:none https://github.com/cncf/kubernetes-community-days
3:09:53 PM: Preparing Git Reference refs/heads/main
3:09:54 PM: Parsing package.json dependencies
3:09:55 PM: Starting build script
3:09:55 PM: Installing dependencies
3:09:55 PM: Python version set to 2.7
3:09:55 PM: Downloading and installing node v10.24.1...
3:09:55 PM: Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.xz...
3:09:56 PM: Computing checksum with sha256sum
3:09:56 PM: Checksums matched!
3:09:57 PM: Now using node v10.24.1 (npm v6.14.12)
3:09:57 PM: Started restoring cached build plugins
3:09:57 PM: Finished restoring cached build plugins
3:09:57 PM: Attempting Ruby version 2.6.2, read from environment
3:09:57 PM: Required ruby-2.6.2 is not installed - installing.
3:09:57 PM: Searching for binary rubies, this might take some time.
3:09:57 PM: Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.2.tar.bz2
3:09:57 PM: Checking requirements for ubuntu.
3:09:58 PM: Requirements installation successful.
3:09:58 PM: ruby-2.6.2 - #configure
3:09:58 PM: ruby-2.6.2 - #download
3:09:58 PM: ruby-2.6.2 - #validate archive
3:10:01 PM: ruby-2.6.2 - #extract
3:10:03 PM: ruby-2.6.2 - #validate binary
3:10:03 PM: ruby-2.6.2 - #setup
3:10:03 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2@global
3:10:03 PM: ruby-2.6.2 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
3:10:04 PM: ruby-2.6.2 - #generating global wrappers........
3:10:04 PM: ruby-2.6.2 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.6.2
3:10:04 PM: ruby-2.6.2 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
3:10:04 PM: ruby-2.6.2 - #generating default wrappers........
3:10:04 PM: Using /opt/buildhome/.rvm/gems/ruby-2.6.2
3:10:04 PM: Using Ruby version 2.6.2
3:10:05 PM: Using PHP version 8.0
3:10:05 PM: Started restoring cached go cache
3:10:05 PM: Finished restoring cached go cache
3:10:05 PM: Installing Go version 1.12 (requested 1.12)
3:10:09 PM: go version go1.12 linux/amd64
3:10:09 PM: Detected 0 framework(s)
3:10:09 PM: Installing missing commands
3:10:09 PM: Verify run directory
3:10:09 PM: Section completed: initializing
3:10:10 PM: ​
3:10:10 PM:   Netlify Build                                                 
3:10:10 PM: ────────────────────────────────────────────────────────────────
3:10:10 PM: ​
3:10:10 PM: ❯ Version
3:10:10 PM:   @netlify/build 29.5.4
3:10:10 PM: ​
3:10:10 PM: ❯ Flags
3:10:10 PM:   baseRelDir: false
3:10:10 PM:   buildId: 63e6cebca25c0f34e72a7341
3:10:10 PM:   deployId: 63e6cebca25c0f34e72a7343
3:10:10 PM: ​
3:10:10 PM: ❯ Current directory
3:10:10 PM:   /opt/build/repo
3:10:10 PM: ​
3:10:10 PM: ❯ Config file
3:10:10 PM:   No config file was defined: using default values.
3:10:10 PM: ​
3:10:10 PM: ❯ Context
3:10:10 PM:   branch-deploy
3:10:10 PM: ​
3:10:10 PM:   1. Build command from Netlify app                             
3:10:10 PM: ────────────────────────────────────────────────────────────────
3:10:10 PM: ​
3:10:10 PM: $ make production-build
3:10:10 PM: make: *** No rule to make target 'production-build'.  Stop.
3:10:10 PM: ​
3:10:10 PM:   "build.command" failed                                        
3:10:10 PM: ────────────────────────────────────────────────────────────────
3:10:10 PM: ​
3:10:10 PM:   Error message
3:10:10 PM:   Command failed with exit code 2: make production-build
3:10:10 PM: ​
3:10:10 PM:   Error location
3:10:10 PM:   In Build command from Netlify app:
3:10:10 PM:   make production-build
3:10:10 PM: ​
3:10:10 PM:   Resolved config
3:10:10 PM:   build:
3:10:10 PM:     command: make production-build
3:10:12 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2
3:10:10 PM:     commandOrigin: ui
3:10:10 PM:     publish: /opt/build/repo/public
3:10:10 PM:     publishOrigin: ui
3:10:11 PM: Caching artifacts
3:10:11 PM: Started saving build plugins
3:10:11 PM: Finished saving build plugins
3:10:11 PM: Started saving pip cache
3:10:11 PM: Finished saving pip cache
3:10:11 PM: Started saving emacs cask dependencies
3:10:11 PM: Finished saving emacs cask dependencies
3:10:11 PM: Started saving maven dependencies
3:10:11 PM: Finished saving maven dependencies
3:10:11 PM: Started saving boot dependencies
3:10:11 PM: Finished saving boot dependencies
3:10:11 PM: Started saving rust rustup cache
3:10:11 PM: Finished saving rust rustup cache
3:10:11 PM: Started saving go dependencies
3:10:11 PM: Finished saving go dependencies
3:10:12 PM: Cached Ruby version 2.6.2
3:10:12 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
3:10:12 PM: Failing build: Failed to build site
3:10:12 PM: Finished processing build request in 19.314s

https://app.netlify.com/sites/kubernetes-community-days/deploys/63e6cebca25c0f34e72a7343

I suspect there are some dependency updates that need to be made to fix the builds now.

nate-double-u commented 1 year ago

@xmulligan I'm not convinced this site is using Netlify for it's build. Do you know its stack?