Bug #451
closedFailed to upgrade from V4.5.1 -> V4.5.2/V4.6
0%
Description
Hello,
I just wanted to update the plugin from V4.5.1 to V4.6, but then I get the following error log
2022-06-01 12:33:02 stdout Tasks: TOP => redmine:plugins:migrate => environment
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/application.rb:520:in `block in run_tasks_blocks'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/application.rb:337:in `require_environment!'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2022-06-01 12:33:02 stdout /home/redmine/redmine/config/environment.rb:16:in `<top (required)>'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/application.rb:361:in `initialize!'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/initializable.rb:60:in `run_initializers'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/initializable.rb:50:in `tsort_each_child'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/initializable.rb:50:in `each'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/initializable.rb:61:in `block in run_initializers'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/initializable.rb:32:in `run'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/initializable.rb:32:in `instance_exec'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/engine.rb:619:in `block in <class:Engine>'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/engine.rb:619:in `each'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/engine.rb:662:in `load_config_initializer'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/activesupport-5.2.6.3/lib/active_support/notifications.rb:170:in `instrument'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/railties-5.2.6.3/lib/rails/engine.rb:663:in `block in load_config_initializer'
2022-06-01 12:33:02 stdout /home/redmine/redmine/config/initializers/30-redmine.rb:20:in `<top (required)>'
2022-06-01 12:33:02 stdout /home/redmine/redmine/lib/redmine/plugin.rb:178:in `load'
2022-06-01 12:33:02 stdout /home/redmine/redmine/lib/redmine/plugin.rb:178:in `each'
2022-06-01 12:33:02 stdout /home/redmine/redmine/lib/redmine/plugin.rb:187:in `block in load'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2022-06-01 12:33:02 stdout /home/redmine/data/tmp/bundle/ruby/2.7.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
2022-06-01 12:33:02 stdout /home/redmine/redmine/plugins/redmine_wktime/init.rb:288:in `<top (required)>'
2022-06-01 12:33:02 stdout NameError: uninitialized constant IssuesControllerPatch
2022-06-01 12:33:02 stdout rake aborted!
2022-06-01 12:32:52 stdout Migrating plugins. Please be patient, this could take a while...
After that I tried to update to V4.5.2 - same problem.
Everything works fine in this configuration:
Environment:
Redmine version 4.2.5.stable
Ruby version 2.7.5-p203 (2021-11-24) [x86_64-linux-gnu]
Rails version 5.2.6.3
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.13.0
Mercurial 5.3.1
Cvs 1.12.13
Bazaar 3.0.2
Git 2.35.1
Filesystem
Redmine plugins:
additionals 3.0.5.2
redmine_checklists 3.1.21
redmine_contacts 4.3.6
redmine_contacts_helpdesk 4.1.13
redmine_contacts_invoices 4.2.6
redmine_drive 1.1.3
redmine_lightbox2 0.5.1
redmine_products 2.1.5
redmine_wktime 4.5.1
redmine_wysiwyg_editor 0.23.0
vault 0.4.3