Content
Plugins wont work -> LoadError
Added by Michael Rampl almost 10 years ago
I Installed OpenProject last Week following this https://community.openproject.org/projects/openproject/wiki/Debian_Stable_with_MySQL_in_production instructions.
Today i wanted to install some plugins.
I logged in as user openproject, switched to the openproject root folder and created a file “Gemfile.plugins”. Then i insert some Plugins for example “gem ‘openproject-costs’, :git => ‘https://github.com/finnlabs/openproject-costs.git’, :branch => ‘stable’”. I called “bundle install” and after that “rake db:migrate”. Regardless wich plugin i insert into to file i’m now getting the following Error: “LoadError: cannot load such file — open_project/plugins”.
So whats this all about?
I searched for answers and installed the plugins plugin because it was mentioned in some posts. But when i did so the output of the console was that the “plugins plugin” no longer is needed.
Replies (2)
This is the full Error
openproject@xray379:~/openproject$ RAILS_ENV=“production” bundle exec rake db:migrate
require ‘rails/all’… 0.760s
Bundler.require… rake aborted!
LoadError: cannot load such file — open_project/plugins
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-c9aaec425eab/lib/open_project/meeting/engine.rb:21:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-c9aaec425eab/lib/open_project/meeting.rb:23:in `module:Meeting’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-c9aaec425eab/lib/open_project/meeting.rb:22:in `module:OpenProject’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-c9aaec425eab/lib/open_project/meeting.rb:21:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:236:in `load_dependency’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.21/lib/active_support/dependencies.rb:251:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-c9aaec425eab/lib/openproject-meeting.rb:21:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler/runtime.rb:76:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler/runtime.rb:76:in `block (2 levels) in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler/runtime.rb:72:in `each’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler/runtime.rb:72:in `block in require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler/runtime.rb:61:in `each’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler/runtime.rb:61:in `require’
/home/openproject/.rvm/gems/ruby-2.1.0/gems/bundler-1.8.2/lib/bundler.rb:134:in `require’
/home/openproject/openproject/config/application.rb:56:in `block in <top (required)>’
/home/openproject/openproject/config/application.rb:44:in `block in bench’
/home/openproject/openproject/config/application.rb:43:in `bench’
/home/openproject/openproject/config/application.rb:55:in `<top (required)>’
/home/openproject/openproject/Rakefile:33:in `require’
/home/openproject/openproject/Rakefile:33:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `eval’
/home/openproject/.rvm/gems/ruby-2.1.0/bin/ruby_executable_hooks:15:in `
’
(See full trace by running task with —trace)
Hi Micheal,
thanks for your error report. Unfortunately, the link does not seem to work anymore. Maybe it got deleted in the actions we take to move the documentation to openproject.org.
Could you specify again, what version of OpenProject you are using?
What the error message says is that the openproject-plugins plugin is missing (yes, that is the correct name :) ). This plugin allows you to install other plugins. But actually, I thought that we moved this plugin into the core. So by now adding plugins via Gemfile.plugins should be possible without openproject-plugins. And now means the current stable (core 4.0.X).
So what I think is that you may have installed OpenProject 3.0.X. If that is the case then your Gemfile.plugins should look like this:
If you really have OpenProject 4.0.X installed and try to add OpenProject-costs 4.0.X then we would have to investigate further.
Hope that helps,
Jonas