我安装了Apache,Passenger和Sinatra并部署了一个应用程序.尝试访问时出错:
An error occurred while starting up the preloader: it did not write a startup response in time. Application root /var/www/html/test Environment (value of RAILS_ENV,RACK_ENV,WSGI_ENV and PASSENGER_ENV) production Ruby interpreter command /usr/local/bin/ruby User and groups Unknown Environment variables Unknown Ulimits Unknown
我该如何解决?
编辑
在应用程序日志中,我发现这一行错误:
!> Ready !> socket: unix:/tmp/passenger.1.0.14019/generation-0/backends/preloader.14049 !>
宝石列表:
bigdecimal (1.2.0) builder (3.2.0) bundler (1.3.1) daemon_controller (1.1.1) fastthread (1.0.7) io-console (0.4.2) json (1.7.7) minitest (4.3.2) passenger (4.0.0.rc4) psych (2.0.0) rack (1.5.2) rack-protection (1.4.0) rake (0.9.6) rdoc (4.0.0) sequel (3.45.0) sinatra (1.3.5) test-unit (2.0.0.0) tilt (1.3.4)
系统版本:
Ruby 2.0 Apache 2.2 Amazon EC2 Instance
该应用程序运行正常与Ruby 1.9和乘客3.0.我刚刚升级到2.0,而Passenger 3.0甚至没有编译正确.他们建议我使用Passenger Pre 4.0,它编译好,但不运行应用程序…