Phusion Passenger Error: You have activated rack 1.2.1, but your Gemfile requires rack 1.2.2

后端 未结 9 2026
清酒与你
清酒与你 2020-12-23 21:43

I\'m trying to run a Ruby on Rails app on a Dreamhost shared server. All is well so far except one weird bug I have not been able to unravel.

Sometimes when I visit

相关标签:
9条回答
  • 2020-12-23 22:40

    My had a similar problem with Apache: "You have already activated rack 1.2.3, but your Gemfile requires rack 1.2.2. Consider using bundle exec."

    The problem was that Passenger install rack 1.2.3 and my rails APP rack 1.2.2:

    $ gem list |grep rack
    rack (1.2.2, 1.2.3)
    

    Try:

    $ gem uninstall --version=1.2.3 rack
    

    restart the server and solved

    0 讨论(0)
  • 2020-12-23 22:41

    I have the same issue: "You have already activated rack 1.2.1, but your Gemfile requires rack 1.2.3"

    1. Add to Gemfile: gem 'rack', '1.2.1'
    2. bundle update
    3. uninstall rack versions > 1.2.1

      [wasp]$ gem list |grep rack

      rack (1.2.1, 1.1.0, 1.0.1, 1.0.0)

    4. touch tmp/restart.txt

    5. :) happy
    0 讨论(0)
  • 2020-12-23 22:48

    It might be worth checking this out. Someone made a way to get debugger working with Passenger & Rails 3 - http://duckpunching.com/passenger-mod_rails-for-development-now-with-debugger

    0 讨论(0)
提交回复
热议问题