Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. Openproject not working

Openproject not working

Added by Andre Schoonbee over 10 years ago

Guys, I spend a lot of time to install and re-install servers and eventually manage to get open project running on Centos with Posgresql, but without Document plugin. I do need the document plugin and then tried to add it to the gemfile in stable as well as dev versions.

but regardless of what I am trying, the keep on getting an error. I copies some extract of the error below. Look, I do not want to criticize but running projects I do not have time to waist on things that do not work. I really hope that this is a small issue and can be sorted quickly, because I really like openproject.

Hope anyone can help me with this error:

Web application could not be started
uninitialized constant OpenProject::Plugins (NameError)
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/open_project/documents/engine.rb:37:in `class:Engine’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/open_project/documents/engine.rb:34:in `module:Documents’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/open_project/documents/engine.rb:33:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/open_project/documents.rb:34:in `module:Documents’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/open_project/documents.rb:33:in `module:OpenProject’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/open_project/documents.rb:32:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-b9b90e316770/lib/openproject-documents.rb:32:in `<top (required)>’
….


Replies (8)

RE: Openproject not working - Added by Christian Ratz over 10 years ago

Hello Andre,

if you use OpenProject in production you should use the stable branch of the OpenProject core and all plugins. If you just wanna play around you can use the dev branches but you should use always the same branches for the OpenProject core and ALL plugins.

First make sure you use the same branches.
If you use the stable version you have to add the openproject-plugins plugin to your Gemfile.plugins which provides some basic functions for plugins. This should fix error above!

gem "openproject-plugins", :git => "https://github.com/opf/openproject-plugins.git", :branch => 'stable'

If you use the dev branch the plugin is not needed anymore and you should remove it from the Gemfile.pugins

Best
Ratzi

RE: Openproject not working - Added by Brendan Dunn over 10 years ago

Hi Andre

Can you confirm the steps you followed to install the plugin e.g.

you edited the Gemfile.plugins file in the /home/openproject/openproject directory
and added the line

gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’

for the stable version

you ran
bundle install

please note that this will install the dev version. If you want just the production server , you need to run
RAILS_ENV=production bundle install

I do not know if this plugin requires any migration so not sure if you should run
bundle exec rake db:migrate

then run
rake assets:precompile

RE: Openproject not working - Added by Andre Schoonbee over 10 years ago

Hi
First, thanks for the feedback!
I have edited the Gemfile.plugin file and added the gem ‘openproject-documents’, :git => ‘https://github.com/opf/openproject-documents.git’, :branch => ‘stable’
I then run bundle install
but did not run RAILS_ENV=production bundle install
that might be the problem!

Please confirm the steps…

1) Edit Gemfile.plugin to add all the plugins I want (even if some of them was already installed)
2) Bundle Install
3) RAILS_ENV=production bundle install or (bundle exec rake db:migrate and rake assets:precompile)
4) service httpd restart
5) Test

Should I re-run the passenger commands?

Last but not least. to have the system as a production system and to have Apache and network access to this - what else do I need to change. The last I want is that the system is down when the server is rebooted. The idea is if the server are rebooted, the system should come online automatically.

RE: Openproject not working - Added by Christian Ratz over 10 years ago

Hello,

since you run OpenProject in production you should follow this steps:

Add all the plugins you want to your Gemfile.plugins make sure the following is included before all other pugins:

gem "openproject-plugins", :git => "https://github.com/opf/openproject-plugins.git", :branch => 'stable'

Go to the OpenProject root folder and run this:

bundle install
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake db:seed
RAILS_ENV=production bundle exec rake assets:precompile

Than restart the webserver (service httpd restart).

Best
Ratzi

RE: Openproject not working - Added by Andre Schoonbee over 10 years ago

Well I ran all the commands you mentioned in specific order but still get the following error:

Web application could not be started
uninitialized constant OpenProject::Plugins (NameError)
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/open_project/documents/engine.rb:37:in `class:Engine’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/open_project/documents/engine.rb:34:in `module:Documents’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/open_project/documents/engine.rb:33:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/open_project/documents.rb:34:in `module:Documents’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/open_project/documents.rb:33:in `module:OpenProject’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/open_project/documents.rb:32:in `<top (required)>’
/home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-documents-a9bc2c4a7fee/lib/openproject-documents.rb:32:in `<top (required)>’
…

RE: Openproject not working - Added by Andre Schoonbee over 10 years ago

Anyone able to help me solve this problem?

RE: Openproject not working - Added by Brendan Dunn over 10 years ago

Hi Andre

It is hard to trouble shoot the issue from here so
I had a go at running up a Centos instance and I documented the steps and attached it for you.
These steps get you a working server in 90 minutes (minus the time it takes to download the Centos 7 iso).
You could check your steps against the document which I know works (just ran it end to end).
Maybe create your plugin file exactly like mine

The steps would be
1. remove the current plugin file
2. run the web server and confirm it works
3. create the new plugin file as per my plugin file (see document attached)
4. install the plugins as per the instructions….check the install, you will see the plugins installed in the long list of information
5. Run the post commands and check the web server again as per my instructions

Cheers
Brendan

RE: Openproject not working - Added by Andre Schoonbee over 10 years ago

I have downloaded the Centos ver 7 same as you and now are in the process to install it on Xenserver - will give feedback once I am done
But allow me to thank you sincerely for the attached document and the effort you took in creating the document!

One other question - I get no response on the plugin to import ms project. What should I do?

  • (1 - 8/8)
Loading...