Content
Configuration Error
Added by Koichi MATSUMOTO over 2 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 (9)
I faced absolutely same issue.
OS: AlmaLinux 8.5 (CentOS successor)
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:and change it to:
and re-run open project configure.
for me that was line 328.
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.
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
Konstantin Karosanidze wrote:
Oh, my update process has finished successfully. Thanks, Konstantin!
Adam Szabo wrote:
My URL? https://prgrmmngr.com/
In our case, the configuration in the postgres database that finally included an URL was the SVN repository configuration:
But the configuration was made automatically by openproject reconfigure, we did not manually configure a URL anywhere.
Oh, please see below:
This is fixed with v12.1.1. Thanks, all! :)
Thank you for your feedback, good that it was fixed so super fast :) thank you for your help