milgner / redmine_airbrake_server

A Redmine plugin which enables it to receive application error notifications Airbrake-style
28 stars 10 forks source link

Broken with redmine 2.1.4 (Redmine::PluginNotFound) #14

Open tamaloa opened 11 years ago

tamaloa commented 11 years ago

With redmine 2.1.4 (no other plugins installed) served by passenger following exception occurs:

Redmine::PluginNotFound (Redmine::PluginNotFound)

#   File    Line    Location
0   /var/www/projects-redmine/lib/redmine/plugin.rb     104     in `find'
1   /var/www/projects-redmine/lib/redmine/plugin.rb     205     in `requires_redmine_plugin'
2   /var/www/projects-redmine/plugins/redmine_airbrake_server/init.rb   12  in `block in '
3   /var/www/projects-redmine/lib/redmine/plugin.rb     73  in `instance_eval'
4   /var/www/projects-redmine/lib/redmine/plugin.rb     73  in `register'
5   /var/www/projects-redmine/plugins/redmine_airbrake_server/init.rb   4   in `'
6   /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    251     in `require'
7   /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    251     in `block in require'
8   /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    236     in `load_dependency'
9   /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    251     in `require'
10  /var/www/projects-redmine/lib/redmine/plugin.rb     130     in `block in load'
11  /var/www/projects-redmine/lib/redmine/plugin.rb     121     in `each'
12  /var/www/projects-redmine/lib/redmine/plugin.rb     121     in `load'
13  /var/www/projects-redmine/config/initializers/30-redmine.rb     13  in `'
14  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    245     in `load'
15  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    245     in `block in load'
16  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    236     in `load_dependency'
17  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/activesupport-3.2.8/lib/active_support/dependencies.rb    245     in `load'
18  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/engine.rb    588     in `block (2 levels) in '
19  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/engine.rb    587     in `each'
20  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/engine.rb    587     in `block in '
21  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/initializable.rb     30  in `instance_exec'
22  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/initializable.rb     30  in `run'
23  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/initializable.rb     55  in `block in run_initializers'
24  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/initializable.rb     54  in `each'
25  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/initializable.rb     54  in `run_initializers'
26  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/application.rb   136     in `initialize!'
27  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/railties-3.2.8/lib/rails/railtie/configurable.rb  30  in `method_missing'
28  /var/www/projects-redmine/config/environment.rb     14  in `'
29  config.ru   3   in `require'
30  config.ru   3   in `block in '
31  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/rack-1.4.1/lib/rack/builder.rb    51  in `instance_eval'
32  /home/passenger/.rvm/gems/ruby-1.9.3-p125@global/gems/rack-1.4.1/lib/rack/builder.rb    51  in `initialize'
33  config.ru   1   in `new'
34  config.ru   1   in `'
milgner commented 11 years ago

Thanks for submitting this. I can't make any promises because I'm very low on free time at the moment but I'll try to look at it during the weekend.

sebk commented 11 years ago

I had the same error. Also no other plugin installed (a fresh new installation of redmine 2.1.4). I had to install the plugin project-settings-hook (http://www.redmine.org/plugins/project_settings_hook).

With Rails 3 (I think it is a Rails 3 problem, not sure) this plugin won't work (for me). I had to change the init.rb:

After that I could start the db migration (as described in the redmine plugin wiki)

milgner commented 11 years ago

After investigating the issue, it seems like the project-settings-hook plugin isn't compatible with Rails 3 / Redmine 2 at all. Also, some Redmine internals have changed, which I now adapted. Now I need to get Redmine to display the project property page again, then everything should be good again... I created a ticket for the Redmine Project Settings plugin - if I receive no answer, I'll roll my own project settings hook.

See this new branch for progress on Redmine 2 compatibility.

tamaloa commented 11 years ago

Thats great to hear and thanks a lot.

I will give the new branch a try as soon as it makes sense :)

meltzow commented 11 years ago

Hi, any news here? With my new redmine 2.2 on the branche redmine2 after a "rake redmine:plugins:migrate" I get : rake aborted! Redmine::PluginNotFound

need help. Thx

milgner commented 11 years ago

Unfortunately I didn't make any more progress yet. I tried hooking into project-specific settings myself but digging through the redmine source for this kind of hack proved too time-consuming to get very far. Luckily, Andriy Lesyuk, the author of the redmine project settings plugin, announced in the meantime that he wants to add support for Redmine 2 soon. As soon as this is available, I'll get back to my plugin, too.

3b0b commented 11 years ago

Looks like he thinks he has it working with 2.3

http://projects.andriylesyuk.com/issues/2131#change-2281