Auto deploy always fail (from GitHub) but manually clear cache & retry always works

Hello,

Since few weeks (months?) now, every PR or commit pushed to master fail to automatically deploy on Netlify.
But when I do a manual “clear cache and retry” it always works from the Netlify console.

Here is a failing build:

Full log
9:56:40 AM: build-image version: a66d98133c6610c76fed63f8e57709f519467750 (focal)
9:56:40 AM: buildbot version: a66d98133c6610c76fed63f8e57709f519467750
9:56:40 AM: Fetching cached dependencies
9:56:40 AM: Starting to download cache of 127.7MB
9:56:41 AM: Finished downloading cache in 1.291s
9:56:41 AM: Starting to extract cache
9:56:42 AM: Finished extracting cache in 882ms
9:56:42 AM: Finished fetching cache in 2.237s
9:56:42 AM: Starting to prepare the repo for build
9:56:42 AM: Preparing Git Reference pull/135/head
9:56:44 AM: Starting to install dependencies
9:56:44 AM: Python version set to 3.8
9:56:44 AM: Attempting Ruby version 2.7.8, read from environment
9:56:44 AM: Started restoring cached Ruby version
9:56:44 AM: Finished restoring cached Ruby version
9:56:45 AM: Using Ruby version 2.7.8
9:56:45 AM: Using Bundler version 1.17.3 from Gemfile.lock
9:56:46 AM: Started restoring cached ruby gems
9:56:46 AM: Finished restoring cached ruby gems
9:56:46 AM: Installing gem bundle
9:56:47 AM: Fetching gem metadata from https://rubygems.org/.........
9:56:47 AM: Using concurrent-ruby 1.2.2
9:56:47 AM: Fetching i18n 1.14.1
9:56:47 AM: Installing i18n 1.14.1
9:56:47 AM: Using minitest 5.14.1
9:56:47 AM: Using thread_safe 0.3.6
9:56:47 AM: Using tzinfo 1.2.10
9:56:47 AM: Using activesupport 5.2.4.3
9:56:47 AM: Using public_suffix 5.0.1
9:56:47 AM: Using addressable 2.8.4
9:56:47 AM: Using httpclient 2.8.3
9:56:47 AM: Using json 2.3.1
9:56:47 AM: Using algoliasearch 1.27.5
9:56:47 AM: Using bundler 1.17.3
9:56:47 AM: Using fast-stemmer 1.0.2
9:56:47 AM: Using matrix 0.4.2
9:56:47 AM: Using classifier-reborn 2.3.0
9:56:47 AM: Using colorator 1.1.0
9:56:47 AM: Using crass 1.0.6
9:56:47 AM: Using eventmachine 1.2.7
9:56:47 AM: Using http_parser.rb 0.8.0
9:56:47 AM: Using em-websocket 0.5.3
9:56:47 AM: Using execjs 2.7.0
9:56:47 AM: Using forwardable-extended 2.6.0
9:56:47 AM: Using extras 0.3.0
9:56:47 AM: Using fastimage 2.1.7
9:56:47 AM: Using ffi 1.15.5
9:56:48 AM: Using flickraw 0.9.10
9:56:48 AM: Using gsl 2.1.0.3
9:56:48 AM: Using rb-fsevent 0.11.2
9:56:48 AM: Using rb-inotify 0.10.1
9:56:48 AM: Using sass-listen 4.0.0
9:56:48 AM: Using sass 3.7.4
9:56:48 AM: Using jekyll-sass-converter 1.5.2
9:56:48 AM: Using listen 3.8.0
9:56:48 AM: Using jekyll-watch 2.2.1
9:56:48 AM: Using rexml 3.2.5
9:56:48 AM: Using kramdown 2.4.0
9:56:48 AM: Using liquid 4.0.4
9:56:48 AM: Using mercenary 0.3.6
9:56:48 AM: Using pathutil 0.16.2
9:56:48 AM: Using rouge 3.30.0
9:56:48 AM: Using safe_yaml 1.0.5
9:56:48 AM: Using jekyll 3.9.3
9:56:48 AM: Using jekyll-sanity 1.2.0
9:56:48 AM: Using liquid-tag-parser 1.9.0
9:56:48 AM: Using mini_portile2 2.8.2
9:56:48 AM: Using racc 1.6.2
9:56:48 AM: Fetching nokogiri 1.15.2 (x86_64-linux)
9:56:48 AM: Installing nokogiri 1.15.2 (x86_64-linux)
9:56:48 AM: Using rack 2.2.7
9:56:48 AM: Using sprockets 3.7.2
9:56:48 AM: Using jekyll-assets 3.0.12
9:56:48 AM: Using jekyll-paginate 1.1.0
9:56:48 AM: Using jekyll-sitemap 1.4.0
9:56:48 AM: Fetching loofah 2.21.3
9:56:48 AM: Installing loofah 2.21.3
9:56:48 AM: Fetching rails-html-sanitizer 1.6.0
9:56:48 AM: Installing rails-html-sanitizer 1.6.0
9:56:48 AM: Using redcarpet 3.6.0
9:56:48 AM: Using uglifier 4.2.0
9:56:48 AM: Bundle complete! 14 Gemfile dependencies, 56 gems now installed.
9:56:48 AM: Bundled gems are installed into `/opt/build/cache/bundle`
9:56:48 AM: Gem bundle installed
9:56:48 AM: Started restoring cached go cache
9:56:48 AM: Finished restoring cached go cache
9:56:48 AM: Installing Go version 1.12 (requested 1.12)
9:56:52 AM: go version go1.12 linux/amd64
9:56:53 AM: Using PHP version 8.0
9:56:53 AM: Started restoring cached Node.js version
9:56:54 AM: Finished restoring cached Node.js version
9:56:54 AM: v10.24.1 is already installed.
9:56:55 AM: Now using node v10.24.1 (npm v6.14.12)
9:56:55 AM: Started restoring cached build plugins
9:56:55 AM: Finished restoring cached build plugins
9:56:55 AM: Install dependencies script success
9:56:55 AM: Starting build script
9:56:56 AM: Detected 0 framework(s)
9:56:56 AM: Section completed: initializing
9:56:57 AM: ​
9:56:57 AM: Netlify Build                                                 
9:56:57 AM: ────────────────────────────────────────────────────────────────
9:56:57 AM: ​
9:56:57 AM: ❯ Version
9:56:57 AM:   @netlify/build 29.11.7
9:56:57 AM: ​
9:56:57 AM: ❯ Flags
9:56:57 AM:   baseRelDir: false
9:56:57 AM:   buildId: 647d95360939cc0008cfd64d
9:56:57 AM:   deployId: 647d95360939cc0008cfd64f
9:56:57 AM: ​
9:56:57 AM: ❯ Current directory
9:56:57 AM:   /opt/build/repo
9:56:57 AM: ​
9:56:57 AM: ❯ Config file
9:56:57 AM:   No config file was defined: using default values.
9:56:57 AM: ​
9:56:57 AM: ❯ Context
9:56:57 AM:   deploy-preview
9:56:57 AM: ​
9:56:57 AM: Build command from Netlify app                                
9:56:57 AM: ────────────────────────────────────────────────────────────────
9:56:57 AM: ​
9:56:57 AM: $ cp _config.yml.dist _config.yml && rake site:build && jekyll build
9:56:58 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
9:56:58 AM: /opt/buildhome/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/rubygems.rb:277:in `find_spec_for_exe': can't find gem rake (>= 0.a) with executable rake (Gem::GemNotFoundException)
	from /opt/buildhome/.rvm/rubies/ruby-2.7.8/lib/ruby/2.7.0/rubygems.rb:296:in `activate_bin_path'
	from /opt/buildhome/.rvm/rubies/ruby-2.7.8/bin/rake:29:in `<main>'
​
9:56:58 AM: "build.command" failed                                        
9:56:58 AM: ────────────────────────────────────────────────────────────────
9:56:58 AM: ​
9:56:58 AM:   Error message
9:56:58 AM:   Command failed with exit code 1: cp _config.yml.dist _config.yml && rake site:build && jekyll build (https://ntl.fyi/exit-code-1)
9:56:58 AM: ​
9:56:58 AM:   Error location
9:56:58 AM:   In Build command from Netlify app:
9:56:58 AM:   cp _config.yml.dist _config.yml && rake site:build && jekyll build
9:56:58 AM: ​
9:56:58 AM:   Resolved config
9:56:58 AM:   build:
9:56:58 AM:     command: cp _config.yml.dist _config.yml && rake site:build && jekyll build
9:56:58 AM:     commandOrigin: ui
9:56:58 AM:     environment:
9:56:58 AM:       - ALGOLIA_API_KEY
9:56:58 AM:       - ALGOLIA_APP_ID
9:56:58 AM:       - FLICKR_ACCESS_SECRET
9:56:58 AM:       - FLICKR_ACCESS_TOKEN
9:56:58 AM:       - FLICKR_API_KEY
9:56:58 AM:       - FLICKR_CACHE_ZIP_URL
9:56:58 AM:       - FLICKR_SHARED_SECRET
9:56:58 AM:       - REVIEW_ID
9:56:58 AM:       - RUBY_VERSION
9:56:58 AM:     publish: /opt/build/repo/_site
9:56:58 AM:     publishOrigin: ui
9:56:58 AM: Caching artifacts
9:56:58 AM: Started saving ruby gems
9:56:58 AM: Finished saving ruby gems
9:56:58 AM: Started saving build plugins
9:56:58 AM: Finished saving build plugins
9:56:58 AM: Started saving pip cache
9:56:58 AM: Finished saving pip cache
9:56:58 AM: Started saving emacs cask dependencies
9:56:58 AM: Finished saving emacs cask dependencies
9:56:58 AM: Started saving maven dependencies
9:56:58 AM: Finished saving maven dependencies
9:56:58 AM: Started saving boot dependencies
9:56:58 AM: Finished saving boot dependencies
9:56:58 AM: Started saving rust rustup cache
9:56:58 AM: Finished saving rust rustup cache
9:56:58 AM: Started saving go dependencies
9:56:58 AM: Finished saving go dependencies
9:56:58 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
9:56:58 AM: Failing build: Failed to build site
9:56:59 AM: Finished processing build request in 18.932s

And here is a working build when clearing cache manually (image posted as a link because I can’t embed more than one media).

Full log
10:23:50 AM: build-image version: a66d98133c6610c76fed63f8e57709f519467750 (focal)
10:23:50 AM: buildbot version: a66d98133c6610c76fed63f8e57709f519467750
10:23:50 AM: Building without cache
10:23:50 AM: Starting to prepare the repo for build
10:23:51 AM: No cached dependencies found. Cloning fresh repo
10:23:51 AM: git clone --filter=blob:none https://github.com/j0k3r/wildtrip-blog
10:23:51 AM: Preparing Git Reference refs/heads/blog
10:23:53 AM: Starting to install dependencies
10:23:53 AM: Python version set to 3.8
10:23:53 AM: Attempting Ruby version 2.7.8, read from environment
10:23:54 AM: Required ruby-2.7.8 is not installed - installing.
10:23:54 AM: Searching for binary rubies, this might take some time.
10:23:55 AM: Found remote file https://rubies.travis-ci.org/ubuntu/20.04/x86_64/ruby-2.7.8.tar.bz2
10:23:55 AM: Checking requirements for ubuntu.
10:23:55 AM: Requirements installation successful.
10:23:56 AM: ruby-2.7.8 - #configure
10:23:56 AM: ruby-2.7.8 - #download
10:23:57 AM: No checksum for downloaded archive, recording checksum in user configuration.
10:23:57 AM: ruby-2.7.8 - #validate archive
10:23:59 AM: ruby-2.7.8 - #extract
10:24:01 AM: ruby-2.7.8 - #validate binary
10:24:01 AM: ruby-2.7.8 - #setup
10:24:01 AM: ruby-2.7.8 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.8@global
10:24:01 AM: ruby-2.7.8 - #importing gemset /opt/buildhome/.rvm/gemsets/global.gems........................................
10:24:02 AM: ruby-2.7.8 - #generating global wrappers........
10:24:02 AM: ruby-2.7.8 - #gemset created /opt/buildhome/.rvm/gems/ruby-2.7.8
10:24:02 AM: ruby-2.7.8 - #importing gemsetfile /opt/buildhome/.rvm/gemsets/default.gems evaluated to empty gem list
10:24:02 AM: ruby-2.7.8 - #generating default wrappers........
10:24:02 AM: Using /opt/buildhome/.rvm/gems/ruby-2.7.8
10:24:03 AM: Using Ruby version 2.7.8
10:24:03 AM: Using Bundler version 1.17.3 from Gemfile.lock
10:24:15 AM: Successfully installed bundler-1.17.3
10:24:15 AM: 1 gem installed
10:24:15 AM: Started restoring cached ruby gems
10:24:15 AM: Finished restoring cached ruby gems
10:24:15 AM: Installing gem bundle
10:24:17 AM: Fetching gem metadata from https://rubygems.org/.........
10:24:17 AM: Fetching concurrent-ruby 1.2.2
10:24:17 AM: Installing concurrent-ruby 1.2.2
10:24:17 AM: Fetching i18n 1.14.0
10:24:17 AM: Installing i18n 1.14.0
10:24:17 AM: Fetching minitest 5.14.1
10:24:17 AM: Installing minitest 5.14.1
10:24:17 AM: Fetching thread_safe 0.3.6
10:24:17 AM: Installing thread_safe 0.3.6
10:24:17 AM: Fetching tzinfo 1.2.10
10:24:17 AM: Installing tzinfo 1.2.10
10:24:17 AM: Fetching activesupport 5.2.4.3
10:24:17 AM: Installing activesupport 5.2.4.3
10:24:17 AM: Fetching public_suffix 5.0.1
10:24:17 AM: Installing public_suffix 5.0.1
10:24:17 AM: Fetching addressable 2.8.4
10:24:17 AM: Installing addressable 2.8.4
10:24:17 AM: Fetching httpclient 2.8.3
10:24:18 AM: Installing httpclient 2.8.3
10:24:18 AM: Fetching json 2.3.1
10:24:18 AM: Installing json 2.3.1 with native extensions
10:24:19 AM: Fetching algoliasearch 1.27.5
10:24:19 AM: Installing algoliasearch 1.27.5
10:24:19 AM: Using bundler 1.17.3
10:24:19 AM: Fetching fast-stemmer 1.0.2
10:24:20 AM: Installing fast-stemmer 1.0.2 with native extensions
10:24:20 AM: Fetching matrix 0.4.2
10:24:20 AM: Installing matrix 0.4.2
10:24:20 AM: Fetching classifier-reborn 2.3.0
10:24:20 AM: Installing classifier-reborn 2.3.0
10:24:20 AM: Fetching colorator 1.1.0
10:24:20 AM: Installing colorator 1.1.0
10:24:20 AM: Fetching crass 1.0.6
10:24:20 AM: Installing crass 1.0.6
10:24:20 AM: Fetching eventmachine 1.2.7
10:24:20 AM: Installing eventmachine 1.2.7 with native extensions
10:24:32 AM: Fetching http_parser.rb 0.8.0
10:24:32 AM: Installing http_parser.rb 0.8.0 with native extensions
10:24:33 AM: Fetching em-websocket 0.5.3
10:24:33 AM: Installing em-websocket 0.5.3
10:24:33 AM: Fetching execjs 2.7.0
10:24:33 AM: Installing execjs 2.7.0
10:24:33 AM: Fetching forwardable-extended 2.6.0
10:24:33 AM: Installing forwardable-extended 2.6.0
10:24:33 AM: Fetching extras 0.3.0
10:24:33 AM: Installing extras 0.3.0
10:24:33 AM: Fetching fastimage 2.1.7
10:24:34 AM: Installing fastimage 2.1.7
10:24:34 AM: Fetching ffi 1.15.5
10:24:34 AM: Installing ffi 1.15.5 with native extensions
10:24:39 AM: Fetching flickraw 0.9.10
10:24:39 AM: Installing flickraw 0.9.10
10:24:39 AM: Fetching gsl 2.1.0.3
10:24:39 AM: Installing gsl 2.1.0.3 with native extensions
10:25:14 AM: Fetching rb-fsevent 0.11.2
10:25:14 AM: Installing rb-fsevent 0.11.2
10:25:14 AM: Fetching rb-inotify 0.10.1
10:25:14 AM: Installing rb-inotify 0.10.1
10:25:14 AM: Fetching sass-listen 4.0.0
10:25:14 AM: Installing sass-listen 4.0.0
10:25:14 AM: Fetching sass 3.7.4
10:25:14 AM: Installing sass 3.7.4
10:25:14 AM: Fetching jekyll-sass-converter 1.5.2
10:25:14 AM: Installing jekyll-sass-converter 1.5.2
10:25:14 AM: Fetching listen 3.8.0
10:25:14 AM: Installing listen 3.8.0
10:25:14 AM: Fetching jekyll-watch 2.2.1
10:25:14 AM: Installing jekyll-watch 2.2.1
10:25:14 AM: Fetching rexml 3.2.5
10:25:14 AM: Installing rexml 3.2.5
10:25:14 AM: Fetching kramdown 2.4.0
10:25:14 AM: Installing kramdown 2.4.0
10:25:15 AM: Fetching liquid 4.0.4
10:25:15 AM: Installing liquid 4.0.4
10:25:15 AM: Fetching mercenary 0.3.6
10:25:15 AM: Installing mercenary 0.3.6
10:25:15 AM: Fetching pathutil 0.16.2
10:25:15 AM: Installing pathutil 0.16.2
10:25:15 AM: Fetching rouge 3.30.0
10:25:15 AM: Installing rouge 3.30.0
10:25:15 AM: Fetching safe_yaml 1.0.5
10:25:15 AM: Installing safe_yaml 1.0.5
10:25:15 AM: Fetching jekyll 3.9.3
10:25:15 AM: Installing jekyll 3.9.3
10:25:15 AM: Fetching jekyll-sanity 1.2.0
10:25:15 AM: Installing jekyll-sanity 1.2.0
10:25:15 AM: Fetching liquid-tag-parser 1.9.0
10:25:15 AM: Installing liquid-tag-parser 1.9.0
10:25:15 AM: Fetching mini_portile2 2.8.2
10:25:15 AM: Installing mini_portile2 2.8.2
10:25:15 AM: Fetching racc 1.6.2
10:25:15 AM: Installing racc 1.6.2 with native extensions
10:25:16 AM: Fetching nokogiri 1.15.2 (x86_64-linux)
10:25:16 AM: Installing nokogiri 1.15.2 (x86_64-linux)
10:25:17 AM: Fetching rack 2.2.7
10:25:17 AM: Installing rack 2.2.7
10:25:17 AM: Fetching sprockets 3.7.2
10:25:17 AM: Installing sprockets 3.7.2
10:25:17 AM: Fetching jekyll-assets 3.0.12
10:25:17 AM: Installing jekyll-assets 3.0.12
10:25:17 AM: Fetching jekyll-paginate 1.1.0
10:25:17 AM: Installing jekyll-paginate 1.1.0
10:25:17 AM: Fetching jekyll-sitemap 1.4.0
10:25:17 AM: Installing jekyll-sitemap 1.4.0
10:25:17 AM: Fetching loofah 2.21.3
10:25:17 AM: Installing loofah 2.21.3
10:25:17 AM: Fetching rails-html-sanitizer 1.6.0
10:25:17 AM: Installing rails-html-sanitizer 1.6.0
10:25:17 AM: Fetching redcarpet 3.6.0
10:25:17 AM: Installing redcarpet 3.6.0 with native extensions
10:25:20 AM: Fetching uglifier 4.2.0
10:25:20 AM: Installing uglifier 4.2.0
10:25:20 AM: Bundle complete! 14 Gemfile dependencies, 56 gems now installed.
10:25:20 AM: Bundled gems are installed into `/opt/build/cache/bundle`
10:25:20 AM: Post-install message from algoliasearch:
10:25:20 AM: A new major version is available for Algolia! Please now use the https://rubygems.org/gems/algolia gem to get the latest features.
10:25:20 AM: Post-install message from gsl:
10:25:20 AM:     gsl can be installed with or without narray support. Please install
10:25:20 AM:     narray before and reinstall gsl if it is missing.
10:25:20 AM:     gsl is also now compatible with NMatrix. Please install nmatrix before
10:25:20 AM:     installing gsl.
10:25:20 AM:   Post-install message from sass:
10:25:20 AM: Ruby Sass has reached end-of-life and should no longer be used.
10:25:20 AM: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
10:25:20 AM:   primary implementation: https://sass-lang.com/install
10:25:20 AM: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
10:25:20 AM:   sassc gem: https://github.com/sass/sassc-ruby#readme
10:25:20 AM: * For more details, please refer to the Sass blog:
10:25:20 AM:   https://sass-lang.com/blog/posts/7828841
10:25:20 AM: Gem bundle installed
10:25:20 AM: Started restoring cached go cache
10:25:20 AM: Finished restoring cached go cache
10:25:20 AM: Installing Go version 1.12 (requested 1.12)
10:25:24 AM: go version go1.12 linux/amd64
10:25:24 AM: Using PHP version 8.0
10:25:25 AM: Downloading and installing node v10.24.1...
10:25:25 AM: Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.xz...
10:25:25 AM: Computing checksum with sha256sum
10:25:26 AM: Checksums matched!
10:25:27 AM: Now using node v10.24.1 (npm v6.14.12)
10:25:27 AM: Started restoring cached build plugins
10:25:27 AM: Finished restoring cached build plugins
10:25:27 AM: Install dependencies script success
10:25:27 AM: Starting build script
10:25:28 AM: Detected 0 framework(s)
10:25:28 AM: Section completed: initializing
10:25:29 AM: ​
10:25:29 AM: Netlify Build                                                 
10:25:29 AM: ────────────────────────────────────────────────────────────────
10:25:29 AM: ​
10:25:29 AM: ❯ Version
10:25:29 AM:   @netlify/build 29.11.7
10:25:29 AM: ​
10:25:29 AM: ❯ Flags
10:25:29 AM:   baseRelDir: false
10:25:29 AM:   buildId: 647d9b958261883ff0cdbebd
10:25:29 AM:   deployId: 647d9b958261883ff0cdbebf
10:25:29 AM: ​
10:25:29 AM: ❯ Current directory
10:25:29 AM:   /opt/build/repo
10:25:29 AM: ​
10:25:29 AM: ❯ Config file
10:25:29 AM:   No config file was defined: using default values.
10:25:29 AM: ​
10:25:29 AM: ❯ Context
10:25:29 AM:   production
10:25:29 AM: ​
10:25:29 AM: Build command from Netlify app                                
10:25:29 AM: ────────────────────────────────────────────────────────────────
10:25:29 AM: ​
10:25:29 AM: $ cp _config.yml.dist _config.yml && rake site:build && jekyll build
10:25:30 AM:        Deprecation: You appear to have pagination turned on, but you haven't included the `jekyll-paginate` gem. Ensure you have `plugins: [jekyll-paginate]` in your configuration file.
Configuration file: ./_config.yml
10:25:30 AM: Creating Flickr cache folder
10:25:30 AM: Download Flickr cache
10:25:31 AM: Configuration file: /opt/build/repo/_config.yml
10:25:31 AM:             Source: /opt/build/repo
10:25:31 AM:        Destination: /opt/build/repo/_site
10:25:31 AM:  Incremental build: disabled. Enable with --incremental
10:25:31 AM:       Generating...
10:25:36 AM:                     done in 4.984 seconds.
10:25:36 AM:  Auto-regeneration: disabled. Use --watch to enable.
10:25:36 AM: ​
10:25:36 AM: (build.command completed in 7.1s)
10:25:36 AM: ​
10:25:36 AM: Deploy site                                                   
10:25:36 AM: ────────────────────────────────────────────────────────────────
10:25:36 AM: ​
10:25:36 AM: Starting to deploy site from '_site'
10:25:36 AM: Calculating files to upload
10:25:37 AM: 4 new files to upload
10:25:37 AM: 0 new functions to upload
10:25:37 AM: Section completed: deploying
10:25:37 AM: Site deploy was successfully initiated
10:25:37 AM: ​
10:25:37 AM: (Deploy site completed in 554ms)
10:25:37 AM: ​
10:25:37 AM: Starting post processing
10:25:37 AM: Netlify Build Complete                                        
10:25:37 AM: ────────────────────────────────────────────────────────────────
10:25:37 AM: ​
10:25:37 AM: (Netlify Build completed in 7.7s)
10:25:37 AM: Skipping HTML post processing
10:25:37 AM: Post processing - header rules
10:25:37 AM: Caching artifacts
10:25:37 AM: Started saving ruby gems
10:25:37 AM: Finished saving ruby gems
10:25:37 AM: Post processing - redirect rules
10:25:37 AM: Started saving build plugins
10:25:37 AM: Finished saving build plugins
10:25:37 AM: Started saving pip cache
10:25:37 AM: Finished saving pip cache
10:25:37 AM: Started saving emacs cask dependencies
10:25:37 AM: Post processing done
10:25:37 AM: Finished saving emacs cask dependencies
10:25:37 AM: Started saving maven dependencies
10:25:37 AM: Finished saving maven dependencies
10:25:37 AM: Started saving boot dependencies
10:25:37 AM: Finished saving boot dependencies
10:25:38 AM: Section completed: postprocessing
10:25:37 AM: Started saving rust rustup cache
10:25:37 AM: Finished saving rust rustup cache
10:25:37 AM: Started saving go dependencies
10:25:37 AM: Finished saving go dependencies
10:25:38 AM: Cached Ruby version 2.7.8
10:25:38 AM: Build script success
10:25:38 AM: Section completed: building
10:25:39 AM: Site is live ✨
10:25:39 AM: Uploading Cache of size 130.4MB
10:25:40 AM: Section completed: cleanup
10:25:40 AM: Finished processing build request in 1m50.192s

BTW, I forced the Ruby version to 2.7.8.

What could be wrong?
How can I force cache clear when building automatically from GitHub? I wasn’t able to find that option in settings deploys.

My Netlify site name: wildtrip-blog.netlify.app

Hi @j0k3r thanks for reaching out about this. I’m curious have your tried unlinking and linking your Github to Netlify and see if that solves the issue first?

Same error.

After unlinking and re-linking, the automated deploy failed (6480614711c40800cb676240).
I manually launched one with the clear cache option and it worked (6480616978a27602410ae4ba).

Can you please provide this:

Here is the x-nf-request-id: 01H2YYX5E1YYS2X2721KKFGEFD

Any specific reason to be using Ruby 2? If not, can you try using Ruby 3 (the build image default) to see if it makes a difference?

As far as I remember it was because a deps was blocking.
I removed the env var to use the default Ruby version and triggered a build (without clearing the cache): 649495229be47c00a9741604

It worked!
But the version used wasn’t the version 3 but the version 2.7.2 ¯_(ツ)_/¯

glad to hear it’s working for you now.