Read more

Bundler dependency issues with Phusion Passenger

Kim Klotz
April 13, 2022Software engineer at makandra GmbH

If you get an error message like this:

You have already activated some-gem 1.2.3, but your Gemfile requires some-gem 3.2.1. Since some-gem is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports some-gem as a default gem.

Illustration online protection

Rails Long Term Support

Rails LTS provides security patches for old versions of Ruby on Rails (2.3, 3.2, 4.2 and 5.2)

  • Prevents you from data breaches and liability risks
  • Upgrade at your own pace
  • Works with modern Rubies
Read more Show archive.org snapshot

You can solve this by setting PassengerPreloadBundler / passenger_preload_bundler to on.

We do not enable this by default due to this statement from the developers:

It won't be on by default because it can ironically cause a conflict with two bundlers being loaded (an old one and a new one, in that order, doesn't work well).

https://github.com/phusion/passenger/issues/2409#issuecomment-1029361123 Show archive.org snapshot

Posted by Kim Klotz to makandra Operations (2022-04-13 09:22)