Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Hierarchy leafWiki
You are here:
  • Forums
  • Support Installation & Updates

Content

Openproject not working

Added by Andre Schoonbee over 8 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 8 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 8 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 8 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 8 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 8 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 8 years ago

Anyone able to help me solve this problem?

RE: Openproject not working - Added by Brendan Dunn over 8 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 8 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...