ARTICLE AD BOX
I've upgraded Ruby from Ruby 3.1.7 to Ruby 3.2.8; after that, I've encountered a situation where my ruby bundle works for the first deployment on Heroku-deployed servers, but all subsequent deployments failed at the step of bundle install. This is replicable on 2 servers that I've tried it on. Clearing the cache in multiple ways did not solve the issue, rollbacking the server does not allow redeployment, redeploying with new changes with cleared cache did not resolve issues. Issue does not appear on local environment, and development/test environments only differ by inclusion of testing modules like capybara, pry, and rubocop. Below is the error encountered during deployment push:
remote: -----> Using Ruby version: ruby-3.2.8 remote: -----> Installing bundler 2.3.5 remote: -----> Installing dependencies using bundler 2.3.5 remote: Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4 remote: Bundle complete! 59 Gemfile dependencies, 138 gems now installed. remote: Gems in the groups 'development' and 'test' were not installed. remote: Bundled gems are installed into `./vendor/bundle` remote: Bundle completed (0.41s) remote: Cleaning up the bundler cache. remote: Running: bundle list remote: Could not find mini_portile2-2.8.8 in any of the sources remote: Install missing gems with `bundle install`. remote: remote: ! remote: ! Error detecting dependencies remote: ! remote: ! The Ruby buildpack requires information about your application’s dependencies to remote: ! complete the build. Without this information, the Ruby buildpack cannot continue. remote: ! remote: ! Command failed: `bundle list` remote: ! remote: ! Could not find mini_portile2-2.8.8 in any of the sources remote: ! Install missing gems with `bundle install`. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to [app name]Using
Rails version 6.1.7.10 Node version 16.13.2 Heroku-22 stack Ruby version 3.2.8.When running heroku releases:output -a [app name], we get the following error:
bundler: failed to load command: rake (/app/vendor/bundle/ruby/3.2.0/bin/rake) /app/vendor/ruby-3.2.8/lib/ruby/3.2.0/bundler/definition.rb:910:in `block in verify_changed_sources!': Could not find gem 'capybara' in locally installed gems (Bundler::GemNotFound)
Do we have suggestions for next steps in solving this issue? I'm a bit stumped on it.
