Passenger in Dreamhost throws: "activated rack 1.2.1"

You have already activated rack 1.2.1, but your Gemfile requires rack 1.3.4. Consider using bundle exec. 
Passenger throws me at Dreamhost. How can i decide?

EDIT: I asked them to remove rack 1.2.1, but I doubt that they will. They probably support this gem for compatibility reasons. But the question is why the wrong rack remains loaded instead of the correct version of the rack and is there any workaround for it?

+4
source share
2 answers

Uhg .... this error is f * cking. It caused me so much grief at Dreamhost. My solution was to require a version that the Passenger says you β€œactivated”. In your case, 1.2.1:

 gem 'rack', '1.2.1' 

It is unlikely that this will cause incompatibility errors. Another option is to remove all versions of the rack, except what your Gemfile.lock indicated (1.3.4 in your case), but I had problems with this on Dreamhost.

edit You can also try installing rack 1.3.4 at the system level:

 gem install rack -v 1.3.4 

or

 gem update rack 

Hopefully Passenger will use the latest installed version by default.

+1
source

All Articles