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. How to Update to latest core

How to Update to latest core

Added by Cosmin Sfe almost 11 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)

RE: How to Update to latest core - Added by Deleted user almost 11 years ago

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

su openproject -c "bash -l"
cd ~/openproject
git pull


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

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

RE: How to Update to latest core - Added by I. V. almost 11 years ago

I am also interested in regular updates of core.

Thanks,
Igor

RE: How to Update to latest core - Added by I. V. almost 11 years ago

Could we use the method presented in this post? https://www.openproject.org/topics/674

git checkout stable
bundle exec rake db:migrate
touch tmp/restart.txt

What about

bundle install
bundle exec rake assets:precompile

after checkout? It is not necessary, isn’t it?

Many thanks,
Igor

RE: How to Update to latest core - Added by Christian Ratz almost 11 years ago

Hi,

Thomas is almost right, use this steps to update if you use the stable branch:

su openproject -c "bash -l" 
cd ~/openproject
git checkout Gemfile.lock
git pull

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

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

RE: How to Update to latest core - Added by Deleted user almost 11 years ago

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>'

RE: How to Update to latest core - Added by Deleted user almost 11 years ago

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

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