生产机器上的Ruby Sinatra应用程序 - 乘客投掷错误

时间:2013-01-16 15:46:05

标签: ruby sinatra passenger

我有一个可以在本地完美运行的Ruby Sinatra应用程序。我已将其转移到生产机器,并得到以下(无用的)错误。有人能指出我正确的方向吗?

Passenger encountered the following error:
The application spawner server exited unexpectedly: Unexpected end-of-file detected.

Exception class:
PhusionPassenger::Rack::ApplicationSpawner::Error
Backtrace:
#   File    Line    Location
0   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb 135 in `rescue in start'
1   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/rack/application_spawner.rb 130 in `start'
2   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb    253 in `block (2 levels) in spawn_rack_application'
3   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb   132 in `lookup_or_add'
4   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb    246 in `block in spawn_rack_application'
5   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb   82  in `block in synchronize'
6       prelude>    10:in `synchronize'
7   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server_collection.rb   79  in `synchronize'
8   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb    244 in `spawn_rack_application'
9   /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb    137 in `spawn_application'
10  /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/spawn_manager.rb    275 in `handle_spawn_application'
11  /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb  357 in `server_main_loop'
12  /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/lib/phusion_passenger/abstract_server.rb  206 in `start_synchronously'
13  /usr/local/rvm/gems/ruby-1.9.2-p320/gems/passenger-3.0.13/helper-scripts/passenger-spawn-server 99  in `'

已经在Stack Overflow上看到类似的问题,但他们似乎没有回答我遇到的问题。

这是在带有Apache和Passenger mod的Ubuntu服务器(10.04)上。

非常感谢

0 个答案:

没有答案