2011-02-10 49 views
2

編輯:請注意,該應用程序出現在Passenger/Apache2中就好了。只是不在Nginx。Nginx上的乘客將不會服務於寶石出售後的Rails 2.3.8應用程序

我只是做了一堆工作,讓我的寶石房子順序(即出售我所有的寶石,並在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] 

我沒有任何東西繼續解決這個問題。如果我不得不猜測,我會說有些地方需要在本地進行編譯。但是,即使我將所有東西都移出vendor/gems並刪除了所有的config.gem行,我仍然會遇到這個問題。

回答

1

看起來像Ruby中的錯誤。嘗試升級它。

+0

我已升級到Ruby EE 11.01版本。現在應用程序甚至不會出現在Apache中(我重新安裝了Passenger並相應地更改了配置文件)。我得到:沒有這樣的文件加載 - iconv 你見過這個? – AKWF 2011-02-13 02:36:20

相關問題