2016-09-07 9 views
0

私はレールのサーバがruby script/serverコマンドを使用して起動、私はRailsのサーバー503サービスを使用できませんエラー

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

ようProxyPreseveを使用しています次の応答

=> Booting WEBrick 
=> Rails 2.3.9 application starting on http://0.0.0.0:3000 
/home/ubuntu/.rvm/gems/[email protected]/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/[email protected]/gems/rails-2.3.9/lib/initializer.rb:298:in `add_gem_load_paths' 
     from /home/ubuntu/.rvm/gems/[email protected]/gems/rails-2.3.9/lib/initializer.rb:132:in `process' 
     from /home/ubuntu/.rvm/gems/[email protected]/gems/rails-2.3.9/lib/initializer.rb:113:in `send' 
     from /home/ubuntu/.rvm/gems/[email protected]/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/[email protected]/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require' 
     from /home/ubuntu/.rvm/gems/[email protected]/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require' 
     from /home/ubuntu/.rvm/gems/[email protected]/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:547:in `new_constants_in' 
     from /home/ubuntu/.rvm/gems/[email protected]/gems/activesupport-2.3.9/lib/active_support/dependencies.rb:182:in `require' 
     from /home/ubuntu/.rvm/gems/[email protected]/gems/rails-2.3.9/lib/commands/server.rb:84 
     from script/server:3:in `require' 
     from script/server:3 

を取得していますそして、私は503サービスを取得しています使用できないエラー。誰も私のアプリケーションで何が間違っていると言うことができますか?

Railsのバージョン:2.3.9 Rubyのバージョン:1.8.7-P374 バンドルバージョン:1.12.5 宝石のバージョン:2.0.17

+0

本当に確認してください:本当にRuby '1.8.7'でRails' 2.3.9'を実行しようとしていますか? – spickermann

+0

@spickermann - はい、そうです。 – lock

+0

何かが 'rubygems'バージョンで間違っていますhttp://stackoverflow.com/questions/15349869/undefined-method-source-index-for-gemmodule-nomethoderror –

答えて

1

あなたはrubygemsバージョン

gem update --system 1.8.25 
をダウングレードする必要があります

同じ問題に解決策を言いますhere

+0

これは問題の仲間を解決しました。ありがとうございました:) – lock

関連する問題