Project

General

Profile

Removing plugins in Redmin 5.1.1

Added by Evgeniy Lev 10 months ago

For some reason the proposed command for collecting information does not work (((
redmine@xxx:~/config$ cd /opt/redmine/
redmine@xxx:~$ RAILS_ENV=production script/about
bash: script/about: No such file or directory

Environment:
Redmine version 5.1.1.stable
Ruby version 3.0.2-p107 (2021-07-07) [x86_64-linux-gnu]
Rails version 6.1.7.6
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Filesystem
Redmine plugins:

Please explain to a newbie why in Redmin 5.0.0 - 5.0.7 the command was used to remove the plugin:
rake redmine:plugins:migrate NAME=plugin name VERSION=0 RAILS_ENV=production

and in Redmin 5.1.1 you need to use:
bundle exec rake redmine:plugins:migrate NAME=plugin name VERSION=0 RAILS_ENV=production

If I use the old command, I get:
redmine@xxx :~$ rake redmine:plugins:migrate NAME=plugin name VERSION=0 RAILS_ENV=production
rake aborted!
Gem::LoadError: You have already activated rake 13.0.6, but your Gemfile requires rake 13.1.0. Prepending `bundle exec` to your command may solve this.
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:304:in `check_for_activated_spec!'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:25:in `block in setup'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/spec_set.rb:191:in `each'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/spec_set.rb:191:in `each'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:24:in `map'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/runtime.rb:24:in `setup'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler.rb:162:in `setup'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/setup.rb:10:in `block in <top (required)>'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/ui/shell.rb:159:in `with_level'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/ui/shell.rb:111:in `silence'
/var/lib/gems/3.0.0/gems/bundler-2.5.4/lib/bundler/setup.rb:10:in `<top (required)>'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
/opt/redmine/config/boot.rb:6:in `<top (required)>'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
/opt/redmine/config/application.rb:3:in `<top (required)>'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
<internal:/usr/lib/ruby/vendor_ruby/rubygems/core_ext/kernel_require.rb>:85:in `require'
/opt/redmine/Rakefile:5:in `<top (required)>'
/usr/share/rubygems-integration/all/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
(See full trace by running task with)

Question 1
Is this a feature of Redmine 5.1.1 or did I do something wrong and that’s the only reason I need to remove plugins using the command:
bundle exec rake redmine:plugins:migrate NAME=plugin name VERSION=0 RAILS_ENV=production

Question 2
rake aborted!
Gem::LoadError: You have already activated rake 13.0.6, but your Gemfile requires rake 13.1.0. Prepending `bundle exec` to your command may solve this.

Indicates that there are two versions of rake 13.0.6 and 13.1.0 but where did they get two from??? The entire installation was carried out using an algorithm that had been previously tested many times and this problem did not arise on previous versions of Redmin...
I would be very grateful for clarification and assistance in this matter.