Open xujohn opened 5 years ago
Try to install it in redmine 4.0.0, got following exception.
root@redmine:/opt/redmine# RAILS_ENV=production rake redmine:plugins:migrate NAME=event_notifications rake aborted! NoMethodError: undefined method alias_method_chain' for User (call 'User.connection' to establish a connection):Class Did you mean? alias_method /var/lib/gems/2.5.0/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb:22:inmethod_missing' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:11:in block in included' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:9:inclass_eval' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:9:in included' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:188:ininclude' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:188:in <top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in block in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in require' /opt/redmine/plugins/event_notifications/init.rb:4:in<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inblock in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in load_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /opt/redmine/lib/redmine/plugin.rb:173:in block in load' /opt/redmine/lib/redmine/plugin.rb:164:ineach' /opt/redmine/lib/redmine/plugin.rb:164:in load' /opt/redmine/config/initializers/30-redmine.rb:21:in<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in load' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:inblock in load' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in load_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:inload' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:657:in block in load_config_initializer' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:ininstrument' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:656:in load_config_initializer' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:614:inblock (2 levels) in ' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in each' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:inblock in ' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in instance_exec' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:inrun' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:in block in run_initializers' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:ineach' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in tsort_each_child' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:inrun_initializers' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:in initialize!' /opt/redmine/config/environment.rb:14:in<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inblock in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in load_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:in require_environment!' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:inblock in run_tasks_blocks' /var/lib/gems/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)
alias_method_chain' for User (call 'User.connection' to establish a connection):Class Did you mean? alias_method /var/lib/gems/2.5.0/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb:22:in
block in included' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:9:in
included' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:188:in
<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
block in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in
require' /opt/redmine/plugins/event_notifications/init.rb:4:in
require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
load_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
block in load' /opt/redmine/lib/redmine/plugin.rb:164:in
load' /opt/redmine/config/initializers/30-redmine.rb:21:in
load' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in
load_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in
block in load_config_initializer' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:in
load_config_initializer' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:614:in
each' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in
instance_exec' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in
block in run_initializers' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in
tsort_each_child' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in
initialize!' /opt/redmine/config/environment.rb:14:in
require_environment!' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:in
Confirmed!
My enviroment:
Confirmed also here. Same environment of @davidgxxl .
Thanks.
Try to install it in redmine 4.0.0, got following exception.
root@redmine:/opt/redmine# RAILS_ENV=production rake redmine:plugins:migrate NAME=event_notifications rake aborted! NoMethodError: undefined method'
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in '
/var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in
alias_method_chain' for User (call 'User.connection' to establish a connection):Class Did you mean? alias_method /var/lib/gems/2.5.0/gems/activerecord-5.2.2/lib/active_record/dynamic_matchers.rb:22:in
method_missing' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:11:inblock in included' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:9:in
class_eval' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:9:inincluded' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:188:in
include' /opt/redmine/plugins/event_notifications/lib/event_notification/patches/user_patch.rb:188:in<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inblock in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in
load_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /opt/redmine/plugins/event_notifications/init.rb:4:in
<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
block in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
require' /opt/redmine/lib/redmine/plugin.rb:173:inblock in load' /opt/redmine/lib/redmine/plugin.rb:164:in
each' /opt/redmine/lib/redmine/plugin.rb:164:inload' /opt/redmine/config/initializers/30-redmine.rb:21:in
<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:inload' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in
block in load' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:285:in
load' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:657:inblock in load_config_initializer' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/notifications.rb:170:in
instrument' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:656:inload_config_initializer' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:614:in
block (2 levels) ineach' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/engine.rb:613:in
block ininstance_exec' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:32:in
run' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:61:inblock in run_initializers' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:in
each' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:50:intsort_each_child' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/initializable.rb:60:in
run_initializers' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:361:ininitialize!' /opt/redmine/config/environment.rb:14:in
<top (required)>' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
block in require' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency' /var/lib/gems/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in
require' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:337:inrequire_environment!' /var/lib/gems/2.5.0/gems/railties-5.2.2/lib/rails/application.rb:520:in
block in run_tasks_blocks' /var/lib/gems/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>' Tasks: TOP => redmine:plugins:migrate => environment (See full trace by running task with --trace)