Content
[RESOLVED] Migration error
Added by Stefano Stucchi over 3 years ago
Try migration with latest version i got this errror:
[openproject] ./bin/postinstall
rake aborted!
NoMethodError: undefined method `patch_gem_version' for OpenProject::Patches:Module
/opt/openproject/lib/open_project/patches/declarative_option.rb:44:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
/opt/openproject/config/initializers/10-load_patches.rb:35:in `block in <top (required)>'
/opt/openproject/config/initializers/10-load_patches.rb:34:in `each'
/opt/openproject/config/initializers/10-load_patches.rb:34:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:326:in `load'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:326:in `block in load'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:326:in `load'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:681:in `block in load_config_initializer'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/notifications.rb:205:in `instrument'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:680:in `load_config_initializer'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:634:in `block (2 levels) in <class:Engine>'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:633:in `each'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/engine.rb:633:in `block in <class:Engine>'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:32:in `instance_exec'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:32:in `run'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:61:in `block in run_initializers'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:50:in `each'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:50:in `tsort_each_child'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/initializable.rb:60:in `run_initializers'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/application.rb:384:in `initialize!'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/railtie.rb:207:in `public_send'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/railtie.rb:207:in `method_missing'
/opt/openproject/config/environment.rb:34:in `<top (required)>'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/zeitwerk-2.4.2/lib/zeitwerk/kernel.rb:34:in `require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `block in require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:299:in `load_dependency'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/activesupport-6.1.2.1/lib/active_support/dependencies.rb:332:in `require'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/application.rb:360:in `require_environment!'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/railties-6.1.2.1/lib/rails/application.rb:526:in `block in run_tasks_blocks'
/opt/openproject/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/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)
Replies (7)
Same here. Created working package #36717 on this.
Got the same problem. Reverted to 11.2.0 and everything is fine.
How can I revert to 11.2.?
Im running the OpenProject docker image. In my case i just needed to set the container image to "openproject/community:11.2.0".
So, is there a way to revert the update? . . .
@Oliver Günther has answered how to downgrade in #36717.
Hi everyone. We'll be releasing a 12.2.2 now to fix that issue. Sorry for the issues.