使用Rails 4.2.1和Gem 2.6.14的Ruby 2.3.3应用程序在Centos 6.9中不起作用

时间:2017-11-16 05:08:30

标签: apache passenger ruby-on-rails-4.2 centos6.5

使用Rails 4.2.1,Gem 2.6.14和乘客5.1.11的Ruby 2.3.3应用程序无法在Centos 6.9中运行

浏览器错误:

我们很抱歉,但出了点问题。 该问题已记录下来以供调查。请稍后再试。

Apache错误日志:

App 3307 stdout: 
App 3307 stdout: 
[ E 2017-11-16 04:58:37.4783 3191/To age/Cor/App/Implementation.cpp:304 ]: Could not spawn process for application /domainname/httpdocs: An error occurred while starting up the preloader.
  Error ID: cc913e9e
  Error details saved to: /tmp/passenger-error-rMdbsf.html
  Message from application: undefined method `web_console' for #<Rails::Application::Configuration:0x005617ca458e08>
Did you mean?  console (NoMethodError)
  /usr/local/lib/ruby/gems/2.3.0/gems/railties-4.2.1/lib/rails/railtie/configuration.rb:95:in `method_missing'
  /domainname/httpdocs/config/application.rb:38:in `<class:Application>'
  /domainname/httpdocs/config/application.rb:15:in `<module:Lobbylights421>'
  /domainname/httpdocs/config/application.rb:14:in `<top (required)>'
  /domainname/httpdocs/config/environment.rb:2:in `require'
  /domainname/httpdocs/config/environment.rb:2:in `<top (required)>'
  config.ru:3:in `require'
  config.ru:3:in `block in <main>'
  /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
  /usr/local/lib/ruby/gems/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
  config.ru:1:in `new'
  config.ru:1:in `<main>'
  /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.1.11/src/helper-scripts/rack-preloader.rb:110:in `eval'
  /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.1.11/src/helper-scripts/rack-preloader.rb:110:in `preload_app'
  /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.1.11/src/helper-scripts/rack-preloader.rb:156:in `<module:App>'
  /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.1.11/src/helper-scripts/rack-preloader.rb:30:in `<module:PhusionPassenger>'
  /usr/local/lib/ruby/gems/2.3.0/gems/passenger-5.1.11/src/helper-scripts/rack-preloader.rb:29:in `<main>'


[ E 2017-11-16 04:58:37.4841 3191/Tb age/Cor/Con/CheckoutSession.cpp:285 ]: [Client 3-1] Cannot checkout session because a spawning error occurred. The identifier of the error is cc913e9e. Please see earlier logs for details about the error.

使用的版本:

Ruby 2.3.3
Rails 4.2.1
宝石2.6.14

0 个答案:

没有答案