我只是按顺序完成了一系列工作(即销售我的所有宝石并在environment.rb中放置相应的config.gem行)。我重建了所有的宝石和更新的规格。将此代码下载到我的登台机器后,我可以从命令行运行控制台和服务器,但我的Nginx / Passenger堆栈没有提供应用程序。相反,我收到以下错误:
Passenger encountered the following error:
The application spawner server exited unexpectedly: Unexpected end-of-file detected.
抛出:
PhusionPassenger::ClassicRails::ApplicationSpawner::Error
跟踪是:
0 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/classic_rails/application_spawner.rb 155 in `start'
1 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb 219 in `spawn_rails_application'
2 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server_collection.rb 132 in `lookup_or_add'
3 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb 214 in `spawn_rails_application'
4 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server_collection.rb 82 in `synchronize'
5 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server_collection.rb 79 in `synchronize'
6 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb 213 in `spawn_rails_application'
7 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb 132 in `spawn_application'
8 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/spawn_manager.rb 275 in `handle_spawn_application'
9 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb 357 in `__send__'
10 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb 357 in `server_main_loop'
11 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/abstract_server.rb 206 in `start_synchronously'
12 /Library/Ruby/Gems/1.8/gems/passenger-3.0.2/helper-scripts/passenger-spawn-server 99
我在网络服务器日志中唯一能看到的是:
/Library/Ruby/Gems/1.8/gems/passenger-3.0.2/lib/phusion_passenger/utils.rb:708: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
我没有什么可以继续解决这个问题。如果我不得不猜测,我会说有一些宝石需要在本地编译。但是,即使我将所有东西都移出供应商/宝石并删除所有的config.gem行,我仍然会遇到这个问题。
答案 0 :(得分:1)
看起来像Ruby中的一个错误。尝试升级它。