简体   繁体   English

Web应用程序无法使用Rails启动

[英]Web application could not be started with rails

I'm trying to deploy a second rails app to a linux server but I'm getting a "Web application could not be started". 我正在尝试将第二个Rails应用程序部署到linux服务器,但出现“无法启动Web应用程序”。 Not sure where to look to even begin solving this. 不知道去哪里寻找甚至可以开始解决这个问题。 Using Appache/passenger. 使用设备/乘客。 Virtual host setup is similar to other site that is running on server. 虚拟主机设置类似于服务器上运行的其他站点。 I do have a different IP address setup for new site. 我确实为新站点设置了不同的IP地址。 Also, the Ruby RVM file directory is being shared for the two apps. 另外,两个应用程序正在共享Ruby RVM文件目录。 Here's the error output: 错误输出:

Web application could not be started 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>'

Figured out the problem. 找出问题所在。 I had added a model (doctor.rb) that was checking authentication and was no longer needed. 我添加了一个模型(doctor.rb),该模型正在检查身份验证,不再需要。 Once I removed it everything worked correctly. 删除后,一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM