本文介绍了乘客错误:应用程序生成器服务器意外退出:检测到意外的文件结尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前几天还可以使用,但我刚刚将代码更新到了运行乘客 2.2.4 的审查服务器,而我的 2.3.4 rails 应用程序现在无法在那个盒子上启动.

This was working just the other day, but I just updated my code to the review server which runs Passenger 2.2.4 and my 2.3.4 rails app now can't boot on that box.

乘客报告:

Passenger encountered the following error:

The application spawner server exited unexpectedly: Unexpected end-of-file detected.

Exception class:
PhusionPassenger::Railz::ApplicationSpawner::Error
Backtrace:
#  File  Line  Location
0  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb  218  in `start'

1  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb  261  in `spawn_rails_application'

2  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb  126  in `lookup_or_add'

3  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb  255  in `spawn_rails_application'

4  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb  80  in `synchronize'

5  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb  79  in `synchronize'

6  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb  254  in `spawn_rails_application'

7  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb  153  in `spawn_application'

8  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb  286  in `handle_spawn_application'

9  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb  351  in `__send__'

10  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb  351  in `main_loop'

11  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb  195  in `start_synchronously'

12  /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server  61  

有什么想法吗?

推荐答案

想通了.我终于检查了主要的 apache 错误日志,发现有一个我的一颗宝石(facebooker 配置)有问题.

Figured it out. I finally checked the main apache error log and discovered there was aproblem with one of my gems (facebooker config).

要解决 facebooker 问题,请确保在 config/facebooker.yml 中有一个适用于您的环境的条目

To fix the facebooker issue, make sure there's an entry for your environment in config/facebooker.yml

我认为乘客至少应该提供一个选项来查看更多在 apache 的错误日志中报告的堆栈跟踪.会更有帮助.

I think passenger should at least give an option to see more of the stack trace that gets reported in apache's error log. Would have been more helpful.

这篇关于乘客错误:应用程序生成器服务器意外退出:检测到意外的文件结尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 09:04