Content
You are here:
Configuration cannot be completed
Added by Oleg Soletskiy over 2 years ago
I have freshly installed OpenProject and am now trying to configure it. But during this procedure I get an error message.
Output:
user@server:~$ sudo openproject configure
Launching installer for openproject...
Selected addons: legacy-installer openproject-edition postgres apache2 repositories smtp memcached openproject
[legacy-installer] ./bin/configure
[openproject-edition] ./bin/configure
DONE
[postgres] ./bin/configure
Trying to connect through password-based authentication...
psql command not present. Skipping check.
Postgres connection OK
DONE
[apache2] ./bin/configure
DONE
[repositories] ./bin/configure
No server installed. Skipping.
DONE
[smtp] ./bin/configure
DONE
[memcached] ./bin/configure
DONE
[openproject] ./bin/configure
DONE
[legacy-installer] ./bin/preinstall
[openproject-edition] ./bin/preinstall
[postgres] ./bin/preinstall
INFO: autoinstall=reuse. Skipping to next step.
[apache2] ./bin/preinstall
[repositories] ./bin/preinstall
[smtp] ./bin/preinstall
[memcached] ./bin/preinstall
[openproject] ./bin/preinstall
[legacy-installer] ./bin/postinstall
[openproject-edition] ./bin/postinstall
[postgres] ./bin/postinstall
[apache2] ./bin/postinstall
[repositories] ./bin/postinstall
[smtp] ./bin/postinstall
[memcached] ./bin/postinstall
[openproject] ./bin/postinstall
/opt/openproject/config/constants/settings/definition.rb:307:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_ATTACHMENTS_STORAGE_PATH instead of ATTACHMENTS_STORAGE_PATH (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:307:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_RAILS_CACHE_STORE instead of RAILS_CACHE_STORE (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:307:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_ATTACHMENTS_STORAGE_PATH instead of ATTACHMENTS_STORAGE_PATH (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:307:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_RAILS_CACHE_STORE instead of RAILS_CACHE_STORE (StructuredWarnings::StandardWarning)
rake aborted!
ActiveRecord::ConnectionNotEstablished: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:83:in `rescue in new_client'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:77:in `new_client'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_handling.rb:327:in `retrieve_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_handling.rb:283:in `connection'
/opt/openproject/lib/open_project/null_db_fallback.rb:33:in `fallback'
/opt/openproject/config/initializers/05-null_db_fallback.rb:34:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:326:in `load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:326:in `block in load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:326:in `load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:681:in `block in load_config_initializer'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/notifications.rb:205:in `instrument'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:680:in `load_config_initializer'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:633:in `each'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:633:in `block in <class:Engine>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:32:in `run'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:50:in `each'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/application.rb:391:in `initialize!'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/railtie.rb:207:in `public_send'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/railtie.rb:207:in `method_missing'
/opt/openproject/config/environment.rb:32:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/application.rb:367:in `require_environment!'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/sentry-ruby-core-5.2.1/lib/sentry/rake.rb:24:in `execute'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
bin/bundle:110:in `load'
bin/bundle:110:in `<main>'
Caused by:
PG::ConnectionBad: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/pg-1.3.5/lib/pg/connection.rb:637:in `async_connect_or_reset'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/pg-1.3.5/lib/pg/connection.rb:707:in `new'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/pg-1.3.5/lib/pg.rb:69:in `connect'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:78:in `new_client'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `public_send'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:882:in `new_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:926:in `checkout_new_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:905:in `try_to_checkout_new_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:866:in `acquire_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:588:in `checkout'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:428:in `connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:1128:in `retrieve_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_handling.rb:327:in `retrieve_connection'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activerecord-6.1.5.1/lib/active_record/connection_handling.rb:283:in `connection'
/opt/openproject/lib/open_project/null_db_fallback.rb:33:in `fallback'
/opt/openproject/config/initializers/05-null_db_fallback.rb:34:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:326:in `load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:326:in `block in load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:326:in `load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:681:in `block in load_config_initializer'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/notifications.rb:205:in `instrument'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:680:in `load_config_initializer'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:633:in `each'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/engine.rb:633:in `block in <class:Engine>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:32:in `run'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:50:in `each'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/application.rb:391:in `initialize!'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/railtie.rb:207:in `public_send'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/railtie.rb:207:in `method_missing'
/opt/openproject/config/environment.rb:32:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/zeitwerk-2.5.4/lib/zeitwerk/kernel.rb:35:in `require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `block in require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/activesupport-6.1.5.1/lib/active_support/dependencies.rb:332:in `require'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/application.rb:367:in `require_environment!'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/railties-6.1.5.1/lib/rails/application.rb:533:in `block in run_tasks_blocks'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/sentry-ruby-core-5.2.1/lib/sentry/rake.rb:24:in `execute'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
bin/bundle:110:in `load'
bin/bundle:110:in `<main>'
Tasks: TOP => db:migrate => db:load_config => environment
(See full trace by running task with --trace)
What can I do to complete the configuration?
Replies (1)
I have done it myself. The problem was with the connection to the database. As soon as the connection was created correctly and the parameters of the database were written correctly (name of the database had capital letters, which Postgresql could not understand), the configuration was done immediately.