Content
Updated by Andrea Vaccaro over 7 years ago
I have performed the installation as of the official guide. When I try to connect I am informed that the passenger web application cannot be started with following details:
Cannot load \`Rails.application.database\_configuration\`:
key not found: “DATABASE\_URL” (KeyError)
(erb):1:in \`fetch’
(erb):1:in \`
<main>
’
/usr/lib/ruby/2.4.0/erb.rb:896:in \`eval’
/usr/lib/ruby/2.4.0/erb.rb:896:in \`result’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/application/configuration.rb:137:in \`database\_configuration’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.4/lib/active\_record/railtie.rb:122:in \`block (2 levels) in <class:Railtie>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:43:in \`instance\_eval’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:43:in \`execute\_hook’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:33:in \`block in on\_load’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:32:in \`each’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:32:in \`on\_load’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.4/lib/active\_record/railtie.rb:121:in \`block in <class:Railtie>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in \`instance\_exec’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in \`run’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:55:in \`block in run\_initializers’
/usr/lib/ruby/2.4.0/tsort.rb:228:in \`block in tsort\_each’
/usr/lib/ruby/2.4.0/tsort.rb:350:in \`block (2 levels) in each\_strongly\_connected\_component’
/usr/lib/ruby/2.4.0/tsort.rb:431:in \`each\_strongly\_connected\_component\_from’
/usr/lib/ruby/2.4.0/tsort.rb:349:in \`block in each\_strongly\_connected\_component’
/usr/lib/ruby/2.4.0/tsort.rb:347:in \`each’
/usr/lib/ruby/2.4.0/tsort.rb:347:in \`call’
/usr/lib/ruby/2.4.0/tsort.rb:347:in \`each\_strongly\_connected\_component’
/usr/lib/ruby/2.4.0/tsort.rb:226:in \`tsort\_each’
/usr/lib/ruby/2.4.0/tsort.rb:205:in \`tsort\_each’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:54:in \`run\_initializers’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/application.rb:352:in \`initialize\!’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/railtie.rb:193:in \`public\_send’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/railtie.rb:193:in \`method\_missing’
/opt/openproject/config/environment.rb:34:in \`\<top (required)\>’
config.ru:32:in \`require’
config.ru:32:in \`block in
<main>
’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in \`instance\_eval’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in \`initialize’
config.ru:1:in \`new’
config.ru:1:in \`
<main>
’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in \`eval’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in \`preload\_app’
/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in \`<module:App>’
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in \`<module:PhusionPassenger>’
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in \`
<main>
’
In attachment you find the system information as reported by passenger
Cannot load \`Rails.application.database\_configuration\`:
key not found: “DATABASE\_URL” (KeyError)
(erb):1:in \`fetch’
(erb):1:in \`
<main>
’
/usr/lib/ruby/2.4.0/erb.rb:896:in \`eval’
/usr/lib/ruby/2.4.0/erb.rb:896:in \`result’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/application/configuration.rb:137:in \`database\_configuration’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.4/lib/active\_record/railtie.rb:122:in \`block (2 levels) in <class:Railtie>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:43:in \`instance\_eval’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:43:in \`execute\_hook’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:33:in \`block in on\_load’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:32:in \`each’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.4/lib/active\_support/lazy\_load\_hooks.rb:32:in \`on\_load’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/activerecord-5.0.4/lib/active\_record/railtie.rb:121:in \`block in <class:Railtie>’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in \`instance\_exec’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:30:in \`run’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:55:in \`block in run\_initializers’
/usr/lib/ruby/2.4.0/tsort.rb:228:in \`block in tsort\_each’
/usr/lib/ruby/2.4.0/tsort.rb:350:in \`block (2 levels) in each\_strongly\_connected\_component’
/usr/lib/ruby/2.4.0/tsort.rb:431:in \`each\_strongly\_connected\_component\_from’
/usr/lib/ruby/2.4.0/tsort.rb:349:in \`block in each\_strongly\_connected\_component’
/usr/lib/ruby/2.4.0/tsort.rb:347:in \`each’
/usr/lib/ruby/2.4.0/tsort.rb:347:in \`call’
/usr/lib/ruby/2.4.0/tsort.rb:347:in \`each\_strongly\_connected\_component’
/usr/lib/ruby/2.4.0/tsort.rb:226:in \`tsort\_each’
/usr/lib/ruby/2.4.0/tsort.rb:205:in \`tsort\_each’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/initializable.rb:54:in \`run\_initializers’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/application.rb:352:in \`initialize\!’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/railtie.rb:193:in \`public\_send’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/railties-5.0.4/lib/rails/railtie.rb:193:in \`method\_missing’
/opt/openproject/config/environment.rb:34:in \`\<top (required)\>’
config.ru:32:in \`require’
config.ru:32:in \`block in
<main>
’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in \`instance\_eval’
/opt/openproject/vendor/bundle/ruby/2.4.0/gems/rack-2.0.3/lib/rack/builder.rb:55:in \`initialize’
config.ru:1:in \`new’
config.ru:1:in \`
<main>
’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in \`eval’
/usr/share/passenger/helper-scripts/rack-preloader.rb:110:in \`preload\_app’
/usr/share/passenger/helper-scripts/rack-preloader.rb:156:in \`<module:App>’
/usr/share/passenger/helper-scripts/rack-preloader.rb:30:in \`<module:PhusionPassenger>’
/usr/share/passenger/helper-scripts/rack-preloader.rb:29:in \`
<main>
’
In attachment you find the system information as reported by passenger