当前位置:  开发笔记 > 后端 > 正文

乘客错误:应用程序生成器服务器意外退出:检测到意外的文件结束

如何解决《乘客错误:应用程序生成器服务器意外退出:检测到意外的文件结束》经验,为你挑选了1个好方法。

这只是前一天工作,但我刚刚将我的代码更新到运行Passenger 2.2.4的评论服务器,我的2.3.4 rails应用程序现在无法在该框上启动.

乘客报告:

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  

有任何想法吗?



1> Trey Bean..:

弄清楚了.我终于检查了主apache错误日志,发现我的一个宝石(facebooker config)出现了问题.

要解决facebooker问题,请确保在config/facebooker.yml中为您的环境提供了一个条目

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


如果我无法检查Apache的错误日志(我没有对它们的读取权限)该怎么办?我怎样才能检查出错了什么?
推荐阅读
手机用户2402851335
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有