轨道 3 +乘客:机架错误
我收到以下错误,该错误几天前自发弹出并导致我的网站崩溃。我在带有 Passenger 的 Dreamhost 机器上使用 Ruby 1.8.7、Rails 3.0.0。参见此缓存页面以获取同一问题的另一个描述。
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在 Dreamhost/Passenger/Rails 上也遇到了同样的问题。我发送了支持请求并收到了以下回复。我的网站现在也已启动并运行。
感谢您联系技术支持。对于与此相关的问题,我深表歉意。服务器最近升级到 Debian,它还对您的安装进行了一些升级。我继续纠正了有错误的网站,因为一些宝石需要重新安装。
对于与此相关的问题,我深表歉意。如果还有什么可以为您做的,请告诉我,祝您有美好的一天。
I also had the same problem with Dreamhost/Passenger/Rails. I send a support request in and received the following response. My sites are also now up and running.
Thank you for contacting technical support. I do apologize for the issues with this. The servers were upgraded to Debian recently which also did some upgrades regarding your install. I went ahead and corrected the sites with errors as some gems needed to be reinstalled.
I do apologize for the issues with this. Please let me know if there is anything else I can do for you and have a good day.
我必须走同样的路。提交支持票证后,应用程序回到正轨:
图像问题与此无关。
I had to go through the same path. After filing a support ticket app got back on track:
The image problem was not related to this.
我遇到了同样的问题,这与正确地将我的宝石捆绑在一起有关。服务器正在
/usr/lib/ruby/gems/1.8/
寻找所需的 gem。在服务器上重新运行bundle install
纠正了我的问题。希望这对其他人有帮助,因为这个问题似乎有很多原因。I experienced the same problem, it had to do with bundling my gems together correctly. The server was looking for required gems at
/usr/lib/ruby/gems/1.8/
. Rerunningbundle install
on the server corrected my problems. Hopefully this will help someone else, as this problem seems to have many causes.