0

我有一个 rails 2 应用程序,我正在升级到 rails 3。我安装了 rvm,所以我可以同时运行这两个应用程序。

rails 3 应用程序运行良好。但是当我尝试恢复 rails 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 ruby​​ 1.8.7 (2012-02-08 patchlevel 358) [i686-linux] Rails 2.3.4

4

1 回答 1

0

尽管这是一个古老的问题,并且该问题可能因提问者的不同原因而引起。但是我今天与乘客(使用 apache 和 nginx)遇到了同样的问题,并通过添加 config/secrets.yml 文件并在那里定义密钥来解决。

于 2015-03-13T19:04:28.823 回答