2010-12-13 5 views
4

Ruby on railsプロジェクト:サーバー(app、config)上のファイルをアップグレードしました。その後、乗客は免除を捨てた。それは私に何の意味もありませんでした。それは何か?免除の詳細な説明はどこでも入手できますか?乗客エラー - PhusionPassenger :: ClassicRails :: ApplicationSpawner :: Error

Exeption on apache error_log: 
(eval):1: warning: already initialized constant RAILS_ROOT 
[ pid=26440 thr=23860019550640 file=utils.rb:176 time=2010-12-13 17:33:29.576 ]: *** Exception NameError in application (wrong constant name LddkProjekts 
) (process 26440, thread #<Thread:0x2b66affab360>): 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:334:in `const_get' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:334:in `find_rack_app' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:308:in `start_request_handler' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `send' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `handle_spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/utils.rb:479:in `safe_fork' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `__send__' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:180:in `start' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `__send__' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/helper-scripts/passenger-spawn-server:99 
[ pid=26386 thr=23860019550640 file=utils.rb:176 time=2010-12-13 17:33:29.585 ]: *** Exception IOError in PhusionPassenger::ClassicRails::ApplicationSpawner (Connection closed) (process 26386, thread #<Thread:0x2b66affab360>): 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/app_process.rb:105:in `read_from_channel' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:287:in `handle_spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `__send__' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:180:in `start' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:219:in `spawn_rails_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:214:in `spawn_rails_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `__send__' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
    from /usr/lib/ruby/gems/1.8/gems/passenger-3.0.0/helper-scripts/passenger-spawn-server:99 

ありがとうございます!

答えて

13

Apache設定ファイルのRailsBaseURIディレクティブをRackBaseURIに変更する必要があります。 RailsBaseURIは、レール1とRails 2つのアプリケーションのために意図されたRackBaseURIはRailsの3のために行くための方法です

のに対し、誰かが行方不明config.ruファイルが同じエラーメッセージをもたらしたことを、報告しました。

http://groups.google.com/group/phusion-passenger/browse_thread/thread/e5c7495a6fef4ba7でディスカッションをチェックしてください。

+2

は、私は、*****あなたが心から、永遠の感謝の気持ちを持っている先生をその上に日を2 Fを過ごしました。 – NitroG42

0

使用しているGemのバージョンを確認してください。私の場合、Gemfileに問題がありました。私のケースでは、私はgem 'rubyzip'、 '0.9.9'の下位バージョンを使用していました。これをgem 'rubyzip'、 '1.0.0'にアップデートして問題を解決しました。ルビーのzipオーケー

おかげ ディープ

関連する問題