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. [RESOLVED] Migration error

[RESOLVED] Migration error

Added by Stefano Stucchi about 4 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)

RE: Migration error - Added by Jan F. Orth about 4 years ago

Same here. Created working package #36717 on this.

RE: Migration error - Added by Jan Arens about 4 years ago

Got the same problem. Reverted to 11.2.0 and everything is fine.

RE: Migration error - Added by Jan F. Orth about 4 years ago

How can I revert to 11.2.?

RE: Migration error - Added by Jan Arens about 4 years ago

Im running the OpenProject docker image. In my case i just needed to set the container image to "openproject/community:11.2.0".

RE: Migration error - Added by Stefano Stucchi about 4 years ago

So, is there a way to revert the update? . . .

RE: Migration error - Added by Jan F. Orth about 4 years ago

@Oliver Günther has answered how to downgrade in #36717.

RE: Migration error - Added by Oliver Günther about 4 years ago

Hi everyone. We'll be releasing a 12.2.2 now to fix that issue. Sorry for the issues.

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