Closed SandraK82 closed 5 years ago
bundle exec rake redmine:plugins RAILS_ENV=production rake aborted! NoMethodError: undefined method alias_method_chain' for IssuesController:Class Did you mean? alias_method /var/www/redmine/redmine-4.0.1/plugins/redmine_issues_tree/lib/redmine_issues_tree/issues_controller_patch.rb:5:inblock in ' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:in class_eval' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:inappend_features' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:30:in include' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:30:inblock in require_patch' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:23:in each' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:23:inrequire_patch' /var/www/redmine/redmine-4.0.1/plugins/redmine_issues_tree/init.rb:17:in block in <top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:ininstance_exec' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:in block in make_lambda' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:198:inblock (2 levels) in halting' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:606:in block (2 levels) in default_terminator' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:incatch' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:in block in default_terminator' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:199:inblock in halting' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in block in invoke_before' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:ineach' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in invoke_before' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:131:inrun_callbacks' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/reloader.rb:89:in prepare!' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application/finisher.rb:63:inblock in ' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in instance_exec' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:inrun' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in block in run_initializers' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:inrun_initializers' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:in initialize!' /var/www/redmine/redmine-4.0.1/config/environment.rb:14:in<top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in require' /usr/share/rvm/gems/ruby-2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in block in require' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in require' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:inrequire_environment!' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:in block in run_tasks_blocks' /var/www/redmine/redmine-4.0.1/lib/tasks/redmine.rake:57:inblock (2 levels) in <top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/rake-12.3.2/exe/rake:27:in <top (required)>' /usr/share/rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:ineval' /usr/share/rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:in `' Tasks: TOP => redmine:plugins:migrate => environment
alias_method_chain' for IssuesController:Class Did you mean? alias_method /var/www/redmine/redmine-4.0.1/plugins/redmine_issues_tree/lib/redmine_issues_tree/issues_controller_patch.rb:5:in
class_eval' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:in
include' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:30:in
each' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:23:in
block in <top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:in
block in make_lambda' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:198:in
block (2 levels) in default_terminator' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:in
block in default_terminator' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:199:in
block in invoke_before' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in
invoke_before' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:131:in
prepare!' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application/finisher.rb:63:in
instance_exec' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in
block in run_initializers' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in
initialize!' /var/www/redmine/redmine-4.0.1/config/environment.rb:14:in
require' /usr/share/rvm/gems/ruby-2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
block in require' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in
require' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:in
block in run_tasks_blocks' /var/www/redmine/redmine-4.0.1/lib/tasks/redmine.rake:57:in
<top (required)>' /usr/share/rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:in
Most likely, you use a wrong branch of the plugin. Please, switch to branch 4.0.x. Only this one working properly with Redmine 4.0.1.
4.0.x
Looks like problem is solved.
bundle exec rake redmine:plugins RAILS_ENV=production rake aborted! NoMethodError: undefined method'
/usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:in '
/usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in '
Tasks: TOP => redmine:plugins:migrate => environment
alias_method_chain' for IssuesController:Class Did you mean? alias_method /var/www/redmine/redmine-4.0.1/plugins/redmine_issues_tree/lib/redmine_issues_tree/issues_controller_patch.rb:5:in
block inclass_eval' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/concern.rb:122:in
append_features' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:30:ininclude' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:30:in
block in require_patch' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:23:ineach' /usr/share/rvm/gems/ruby-2.5.0/gems/require_patch-0.3.3/lib/require_patch.rb:23:in
require_patch' /var/www/redmine/redmine-4.0.1/plugins/redmine_issues_tree/init.rb:17:inblock in <top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:in
instance_exec' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:426:inblock in make_lambda' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:198:in
block (2 levels) in halting' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:606:inblock (2 levels) in default_terminator' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:in
catch' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:605:inblock in default_terminator' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:199:in
block in halting' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:inblock in invoke_before' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:in
each' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:513:ininvoke_before' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/callbacks.rb:131:in
run_callbacks' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/reloader.rb:89:inprepare!' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application/finisher.rb:63:in
block ininstance_exec' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in
run' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:inblock in run_initializers' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in
run_initializers' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:ininitialize!' /var/www/redmine/redmine-4.0.1/config/environment.rb:14:in
<top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:inrequire' /usr/share/rvm/gems/ruby-2.5.0/gems/polyglot-0.3.5/lib/polyglot.rb:65:in
require' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inblock in require' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in
load_dependency' /usr/share/rvm/gems/ruby-2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:in
require_environment!' /usr/share/rvm/gems/ruby-2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:inblock in run_tasks_blocks' /var/www/redmine/redmine-4.0.1/lib/tasks/redmine.rake:57:in
block (2 levels) in <top (required)>' /usr/share/rvm/gems/ruby-2.5.0/gems/rake-12.3.2/exe/rake:27:in<top (required)>' /usr/share/rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:in
eval' /usr/share/rvm/gems/ruby-2.5.0/bin/ruby_executable_hooks:24:in `