# Bug OP-13946 - Error from rails at openproject configure : Rails couldn't infer whether you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases.

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-13946

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 13.1.1 |
| Observed in versions | 13.1.0 |
| Sprint | 13.1.1 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.1.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee | Oliver Günther |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

As said in the title the upgrade to 13.1.0 killed my production installation. And you don't even provide packages to downgrade in your repo, which is really poor behavior. I now have a completely defunct installation that I would need to work on importantly.

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Upgrade on RHEL9 via dnf upgrade
2.  openproject configure

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

  - Error from rails at openproject configure : Rails couldn't infer whether you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases. If you'd like to use this feature, please simplify your ERB.  
    rake aborted\!

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  A correct configuration run

### **Logs**

Launching installer for openproject...  
Selected addons: legacy-installer openproject-edition postgres apache2 repositories memcached openproject  
\[legacy-installer\] ./bin/configure  
\[openproject-edition\] ./bin/configure  
DONE  
\[postgres\] ./bin/configure  
DONE  
\[apache2\] ./bin/configure  
DONE  
\[repositories\] ./bin/configure  
No server installed. Skipping.  
DONE  
\[memcached\] ./bin/configure  
DONE  
\[openproject\] ./bin/configure  
DONE  
\[legacy-installer\] ./bin/preinstall  
\[openproject-edition\] ./bin/preinstall  
\[postgres\] ./bin/preinstall  
INFO: autoinstall=skip. Skipping to next step.  
\[apache2\] ./bin/preinstall  
\[repositories\] ./bin/preinstall  
\[memcached\] ./bin/preinstall  
No memcached server to install. Skipping.  
\[openproject\] ./bin/preinstall  
\[legacy-installer\] ./bin/postinstall  
\[openproject-edition\] ./bin/postinstall  
\[postgres\] ./bin/postinstall  
\[apache2\] ./bin/postinstall  
\[repositories\] ./bin/postinstall  
\[memcached\] ./bin/postinstall  
\[openproject\] ./bin/postinstall  
Using rake 13.1.0  
Using concurrent-ruby 1.2.2  
Using i18n 1.14.1  
Using minitest 5.20.0  
Using tzinfo 2.0.6  
Using activesupport 7.0.8  
Using builder 3.2.4  
Using erubi 1.12.0  
Using racc 1.7.3  
Using nokogiri 1.15.5 (x86\_64-linux)  
Using rails-dom-testing 2.2.0  
Using crass 1.0.6  
Using loofah 2.22.0  
Using rails-html-sanitizer 1.6.0  
Using actionview 7.0.8  
Using rack 2.2.8  
Using rack-test 2.1.0  
Using actionpack 7.0.8  
Using nio4r 2.7.0  
Using websocket-extensions 0.1.5  
Using websocket-driver 0.7.6  
Using actioncable 7.0.8  
Using globalid 1.2.1  
Using activejob 7.0.8  
Using activemodel 7.0.8  
Using activerecord 7.0.8  
Using marcel 1.0.2  
Using mini\_mime 1.1.5  
Using activestorage 7.0.8  
Using date 3.3.4  
Using timeout 0.4.1  
Using net-protocol 0.2.2  
Using net-imap 0.4.7  
Using net-pop 0.1.2  
Using net-smtp 0.4.0  
Using mail 2.8.1  
Using actionmailbox 7.0.8  
Using actionmailer 7.0.8  
Using method\_source 1.0.0  
Using thor 1.3.0  
Using zeitwerk 2.6.12  
Using railties 7.0.8  
Using actionpack-xml\_parser 2.0.1  
Using actiontext 7.0.8  
Using activemodel-serializers-xml 1.0.2  
Using activerecord-import 1.5.1  
Using activerecord-nulldb-adapter 1.0.1  
Using cgi 0.4.0  
Using multi\_json 1.15.0  
Using activerecord-session\_store 2.1.0  
Using acts\_as\_list 1.1.0  
Using acts\_as\_tree 2.9.1  
Using public\_suffix 5.0.4  
Using addressable 2.8.5  
Using aes\_key\_wrap 1.1.0  
Using rbtree3 0.7.1  
Using airbrake-ruby 6.2.2  
Using airbrake 13.0.4  
Using appsignal 3.4.16  
Using attr\_required 1.0.1  
Using auto\_strip\_attributes 2.6.0  
Using awesome\_nested\_set 3.6.0  
Using aws-eventstream 1.3.0  
Using aws-partitions 1.862.0  
Using aws-sigv4 1.8.0  
Using jmespath 1.6.2  
Using aws-sdk-core 3.190.0  
Using aws-sdk-kms 1.74.0  
Using aws-sdk-s3 1.141.0  
Using aws-sdk-sns 1.70.0  
Using base64 0.2.0  
Using bcrypt 3.1.20  
Using bindata 2.4.15  
Using msgpack 1.7.2  
Using bootsnap 1.17.0  
Using browser 5.3.1  
Using budgets 1.0.0 from source at \`modules/budgets\`  
Using bundler 2.4.6  
Using mime-types-data 3.2023.1003  
Using mime-types 3.5.1  
Using ssrf\_filter 1.1.2  
Using carrierwave 1.3.2  
Using excon 0.105.0  
Using formatador 1.1.0  
Using fog-core 2.3.0  
Using fog-json 1.2.0  
Using fog-xml 0.1.4  
Using fog-aws 3.21.0  
Using carrierwave\_direct 2.1.0  
Using with\_advisory\_lock 5.0.0  
Using closure\_tree 7.4.0  
Using commonmarker 0.23.10  
Using connection\_pool 2.4.1  
Using costs 1.0.0 from source at \`modules/costs\`  
Using css\_parser 1.16.0  
Using daemons 1.4.1  
Using dalli 3.2.6  
Using grids 1.0.0 from source at \`modules/grids\`  
Using dashboards 1.0.0 from source at \`modules/dashboards\`  
Using date\_validator 0.12.0  
Using html-pipeline 2.14.3  
Using deckar01-task\_list 2.3.3  
Using declarative 0.0.20  
Using et-orbi 1.2.7  
Using raabro 1.4.0  
Using fugit 1.9.0  
Using delayed\_cron\_job 0.9.0  
Using delayed\_job 4.1.11  
Using delayed\_job\_active\_record 4.1.8  
Using trailblazer-option 0.1.2  
Using uber 0.1.0  
Using representable 3.2.0  
Using disposable 0.6.3  
Using doorkeeper 5.6.8  
Using dry-container 0.11.0  
Using dry-core 1.0.1  
Using dry-inflector 1.0.0  
Using dry-logic 1.5.0  
Using dry-types 1.7.1  
Using email\_validator 2.2.4  
Using escape\_utils 1.3.0  
Using factory\_bot 6.4.2  
Using factory\_bot\_rails 6.4.2  
Using faraday-net\_http 3.0.2  
Using ruby2\_keywords 0.0.5  
Using faraday 2.7.12  
Using faraday-follow\_redirects 0.3.0  
Using fastimage 2.2.7  
Using ffi 1.16.3  
Using friendly\_id 5.5.1  
Using front\_matter\_parser 1.0.1  
Using glob 0.4.0  
Using request\_store 1.5.1  
Using gon 6.4.0  
Using jwt 2.7.1  
Using os 1.1.4  
Using signet 0.18.0  
Using googleauth 1.8.1  
Using httpclient 2.8.3  
Using retriable 3.1.2  
Using rexml 3.2.6  
Using webrick 1.8.1  
Using google-apis-core 0.11.2  
Using google-apis-gmail\_v1 0.36.0  
Using mustermann 3.0.0  
Using mustermann-grape 1.0.2  
Using rack-accept 0.4.5  
Using grape 2.0.0  
Using grape\_logging 1.8.4  
Using gravatar\_image\_tag 1.2.0  
Using hana 1.3.7  
Using hashie 3.6.0  
Using htmlbeautifier 1.4.2  
Using htmldiff 0.0.1  
Using htmlentities 4.3.4  
Using i18n-js 4.2.3  
Using ice\_cube 0.16.4  
Using icalendar 2.10.1  
Using iso8601 0.13.0  
Using json 2.7.0  
Using json-jwt 1.16.3  
Using json-schema 4.1.1  
Using regexp\_parser 2.8.2  
Using unf\_ext 0.0.9.1  
Using unf 0.1.4  
Using simpleidn 0.2.1  
Using json\_schemer 2.1.1  
Using omniauth 1.9.0 from <https://github.com/opf/omniauth> (at fe862f9@fe862f9)  
Using rack-oauth2 2.2.0  
Using swd 2.0.2  
Using validate\_email 0.1.6  
Using validate\_url 1.0.15  
Using webfinger 2.1.2  
Using openid\_connect 2.2.0  
Using omniauth-openid-connect 0.4.0 from <https://github.com/opf/omniauth-openid-connect.git> (at d63f596@d63f596)  
Using rails 7.0.8  
Using lobby\_boy 0.1.3  
Using lograge 0.14.0  
Using redcarpet 3.6.0  
Using rouge 4.2.0  
Using view\_component 3.8.0  
Using yard 0.9.34  
Using lookbook 2.1.1  
Using matrix 0.4.2  
Using pdf-core 0.9.0  
Using ttfunk 1.7.0  
Using prawn 2.4.0  
Using prawn-table 0.2.2  
Using text-hyphen 1.5.0  
Using md\_to\_pdf 0.0.20 from <https://github.com/opf/md-to-pdf> (at cc28665@cc28665)  
Using messagebird-rest 1.4.2  
Using meta-tags 2.19.0  
Using mini\_magick 4.12.0  
Using my\_page 1.0.0 from source at \`modules/my\_page\`  
Using net-ldap 0.18.0  
Using oj 3.16.1  
Using okcomputer 1.18.5  
Using omniauth-openid\_connect-providers 0.2.0 from <https://github.com/opf/omniauth-openid\_connect-providers.git> (at c7e2498@c7e2498)  
Using ruby-saml 1.16.0  
Using omniauth-saml 1.10.3  
Using openproject-auth\_plugins 1.0.0 from source at \`modules/auth\_plugins\`  
Using openproject-auth\_saml 1.0.0 from source at \`modules/auth\_saml\`  
Using openproject-avatars 1.0.0 from source at \`modules/avatars\`  
Using openproject-backlogs 1.0.0 from source at \`modules/backlogs\`  
Using rubyzip 2.3.2  
Using openproject-bim 1.0.0 from source at \`modules/bim\`  
Using openproject-boards 1.0.0 from source at \`modules/boards\`  
Using openproject-calendar 1.0.0 from source at \`modules/calendar\`  
Using openproject-documents 1.0.0 from source at \`modules/documents\`  
Using openproject-webhooks 1.0.0 from source at \`modules/webhooks\`  
Using openproject-github\_integration 1.0.0 from source at \`modules/github\_integration\`  
Using openproject-gitlab\_integration 2.1.2 from <https://github.com/btey/openproject-gitlab-integration.git>  
Using openproject-job\_status 1.0.0 from source at \`modules/job\_status\`  
Using openproject-ldap\_groups 1.0.0 from source at \`modules/ldap\_groups\`  
Using openproject-meeting 1.0.0 from source at \`modules/meeting\`  
Using openproject-octicons 19.8.0  
Using openproject-octicons\_helper 19.8.0  
Using openproject-openid\_connect 1.0.0 from source at \`modules/openid\_connect\`  
Using openproject-primer\_view\_components 0.18.1  
Using recaptcha 5.16.0  
Using openproject-recaptcha 1.0.0 from source at \`modules/recaptcha\`  
Using openproject-reporting 1.0.0 from source at \`modules/reporting\`  
Using openproject-storages 1.0.0 from source at \`modules/storages\`  
Using openproject-team\_planner 1.0.0 from source at \`modules/team\_planner\`  
Using openproject-token 4.0.0  
Using rotp 6.3.0  
Using openproject-two\_factor\_authentication 1.0.0 from source at \`modules/two\_factor\_authentication\`  
Using ruby-ole 1.2.12.2  
Using spreadsheet 1.3.0  
Using openproject-xls\_export 1.0.0 from source at \`modules/xls\_export\`  
Using overviews 1.0.0 from source at \`modules/overviews\`  
Using ox 2.14.17  
Using paper\_trail 12.3.0  
Using pg 1.5.4  
Using plaintext 0.3.4  
Using stringio 3.1.0  
Using psych 5.1.1.1  
Using puma 6.4.0  
Using puma-plugin-statsd 2.5.0  
Using rack-attack 6.7.0  
Using rack-cors 2.0.1  
Using rack-protection 3.1.0  
Using rack-timeout 0.6.3  
Using rails-i18n 7.0.8  
Using rdoc 6.6.0  
Using redis-client 0.18.0  
Using redis 5.0.8  
Using responders 3.1.1  
Using rinku 2.0.6  
Using roar 1.2.0  
Using ruby-duration 3.2.3  
Using ruby-progressbar 1.13.0  
Using rubytree 2.0.2  
Using sanitize 6.1.0  
Using secure\_headers 6.5.0  
Using semantic 1.6.1  
Using sprockets 3.7.2  
Using sprockets-rails 3.4.2  
Using store\_attribute 1.2.0  
Using stringex 2.8.6  
Using structured\_warnings 0.4.0  
Using svg-graph 2.2.2  
Using sys-filesystem 1.4.4  
Using turbo-rails 1.5.0  
Using typed\_dag 2.0.2  
Using tzinfo-data 1.2023.3  
Using warden 1.2.9  
Using warden-basic\_auth 0.2.1  
Using will\_paginate 4.0.0  
Bundle complete\! 190 Gemfile dependencies, 269 gems now installed.  
Gems in the groups 'development' and 'test' were not installed.  
Bundled gems are installed into \`./vendor/bundle\`  
Custom Gemfile present. Need to recompile rails assets. Setting RECOMPILE\_RAILS\_ASSETS=true  
RECOMPILE\_ANGULAR\_ASSETS was set. Installing node dependencies...

\> openproject@0.1.0 postinstall  
\> cd frontend && npm install

up to date in 1s

226 packages are looking for funding  
 run \`npm fund\` for details

up to date in 2s

10 packages are looking for funding  
 run \`npm fund\` for details  
Rails couldn't infer whether you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases. If you'd like to use this feature, please simplify your ERB.  
Rails couldn't infer whether you are using multiple databases from your database.yml and can't generate the tasks for the non-primary databases. If you'd like to use this feature, please simplify your ERB.  
rake aborted\!  
ArgumentError: missing keyword: :permissible\_on (ArgumentError)  
/opt/openproject/lib/open\_project/access\_control/permission.rb:42:in \`initialize'  
/opt/openproject/lib/open\_project/access\_control/mapper.rb:33:in \`new'  
/opt/openproject/lib/open\_project/access\_control/mapper.rb:33:in \`permission'  
/opt/openproject/lib/redmine/plugin.rb:325:in \`block (2 levels) in permission'  
/opt/openproject/lib/open\_project/access\_control/mapper.rb:42:in \`project\_module'  
/opt/openproject/lib/redmine/plugin.rb:324:in \`block in permission'  
/opt/openproject/lib/open\_project/access\_control.rb:36:in \`map'  
/opt/openproject/lib/redmine/plugin.rb:323:in \`permission'  
/opt/openproject/vendor/bundle/ruby/3.2.0/bundler/gems/openproject-gitlab-integration-54cfe5dd4931/lib/open\_project/gitlab\_integration/engine.rb:47:in \`block (2 levels) in \<class:Engine\>'  
/opt/openproject/lib/redmine/plugin.rb:344:in \`instance\_eval'  
/opt/openproject/lib/redmine/plugin.rb:344:in \`block in project\_module'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:445:in \`instance\_exec'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:445:in \`block in make\_lambda'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:199:in \`block (2 levels) in halting'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:687:in \`block (2 levels) in default\_terminator'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:686:in \`catch'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:686:in \`block in default\_terminator'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:200:in \`block in halting'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:595:in \`block in invoke\_before'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:595:in \`each'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:595:in \`invoke\_before'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/callbacks.rb:106:in \`run\_callbacks'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.8/lib/active\_support/reloader.rb:88:in \`prepare\!'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/application/finisher.rb:68:in \`block in \<module:Finisher\>'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in \`instance\_exec'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/initializable.rb:32:in \`run'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/initializable.rb:61:in \`block in run\_initializers'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/initializable.rb:60:in \`run\_initializers'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/application.rb:372:in \`initialize\!'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/railtie.rb:226:in \`public\_send'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/railtie.rb:226:in \`method\_missing'  
/opt/openproject/config/environment.rb:32:in \`\<top (required)\>'  
\<internal:/opt/openproject/vendor/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core\_ext/kernel\_require.rb\>:37:in \`require'  
\<internal:/opt/openproject/vendor/ruby-3.2.1/lib/ruby/3.2.0/rubygems/core\_ext/kernel\_require.rb\>:37:in \`require'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/zeitwerk-2.6.12/lib/zeitwerk/kernel.rb:38:in \`require'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/application.rb:348:in \`require\_environment\!'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/railties-7.0.8/lib/rails/application.rb:506:in \`block in run\_tasks\_blocks'  
/opt/openproject/vendor/bundle/ruby/3.2.0/gems/rake-13.1.0/exe/rake:27:in \`\<top (required)\>'  
/opt/openproject/bin/bundle:110:in \`load'  
/opt/openproject/bin/bundle:110:in \`\<main\>'  
Tasks: TOP =\> db:migrate =\> db:load\_config =\> environment  
(See full trace by running task with --trace)

### Screenshots and other files

*My configuration :*

``` text
export CUSTOM_PLUGIN_GEMFILE="/etc/openproject/Gemfile.custom"
export RECOMPILE_ANGULAR_ASSETS="true"
export DATABASE_URL="postgres://usr:pw@%2Frun%2Fpostgresql/op"
export SERVER_PROTOCOL_FORCE_HTTPS="true"
export OPENPROJECT_INSTALLATION__TYPE="packager"
export MEMCACHED_SERVERS="/run/memcached/memcached.sock"
export OPENPROJECT_CACHE__MEMCACHE__SERVER="/run/memcached/memcached.sock"
export OPENPROJECT_HTTPS="true"
export OPENPROJECT_HSTS="true"
export OPENPROJECT_SEED_ADMIN_USER_MAIL="admin@domain.com"
export OPENPROJECT_DEFAULT_LANGUAGE="en"
export RECOMPILE_RAILS_ASSETS="true"
export EXECJS_RUNTIME="Node"
export OPENPROJECT_RAILS__CACHE__STORE="memcache"
export OPENPROJECT_ATTACHMENTS__STORAGE__PATH="/var/db/openproject/files"
export HOST="127.0.0.1"
export WEB_TIMEOUT="300"
export SECRET_KEY_BASE="key"
export SECRET_TOKEN="token"
```

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [ ] Hosted cloud edition
- [x] Packaged installation
    - RHEL9
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*13.1.0*

**Browser**

- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
