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 professionals since 2007

Our laser focus on a single technology has made us a leader in this space. Need help?

  • We build a solid first version of your product
  • We train your development team
  • We rescue your project in trouble
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)