2012-06-04 128 views
0

我有一個導軌2應用程序,我向導軌3上升。我安裝了rvm,因此我可以同時運行這兩個應用程序。Phusion乘客錯誤與rvm

rails 3應用程序正常工作。但是,當我嘗試恢復導軌2應用程序,我得到這個錯誤。

Processing ApplicationController#index (for 122.179.134.45 at 2012-06-04 09:56:46) [GET] 

ArgumentError (wrong number of arguments (1 for 2)): 
<internal:prelude>:10:in `synchronize' 
passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' 
passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request' 
passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' 
passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:321:in `start_request_handler' 
passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:275:in `block in handle_spawn_application' 
passenger (3.0.12) lib/phusion_passenger/utils.rb:479:in `safe_fork' 
passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:270:in `handle_spawn_application' 
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:in `start' 
passenger (3.0.12) lib/phusion_passenger/classic_rails/application_spawner.rb:149:in `start' 
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:219:in `block (2 levels) in spawn_rails_application' 
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' 
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:214:in `block in spawn_rails_application' 
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' 
<internal:prelude>:10:in `synchronize' 
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' 
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:213:in `spawn_rails_application' 
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:132:in `spawn_application' 
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' 
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' 
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' 
passenger (3.0.12) helper-scripts/passenger-spawn-server:99:in `<main>' 

Rendering /var/www/html/dbp/releases/20110518114228/public/500.html (500 Internal Server Error) 

有沒有建議?

這裏是我的RVM Ruby和Rails 紅寶石1.8.7(2012-02-08 PATCHLEVEL 358)的i686-linux下] 的Rails 2.3.4

+0

你確定你使用Rails 2應用程序的相同的寶石版本嗎? –

+0

不同的寶石。我通過將它作爲守護進程在webrick上運行,然後反向代理它來實現它。我只需要在升級到rails 3時引用它。感謝您的答覆。 –

回答

0

雖然一個老問題,這個問題可能造成的爲提問者提供不同的理由。但是我今天面對與乘客(同時使用apache和nginx)相同的問題,並且通過添加config/secrets.yml文件並在那裏定義密鑰解決了這個問題。