Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Configuration Error

Configuration Error

Added by Koichi MATSUMOTO about 3 years ago

When I updated OpenProject from 12.0.10 to 12.1.0 and did sudo openproject configure or sudo openproject reconfigure, I got the folloing error. Could anyone tell me how to fix this issue?

OS: Debian11.3

[legacy-installer] ./bin/preinstall
[openproject-edition] ./bin/preinstall
[postgres] ./bin/preinstall
INFO: autoinstall=reuse. Skipping to next step.
[apache2] ./bin/preinstall
[repositories] ./bin/preinstall
Module perl already enabled
Module dav already enabled
Considering dependency dav for dav_svn:
Module dav already enabled
Module dav_svn already enabled
Your MPM seems to be threaded. Selecting cgid instead of cgi.
Module cgid already enabled
[smtp] ./bin/preinstall
[memcached] ./bin/preinstall
[openproject] ./bin/preinstall
[legacy-installer] ./bin/postinstall

[openproject-edition] ./bin/postinstall
[postgres] ./bin/postinstall
[apache2] ./bin/postinstall
Last prefix was /
Module rewrite already enabled
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
Module proxy already enabled
Considering dependency proxy for proxy_http:
Module proxy already enabled
Module proxy_http already enabled
Module headers already enabled
Module expires already enabled
Considering dependency filter for deflate:
Module filter already enabled
Module deflate already enabled
Module filter already enabled
Site openproject already enabled
Syntax OK
[repositories] ./bin/postinstall
Setting up SVN integration for Apache
Setting up Git integration for Apache
[smtp] ./bin/postinstall
[memcached] ./bin/postinstall
[openproject] ./bin/postinstall
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_EMAIL_DELIVERY_METHOD instead of EMAIL_DELIVERY_METHOD (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_DOMAIN instead of SMTP_DOMAIN (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_PORT instead of SMTP_PORT (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_PASSWORD instead of SMTP_PASSWORD (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_AUTHENTICATION instead of SMTP_AUTHENTICATION (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_EMAIL_DELIVERY_METHOD instead of EMAIL_DELIVERY_METHOD (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_DOMAIN instead of SMTP_DOMAIN (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_PORT instead of SMTP_PORT (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_PASSWORD instead of SMTP_PASSWORD (StructuredWarnings::StandardWarning)
/opt/openproject/config/constants/settings/definition.rb:304:in `find_env_var_override': Using unprefixed environment variables is deprecated. Please use OPENPROJECT_SMTP_AUTHENTICATION instead of SMTP_AUTHENTICATION (StructuredWarnings::StandardWarning)
W, [2022-05-03T02:06:39.929707 #67506]  WARN -- : Creating scope :open. Overwriting existing method GithubPullRequest.open.
*** Seeding for locale: 'en'
*** Seeding basic data for standard edition
↳ BuiltinRolesSeeder
  *** Skipping built in role Non member - already exists
  *** Skipping built in role Anonymous - already exists
↳ RoleSeeder
↳ ActivitySeeder
↳ ColorSeeder
↳ ColorSchemeSeeder
↳ WorkflowSeeder
  *** Skipping types, statuses and workflows as there are already some configured
↳ PrioritySeeder
↳ SettingSeeder
  Loading discovered seeders:
↳ SettingSeeder
↳ EnumerationSeeder
*** Seeding admin user
*** Seeding demo data
↳ GroupSeeder
I, [2022-05-03T02:06:47.810645 #67506]  INFO -- :     ↳ Creating groups
↳ AttributeHelpTextSeeder
I, [2022-05-03T02:06:47.811344 #67506]  INFO -- :     ↳ Creating attribute help texts
↳ GlobalQuerySeeder
I, [2022-05-03T02:06:47.811670 #67506]  INFO -- :     ↳ Creating global queries
↳ ProjectSeeder
↳ OverviewSeeder
*** Loading action_view_railtie seed data
*** Loading active_storage seed data
*** Loading action_cable_engine seed data
*** Loading action_mailbox seed data
*** Loading action_text seed data
*** Loading doorkeeper_engine seed data
*** Loading typed_dag_engine seed data
*** Loading date_validator_engine seed data
*** Loading ok_computer seed data
*** Loading i18n_js_engine seed data
*** Loading sentry seed data
*** Loading openproject_auth_plugins seed data
*** Loading openproject_auth_saml seed data
*** Loading openproject_openid_connect seed data
*** Loading openproject_documents seed data
*** Loading openproject_xls_export seed data
*** Loading costs seed data
*** Loading openproject_reporting seed data
*** Loading openproject_meeting seed data
*** Loading openproject_pdf_export seed data
*** Loading openproject_backlogs seed data
*** Loading openproject_avatars seed data
*** Loading openproject_two_factor_authentication seed data
*** Loading openproject_webhooks seed data
*** Loading openproject_github_integration seed data
*** Loading openproject_ldap_groups seed data
*** Loading openproject_recaptcha seed data
*** Loading openproject_job_status seed data
*** Loading grids_engine seed data
*** Loading my_page_engine seed data
*** Loading dashboards seed data
*** Loading openproject_boards seed data
*** Loading overviews seed data
*** Loading budgets_engine seed data
*** Loading openproject_team_planner seed data
*** Loading openproject_calendar seed data
*** Loading openproject_storages seed data
*** Loading openproject_bim seed data
rake aborted!
Psych::DisallowedClass: Tried to load unspecified class: URI::Generic
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/class_loader.rb:99:in `find'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/class_loader.rb:28:in `load'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:424:in `resolve_class'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:213:in `visit_Psych_Nodes_Mapping'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:30:in `visit'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:35:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:343:in `each'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:343:in `each_slice'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:343:in `revive_hash'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:30:in `visit'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:35:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:345:in `block in revive_hash'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:343:in `each'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:343:in `each_slice'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:343:in `revive_hash'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:167:in `visit_Psych_Nodes_Mapping'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:30:in `visit'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:35:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:30:in `visit'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/visitor.rb:6:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:35:in `accept'
/opt/openproject/vendor/bundle/ruby/3.0.0/gems/psych-4.0.3/lib/psych.rb:335:in `safe_load'
/opt/openproject/app/models/setting.rb:328:in `deserialize'
/opt/openproject/app/models/setting.rb:281:in `cached_or_default'
/opt/openproject/app/models/setting.rb:179:in `[]'
/opt/openproject/app/models/setting.rb:118:in `repository_checkout_data'
/opt/openproject/app/models/setting.rb:127:in `method_missing'
/opt/openproject/lib/tasks/packager.rake:114:in `block (3 levels) in <top (required)>'
/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 => packager:postinstall => packager:setup:scm
(See full trace by running task with --trace)


Replies (10)

RE: Configuration Error - Added by Konstantin Karosanidze about 3 years ago

I faced absolutely same issue.

OS: AlmaLinux 8.5 (CentOS successor)

RE: Configuration Error - Added by Konstantin Karosanidze about 3 years ago

I managed to fix it by following update, not sure how correct way is it to fix but at list my installation updated and working.

find app/models/setting.rb-file in your installation and find line:

YAML::safe_load(value, permitted_classes: [Symbol, ActiveSupport::HashWithIndifferentAccess, Date, Time])

and change it to:

YAML::safe_load(value, permitted_classes: [Symbol, ActiveSupport::HashWithIndifferentAccess, Date, Time, URI::Generic])

and re-run open project configure.

for me that was line 328.

RE: Configuration Error - Added by Michael S. about 3 years ago

Had the same issue. My workaround was to disable SVN integration in reconfigure - then at least the project worked again, only repository pages still caused a 500 error. The "patch" above worked for me: after re-enabling SVN integration, reconfigure finished and I found no more 500 errors.

RE: Configuration Error - Added by Adam Szabo about 3 years ago

Hi Koichi MATSUMOTO

could you please elaborate which setting you configured with a URL?
A simple guess: Could it be maybe the help link?

Thank you for your answer

RE: Configuration Error - Added by Koichi MATSUMOTO about 3 years ago

Konstantin Karosanidze wrote:

I managed to fix it by following update, not sure how correct way is it to fix but at list my installation updated and working.

find app/models/setting.rb-file in your installation and find line:

YAML::safe_load(value, permitted_classes: [Symbol, ActiveSupport::HashWithIndifferentAccess, Date, Time])

and change it to:

YAML::safe_load(value, permitted_classes: [Symbol, ActiveSupport::HashWithIndifferentAccess, Date, Time, URI::Generic])

and re-run open project configure.

for me that was line 328.

Oh, my update process has finished successfully. Thanks, Konstantin!

Adam Szabo wrote:

could you please elaborate which setting you configured with a URL?
A simple guess: Could it be maybe the help link?

My URL? https://prgrmmngr.com/

RE: Configuration Error - Added by Michael S. about 3 years ago

In our case, the configuration in the postgres database that finally included an URL was the SVN repository configuration:

 139 | repository_checkout_data                  | ---                                                            +|
     |                                           | git:                                                           +|
     |                                           |   enabled: 0                                                   +|
     |                                           | subversion:                                                    +|
     |                                           |   enabled: 1                                                   +|
     |                                           |   base_url: !ruby/object:URI::Generic                          +|
     |                                           |     scheme: https                                              +|
     |                                           |     user:                                                      +|
     |                                           |     password:                                                  +|
     |                                           |     host: some.host.name.here                                  +|
     |                                           |     port:                                                      +|
     |                                           |     path: "/svn"                                               +|
     |                                           |     query:                                                     +|
     |                                           |     opaque:                                                    +|
     |                                           |     fragment:                                                  +|
     |                                           |     parser:                                                    +|
     |                                           |                                                                 |

But the configuration was made automatically by openproject reconfigure, we did not manually configure a URL anywhere.

RE: Configuration Error - Added by Koichi MATSUMOTO about 3 years ago

Oh, please see below:

 110 | repository_checkout_data                  | ---                                  +| 2021-07-20 17:02:19.313793
    |                                           | git:                                 +|
    |                                           |   enabled: 1                         +|
    |                                           |   base_url: !ruby/object:URI::Generic+|
    |                                           |     scheme: https                    +|
    |                                           |     user:                            +|
    |                                           |     password:                        +|
    |                                           |     host: prgrmmngr.com              +|
    |                                           |     port:                            +|
    |                                           |     path: "/git"                     +|
    |                                           |     query:                           +|
    |                                           |     opaque:                          +|
    |                                           |     fragment:                        +|
    |                                           |     parser:                          +|
    |                                           | subversion:                          +|
    |                                           |   enabled: 1                         +|
    |                                           |   base_url: !ruby/object:URI::Generic+|
    |                                           |     scheme: https                    +|
    |                                           |     user:                            +|
    |                                           |     password:                        +|
    |                                           |     host: prgrmmngr.com              +|
    |                                           |     port:                            +|
    |                                           |     path: "/svn"                     +|
    |                                           |     query:                           +|
    |                                           |     opaque:                          +|
    |                                           |     fragment:                        +|
    |                                           |     parser:                          +|
    |                                           |                                       |

RE: Configuration Error - Added by Koichi MATSUMOTO about 3 years ago

This is fixed with v12.1.1. Thanks, all! :)

RE: Configuration Error - Added by Adam Szabo about 3 years ago

Thank you for your feedback, good that it was fixed so super fast :) thank you for your help

RE: Configuration Error - Added by Manuel Noguera García about 2 months ago

I had the same issue, but had to solve it with additional steps because the file app/models/setting.rb was actually well configured (to locate it you can use: sudo find /opt/openproject/ -type f -path "*/app/models/setting.rb" 2>/dev/null).

To detect problematic libraries: sudo dpkg --configure -a

To remove/uninstall them:

sudo apt remove --purge libapache2-reload-perl
sudo apt remove --purge libapache2-mod-perl2
sudo apt remove --purge libapache2-mod-svn
sudo apt clean
sudo apt autoremove

And then, let OpenProject installer to install and configure them properly
sudo openproject (re)configure


  • (1 - 10/10)
Loading...