1

我正在尝试将第二个 rails 应用程序部署到 linux 服务器,但出现“无法启动 Web 应用程序”。甚至不知道从哪里开始解决这个问题。使用阿帕奇/乘客。虚拟主机设置类似于在服务器上运行的其他站点。我确实为新站点设置了不同的 IP 地址。此外,两个应用程序共享 Ruby RVM 文件目录。这是错误输出:

无法启动 Web 应用程序

end of file reached (EOFError)
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/openssl/buffering.rb:174:in `sysread_nonblock'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/openssl/buffering.rb:174:in `read_nonblock'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/protocol.rb:141:in `rbuf_fill'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/protocol.rb:122:in `readuntil'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/protocol.rb:132:in `readline'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:2563:in `read_status_line'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:2552:in `read_new'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1320:in `block in transport_request'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1317:in `catch'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1317:in `transport_request'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:1294:in `request'
/home/bic/wwwroot/proposals/app/models/doctor.rb:61:in `block in <top (required)>'
/home/bic/.rvm/rubies/ruby-1.9.3-p448/lib/ruby/1.9.1/net/http.rb:746:in `start'
/home/bic/wwwroot/proposals/app/models/doctor.rb:61:in `<top (required)>'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `block in require'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:251:in `require'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:359:in `require_or_load'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:313:in `depend_on'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:225:in `require_dependency'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/engine.rb:438:in `each'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/engine.rb:438:in `block in eager_load!'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/engine.rb:436:in `each'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/engine.rb:436:in `eager_load!'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `instance_exec'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/initializable.rb:30:in `run'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `each'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/initializable.rb:54:in `run_initializers'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/application.rb:136:in `initialize!'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.1/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/bic/wwwroot/proposals/config/environment.rb:5:in `<top (required)>'
config.ru:3:in `require'
config.ru:3:in `block in <main>'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
config.ru:1:in `new'
config.ru:1:in `<main>'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.16/helper-scripts/rack-preloader.rb:105:in `eval'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.16/helper-scripts/rack-preloader.rb:105:in `preload_app'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.16/helper-scripts/rack-preloader.rb:150:in `<module:App>'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.16/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
/home/bic/.rvm/gems/ruby-1.9.3-p448/gems/passenger-4.0.16/helper-scripts/rack-preloader.rb:28:in `<main>'
4

1 回答 1

1

想通了问题。我添加了一个正在检查身份验证且不再需要的模型 (doctor.rb)。一旦我删除它,一切正常。

于 2014-07-03T20:40:10.223 回答