Content
Openproject not working
Added by Andre Schoonbee about 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)
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!
If you use the dev branch the plugin is not needed anymore and you should remove it from the Gemfile.pugins
Best
Ratzi
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
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.
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:
Go to the OpenProject root folder and run this:
Than restart the webserver (
service httpd restart
).Best
Ratzi
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)>’
…
Anyone able to help me solve this problem?
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
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?