微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby-on-rails – Rails 3 Passenger:机架错误

我收到以下错误,几天前自发弹出并崩溃了我的网站.我在带有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

解决方法

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

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

我为这个问题道歉.如果我还能为您做些什么,请告诉我,祝您有个美好的一天.

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐