Actions
Defect #44043
closedMissing dependency while upgrade
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Resolution:
Invalid
Affected version:
Description
While updating from Redmine 5.1.10 to 6.1.2, the command bundle exec rake generate_secret_token failed (output generated with --trace):
rake aborted! LoadError: cannot load such file -- matrix (LoadError) <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:38:in `require' <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:38:in `require' /var/lib/gems/3.2.0/gems/zeitwerk-2.7.5/lib/zeitwerk/core_ext/kernel.rb:34:in `require' /var/lib/gems/3.2.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require' /var/lib/gems/3.2.0/gems/prawn-2.4.0/lib/prawn/transformation_stack.rb:10:in `<top (required)>' /var/lib/gems/3.2.0/gems/prawn-2.4.0/lib/prawn.rb:67:in `require_relative' /var/lib/gems/3.2.0/gems/prawn-2.4.0/lib/prawn.rb:67:in `<top (required)>' /var/lib/gems/3.2.0/gems/zeitwerk-2.7.5/lib/zeitwerk/core_ext/kernel.rb:34:in `require' /var/lib/gems/3.2.0/gems/zeitwerk-2.7.5/lib/zeitwerk/core_ext/kernel.rb:34:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.4.20/lib/bundler/runtime.rb:60:in `block (2 levels) in require' /usr/share/rubygems-integration/all/gems/bundler-2.4.20/lib/bundler/runtime.rb:55:in `each' /usr/share/rubygems-integration/all/gems/bundler-2.4.20/lib/bundler/runtime.rb:55:in `block in require' /usr/share/rubygems-integration/all/gems/bundler-2.4.20/lib/bundler/runtime.rb:44:in `each' /usr/share/rubygems-integration/all/gems/bundler-2.4.20/lib/bundler/runtime.rb:44:in `require' /usr/share/rubygems-integration/all/gems/bundler-2.4.20/lib/bundler.rb:187:in `require' /opt/redmine-6.1.2/config/application.rb:18:in `<top (required)>' <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:38:in `require' <internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:38:in `require' /opt/redmine-6.1.2/Rakefile:5:in `<top (required)>' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/rake_module.rb:29:in `load' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/rake_module.rb:29:in `load_rakefile' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:735:in `raw_load_rakefile' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:127:in `block in load_rakefile' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:209:in `standard_exception_handling' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:126:in `load_rakefile' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:83:in `block in run' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:209:in `standard_exception_handling' /var/lib/gems/3.2.0/gems/rake-13.4.2/lib/rake/application.rb:81:in `run' /var/lib/gems/3.2.0/gems/rake-13.4.2/exe/rake:27:in `<top (required)>' /usr/bin/rake:25:in `load' /usr/bin/rake:25:in `<main>'
Apparently, the dependency matrix is missing in the Gemfile. I could fix this with the following commands:
bundle add matrix bundle installI am using the following version:
- mysql 8.0.45
- ruby 3.2.3
- Linux (Ubuntu 24.04)
Updated by Martin Hierholzer about 19 hours ago
Sorry, my "fix" does not work. It will then fail later during db migration with a similar error:
# sudo -u www-data bundle exec rake db:migrate RAILS_ENV=production rake aborted! LoadError: cannot load such file -- redmine_resources (LoadError_ [...]
Which obviously cannot be fixed like that...
Updated by Go MAEDA about 18 hours ago
It is possible that some third-party plugins cause the issue. Could you try uninstalling all plugins and then try again?
Updated by Martin Hierholzer about 13 hours ago
You were right, sorry, this was caused by an outdated plugin. This issue can be closed.
Updated by Holger Just about 10 hours ago
- Status changed from New to Closed
- Resolution set to Invalid
Thanks for your feedback.
Actions