Project

General

Profile

Error after plugin install

Added by nicolas nicoco about 9 years ago

Hi,

I can not run Redmine after installing the plugin "Event notification master".

I place my plugin folder in "redmine-2.60/plugin" and I launched the command "rake redmine:plugins:migrate RAILS_ENV=production"

I then restart apache2 and from redmine does not want to run this. Here are the errors obtained :

Ruby (Rack) application could not be started
Error message:
uninitialized constant PrincipalMembershipsController
Exception class:
NameError
Application root:
/opt/redmine-2.6.0

And Backtrace :

0     /opt/redmine-2.6.0/plugins/event_notifications-master/lib/patches/principal_memberships_controller_patch.rb     18     in `'
1     /opt/redmine-2.6.0/plugins/event_notifications-master/init.rb     14     in `'
2     /opt/redmine-2.6.0/lib/redmine/plugin.rb     150     in `block in load'
3     /opt/redmine-2.6.0/lib/redmine/plugin.rb     141     in `each'
4     /opt/redmine-2.6.0/lib/redmine/plugin.rb     141     in `load'
5     /opt/redmine-2.6.0/config/initializers/30-redmine.rb     19     in `'
6     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/engine.rb     593     in `block (2 levels) in '
7     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/engine.rb     592     in `each'
8     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/engine.rb     592     in `block in '
9     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb     30     in `instance_exec'
10     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb     30     in `run'
11     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb     55     in `block in run_initializers'
12     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb     54     in `each'
13     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb     54     in `run_initializers'
14     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/application.rb     136     in `initialize!'
15     /var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/railtie/configurable.rb     30     in `method_missing'
16     /opt/redmine-2.6.0/config/environment.rb     14     in `'
17     config.ru     3     in `require'
18     config.ru     3     in `block in
'
19     /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb     51     in `instance_eval'
20     /var/lib/gems/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb     51     in `initialize'
21     config.ru     1     in `new'
22     config.ru     1     in `
'

Can you help me ?

Thanx


Replies (2)

RE: Error after plugin install - Added by nicolas nicoco about 9 years ago

For information, here is the return of the command "rake redmine:plugins:migrate RAILS_ENV=production" :

root@REDMINE:/opt/redmine-2.6.0/plugins# rake redmine:plugins:migrate RAILS_ENV=production
(in /opt/redmine-2.6.0)
rake aborted!
NameError: uninitialized constant PrincipalMembershipsController
/opt/redmine-2.6.0/plugins/event_notifications-master/lib/patches/principal_memberships_controller_patch.rb:18:in `<top (required)>'
/opt/redmine-2.6.0/plugins/event_notifications-master/init.rb:14:in `<top (required)>'
/opt/redmine-2.6.0/lib/redmine/plugin.rb:150:in `block in load'
/opt/redmine-2.6.0/lib/redmine/plugin.rb:141:in `each'
/opt/redmine-2.6.0/lib/redmine/plugin.rb:141:in `load'
/opt/redmine-2.6.0/config/initializers/30-redmine.rb:19:in `<top (required)>'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/engine.rb:593:in `block (2 levels) in <class:Engine>'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/engine.rb:592:in `each'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/engine.rb:592:in `block in <class:Engine>'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `instance_exec'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb:30:in `run'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb:55:in `block in run_initializers'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `each'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/initializable.rb:54:in `run_initializers'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/application.rb:136:in `initialize!'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/railtie/configurable.rb:30:in `method_missing'
/opt/redmine-2.6.0/config/environment.rb:14:in `<top (required)>'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/application.rb:103:in `require_environment!'
/var/lib/gems/1.9.1/gems/railties-3.2.19/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)

RE: Error after plugin install - Added by Alison Cairns about 9 years ago

I also have this exact problem. Can anyway help?

    (1-2/2)