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. Tutorial: Upgrade guide from 3.0.13 to 3.0.14 and 4.0 on CentOS 6.5

Tutorial: Upgrade guide from 3.0.13 to 3.0.14 and 4.0 on CentOS 6.5

Added by Tim Tielens over 10 years ago

This tutorial helps you update your OP installation to the newest version.
It is based on CentOS and an MySQL database

1. Upgrade to 3.0.14

First I updated to v3.0.14 with the correct plugins (v3.0.14) and Ruby 2.1.2.
Change the version of the plugins in the Gemfile.plugins file to ‘v3.0.14’

Stop the httpd service and the delayed_job

service httpd stop
su - openproject -c "bash -l"
cd ~/openproject
RAILS_ENV="production" bundle exec script/delayed_job start

*Set OP version to v3.0 and upgrade Ruby
Change the version of the plugins in the Gemfile.plugins file to ‘v3.0.14’*

git checkout release/3.0
git reset --hard
git pull

rvm install 2.1.2
rvm use --default 2.1.2
gem install bundler
bundle install

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

gem install passenger
passenger-install-apache2-module

copy paste the output in the httpd.conf file

2. Upgrade to 4.0:

su - openproject -c "bash -l"
rvm install 2.1.4
rvm use --default 2.1.4

*Change plugins version to stable
removed the openproject-plugins line in Gemfile.plugins*

git reset --hard
git checkout stable
git pull
bundle install

*got an error about sprockets-2.2.2.backport2
used:* - This is fixed in 4.0.1

wget https://aws-eu-cache01.rubygems.org/gems/sprockets-2.2.2.backport2.gem
gem install sprockets-2.2.2.backport2.gem

bundle install

Then i installed python

exit
yum install python python-pip
pip install nodeenv
su - openproject -c "bash -l" 
cd ~/openproject
nodeenv nodeenv
source ./nodeenv/bin/activate
npm -g install bower
npm install
bower install

Migrate the DB

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

*Install passenger and apache.
And copy the output in httpd.conf*

su - openproject -c "bash -l" 
cd ~/openproject
gem install passenger
passenger-install-apache2-module

Start Apache

service httpd start

Start the delayed job

su - openproject -c "bash -l" 
cd ~/openproject
RAILS_ENV="production" bundle exec script/delayed_job start

and you’re done ;-)

Now i tried updating directly to Ruby 2.1.4 but after the update i couldn’t change the work package status.
So this worked for me.

Updated 25-11-2014


Replies (1)

RE: Tutorial: Upgrade guide from 3.0.13 to 3.0.14 and 4.0 on CentOS 6.5 - Added by Robin Wagner over 10 years ago

Hi Tim,

wow, thanks for providing such a detailed upgrade guide! :+1:

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