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. Upgrade 5.0.17 to 6.0.4

Upgrade 5.0.17 to 6.0.4

Added by Erik Bijlsma over 8 years ago

I manually installed OP 5.0.17 using de manual installation guide. Installation of OpenProject 5.0 with Apache on Ubuntu 14.04. LTS

So to install OP I used:

git clone https://github.com/opf/openproject-ce.git —branch stable/5 —depth 1

Now I would like to upgrade to version 6.

How do I upgrade?

From the manual upgrade guide I tried:

[openproject@debian]# git reset —hard
[openproject@debian]# git fetch
[openproject@debian]# git checkout v6.0.4

no succes …


Replies (3)

RE: Upgrade 5.0.17 to 6.0.4 - Added by Sergio Caixeta over 8 years ago

This a frequentlly probelm to me.

To solve this problem I change my Manual install to Package Install:

First, Backup you OP Database. This is Important!!

Install a fresh OP;

1. Install manually a MYSQL:

apt-get install mysql-server libmysqlclient-dev -y

2. AND CREATE OPENPROJECT DB. HERE pass YOU CHANGE TO YOUR PASSWORD USED IN INSTALLATION PROCESS:

  • mysql -uroot -p
  • UPDATE user SET Password=PASSWORD WHERE User=‘root’; FLUSH PRIVILEGES;
  • CREATE DATABASE openproject CHARACTER SET utf8;
  • CREATE USER ‘openproject’`'localhost' IDENTIFIED BY 'pass';
    • GRANT ALL PRIVILEGES ON openproject.* TO 'openproject'`‘localhost’;
  • \q

3. Use this code:

wget -qO - https://deb.packager.io/key | sudo apt-key add - echo "deb https://deb.packager.io/gh/opf/openproject-ce trusty stable/5" | sudo tee /etc/apt/sources.list.d/openproject.list sudo apt-get update -y sudo apt-get install openproject -y sudo openproject configure

4. Restore you DB in this new Install

To upgrade use this code, but you need to change the file: /etc/yum.repos.d/openproject.repo

default is: stable/5, change to stable/6

5. Run updates:

apt-get update -y apt-get upgrade -y

6. Finally run:

apt-get update -y apt-get install --only-upgrade openproject -y openproject configure

Best upgade!

RE: Upgrade 5.0.17 to 6.0.4 - Added by Erik Bijlsma over 8 years ago

Thank you for your extensive answer!

I did not use the packaged install, as you suggested. But you did bring me to idea that the Openproject app and the MySQL database are two separate things. So I just did a new OP install using GitHub and skipped the db:create command.

This resulted in a working OP v6.04

Thanks!

RE: Upgrade 5.0.17 to 6.0.4 - Added by Andrew Patterson over 8 years ago

A variation of this is to bring ‘stable/6’ into the same folder as you had ‘stable/5’. To do this:

  1. Edit your .git/config file and replace ‘fetch = +refs/heads/stable/5:refs/remotes/origin/stable/5’ with ‘fetch = +refs/heads/:refs/remotes/origin/’
  2. Run ‘git fetch’
  3. Checkout latest stable/6 with ‘git checkout -b stable/6 origin/stable/6’
  • (1 - 3/3)
Loading...