Added by Cosmin Sfe over 10 years ago
Hi,
I have installed OpenProject 3.0.1 a while ago. I now want to upgrade to latest core. I could not find a wiki page on that. How can I do that safely?
Is there also a procedure/wiki for updating to latest versions of plugins?
Thanks.
Replies (6)
I want to follow Cosmin.
I have a running 3.01 on debian.
What my “helper” wrote down for updating is:
1. SSH as root
3. Reboot Server
This does not work. The last output is: Gemfile.lock =locked, …. Stash or … it. Any suggestions? I saw a ruby update? how to handle this?? Any HELP appreciated, thanks!
By the way to the experts: What is the time estimated to do this update (3.01 to 3.04) for a professional?? (my last update from 3.0pre51 to 3.00 was billed with 2 hours = 150 € !?)
Thanks! Thomas
I am also interested in regular updates of core.
Thanks,
Igor
Could we use the method presented in this post? https://www.openproject.org/topics/674
What about
after checkout? It is not necessary, isn’t it?
Many thanks,
Igor
Hi,
Thomas is almost right, use this steps to update if you use the stable branch:
I added “db:seed” task if the OpenProject core (or plugin) has new seeds I also added ‘git checkout Gemfile.lock’ this is needed (before you run ‘git pull’) if you have plugins install, @Thomas this could also fix your problem related to the Gemfile.lock.
Best
Ratzi
Thanks for reply Ratzi,
tried theses additions before, but it unfortunately results in an Application Error.
If it is a problem only with the meeting-Plugin, i would quit/drop this one, how can i do this?
Part of the debug-message:
uninitialized constant OpenProject::Concerns (NameError) /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-b75816805552/app/controllers/meeting_contents_controller.rb:24:in `<class:MeetingContentsController>' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-b75816805552/app/controllers/meeting_contents_controller.rb:21:in `<top (required)>' /home/openproject/.rvm/gems/ruby-2.1.0/bundler/gems/openproject-meeting-b75816805552/app/controllers/meeting_agendas_controller.rb:21:in `<top (required)>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:444:in `block (2 levels) in eager_load!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:443:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:443:in `block in eager_load!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:441:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:441:in `eager_load!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/application/railties.rb:8:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/application/railties.rb:8:in `all' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/engine.rb:439:in `eager_load!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `instance_exec' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `run' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/initializable.rb:55:in `block in run_initializers' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `each' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `run_initializers' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/application.rb:136:in `initialize!' /home/openproject/.rvm/gems/ruby-2.1.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing' /home/openproject/openproject/config/environment.rb:36:in `block in <top (required)>' /home/openproject/openproject/config/application.rb:44:in `block in bench' /home/openproject/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:279:in `measure' /home/openproject/openproject/config/application.rb:43:in `bench' /home/openproject/openproject/config/environment.rb:34:in `<top (required)>' config.ru:32:in `require' config.ru:32:in `block in <main>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval' /home/openproject/.rvm/gems/ruby-2.1.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize' config.ru:1:in `new' config.ru:1:in `<main>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:112:in `eval' /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:112:in `preload_app' /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:158:in `<module:App>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>' /home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.38/helper-scripts/rack-preloader.rb:28:in `<main>'
Found the solution while loooking how to remove meetings-plugin:
In the Gemfile.plugins i saw that i adressed the developer branch, not the stable branch. Changed to stable.
Solved, i´m runnning on 3.03 now, Ratzis instructions work perfectly, many thanks!
Greetings Thomas