Rails 3 + Passenger:机架错误

时间:2011-10-26 15:12:19

标签: ruby-on-rails ruby passenger rack

我收到以下错误,几天前自发弹出并崩溃了我的网站。我在带有Passenger的Dreamhost机器上使用Ruby 1.8.7,Rails 3.0.0。有关同一问题的其他说明,请参阅this cached page

Ruby (Rack) application could not be started.

A source file that the application requires, is missing.

It is possible that you didn't upload your application files correctly. Please check whether all your application files are uploaded.
A required library may not installed. Please install all libraries that this application requires.

Error message:
no such file to load -- rack
Exception class:
LoadError
Application root:
[omitted]
Backtrace:
#   File    Line    Location
0   /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `gem_original_require'
1   /usr/lib/ruby/1.8/rubygems/custom_require.rb    31  in `require'
2   /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 139 in `load_rack_app'
3   /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 100 in `run'
4   /dh/passenger/lib/phusion_passenger/utils.rb    255 in `report_app_init_status'
5   /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 87  in `run'
6   /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 65  in `spawn_application'
7   /dh/passenger/lib/phusion_passenger/utils.rb    184 in `safe_fork'
8   /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 58  in `spawn_application'
9   /dh/passenger/lib/phusion_passenger/rack/application_spawner.rb 41  in `spawn_application'
10  /dh/passenger/lib/phusion_passenger/spawn_manager.rb    159 in `spawn_application'
11  /dh/passenger/lib/phusion_passenger/spawn_manager.rb    287 in `handle_spawn_application'
12  /dh/passenger/lib/phusion_passenger/abstract_server.rb  352 in `__send__'
13  /dh/passenger/lib/phusion_passenger/abstract_server.rb  352 in `main_loop'
14  /dh/passenger/lib/phusion_passenger/abstract_server.rb  196 in `start_synchronously'
15  /dh/passenger/bin/passenger-spawn-server    61  

2 个答案:

答案 0 :(得分:1)

我对Dreamhost / Passenger / Rails也有同样的问题。我发送支持请求并收到以下回复。我的网站现在也正常运行。


感谢您联系技术支持。我为这个问题道歉。服务器最近升级到了Debian,并对你的安装进行了一些升级。我继续前进并纠正了有错误的网站,因为需要重新安装一些宝石。

我为这个问题道歉。如果还有什么我可以为你做的,请告诉我,祝你有个美好的一天。

答案 1 :(得分:0)

我遇到了同样的问题,它与正确捆绑我的宝石有关。服务器正在/usr/lib/ruby/gems/1.8/寻找所需的宝石。在服务器上重新运行bundle install纠正了我的问题。希望这会帮助其他人,因为这个问题似乎有很多原因。