Upgrade from 4.1 to 4.1.1 error

Added by Marius Stoica about 1 month ago

Hello!

I have Debian 10 with ruby 2.5.5, rails 5.2.4.1 served by Phusion Passenger 6.0.4 as module in Apache 2.4.38. I'm trying to upgrade Redmine from 4.1 to 4.1.1. When trying to generate the secret token I get this error message. What can be the problem?

$ bundle exec rake generate_secret_token
rake aborted!
TypeError: superclass mismatch for class Command
/var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:2:in `<class:Thor>'
/var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/command.rb:1:in `<top (required)>'
/var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/base.rb:1:in `require_relative'
/var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/base.rb:1:in `<top (required)>'
/var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/group.rb:1:in `require_relative'
/var/lib/gems/2.5.0/gems/thor-1.0.1/lib/thor/group.rb:1:in `<top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/generators.rb:6:in `require'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/generators.rb:6:in `<top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/app_updater.rb:3:in `require'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/app_updater.rb:3:in `<top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks/framework.rake:41:in `require'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks/framework.rake:41:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks/framework.rake:40:in `block in <top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks/framework.rake:3:in `<top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks.rb:21:in `load'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks.rb:21:in `block in <top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks.rb:20:in `each'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/tasks.rb:20:in `<top (required)>'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/application.rb:516:in `require'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/application.rb:516:in `run_tasks_blocks'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/engine.rb:459:in `load_tasks'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/railtie.rb:190:in `public_send'
/var/lib/gems/2.5.0/gems/railties-5.2.4.2/lib/rails/railtie.rb:190:in `method_missing'
/home/marius/redmine/Rakefile:7:in `<top (required)>'
/var/lib/gems/2.5.0/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `load'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:74:in `kernel_load'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/cli/exec.rb:28:in `run'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/cli.rb:463:in `exec'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/cli.rb:27:in `dispatch'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/cli.rb:18:in `start'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/exe/bundle:30:in `block in <top (required)>'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/usr/share/rubygems-integration/all/gems/bundler-1.17.3/exe/bundle:22:in `<top (required)>'
/usr/bin/bundle:23:in `load'
/usr/bin/bundle:23:in `<main>'
(See full trace by running task with --trace)

Replies (3)

RE: Upgrade from 4.1 to 4.1.1 error - Added by Liane Hampe about 1 month ago

Hi Marius,

A Superclass mismatch points to the problem that there is code (propably from different authors) that use the same class name and Ruby does not know which one to use. Therefore, I would guess you have some plugins installed. If so, you need to move them out of the realm of Redmine and try again.

If not, please let me know.

Best Regards,
Liane

RE: Upgrade from 4.1 to 4.1.1 error - Added by Marius Stoica about 1 month ago

It worked! Thank you very much!

(1-3/3)