轨道 3 +乘客:机架错误

发布于 2024-12-11 22:04:25 字数 2257 浏览 0 评论 0 原文

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

I'm getting the following error, which spontaneously popped up and crashed my site a few days ago. I'm using Ruby 1.8.7, Rails 3.0.0, on a Dreamhost machine with Passenger. See this cached page for another description of the same problem.

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

娜些时光,永不杰束 2024-12-18 22:04:25

我在 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.

滥情哥ㄟ 2024-12-18 22:04:25

我必须走同样的路。提交支持票证后,应用程序回到正轨:

感谢您联系技术支持。我深表歉意
您的网站存在问题。您的机架似乎有问题
宝石。我继续为您重新安装 Gem,然后重新捆绑
你的 Rails 应用程序。您的网站现已恢复并运行。 :) 我愿意
看到你的图像没有加载。做一些研究
我发现您的资产文件夹中不存在这些文件。你
需要调查这个问题并上传文件来解决这个问题
问题。 :)

如果还有什么我可以为您做的,请告诉我
美好的一天。

图像问题与此无关。

I had to go through the same path. After filing a support ticket app got back on track:

Thank you for contacting technical support. I do apologize for the
issues with your site. It looks like there was an issue with your rack
Gem. I went ahead and reinstalled the Gem for you and then rebundled
your Rails application. Your site is now back up and running. :) I do
see that your images are not loading though. Doing some research into
this, I see that the files do not exist in your assets folder. You
will need to look into this and get the files uploaded to resolve this
issue. :)

Please let me know if there is anything else I can do for you and have
a great day.

The image problem was not related to this.

信仰 2024-12-18 22:04:25

我遇到了同样的问题,这与正确地将我的宝石捆绑在一起有关。服务器正在 /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/. Rerunning bundle install on the server corrected my problems. Hopefully this will help someone else, as this problem seems to have many causes.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文