Rails 服务器 503 服务不可用错误

Rails server 503 Service Unavailable Error

当我使用 ruby script/server 命令启动我的 rails 服务器时,我收到以下响应

=> Booting WEBrick
=> Rails 2.3.9 application starting on http://0.0.0.0:3000
/home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/rails-2.3.9/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/rails-2.3.9/lib/initializer.rb:298:in `add_gem_load_paths'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/rails-2.3.9/lib/initializer.rb:132:in `process'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/rails-2.3.9/lib/initializer.rb:113:in `send'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/rails-2.3.9/lib/initializer.rb:113:in `run'
        from /home/ubuntu/apps/moogle/config/environment.rb:13
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require'
        from /home/ubuntu/.rvm/gems/ruby-1.8.7-p374@gemset1/gems/rails-2.3.9/lib/commands/server.rb:84
        from script/server:3:in `require'
        from script/server:3

我正在使用 ProxyPreseve

<VirtualHost *:80>
 ProxyPreserveHost On
    ProxyPass / http://0.0.0.0:3000/
    ProxyPassReverse / http://0.0.0.0:3000/
    ServerName localhost
</VirtualHost>

我收到 503 服务不可用错误。谁能告诉我我的申请有什么问题吗?

Rails版本:2.3.9 Ruby 版本:1.8.7-p374 捆绑版本:1.12.5 Gem版本:2.0.17

您需要降级 rubygems 版本

gem update --system 1.8.25

参考相同问题的解决方案here