Top Menu

Jump to content
Home
    • Projects
    • Work packages
    • 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
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Professional 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?
      Create a new account

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
  • Roadmap
  • Work packages
  • Calendars
  • Team planners
  • Boards
  • Forums
  • Wiki
    • Table of contents
      • Expanded. Click to collapseCollapsed. Click to showDeveloper
        • Hierarchy leafAccessibility Checklist
        • Hierarchy leafCode Review Guidelines
        • Expanded. Click to collapseCollapsed. Click to showContribution
          • Hierarchy leafGit Workflow
          • Hierarchy leafTranslations
        • Expanded. Click to collapseCollapsed. Click to showDeveloping Plugins
          • Hierarchy leafDeveloping an OmniAuth Authentication Plugin
        • Hierarchy leafRelease Process
        • Hierarchy leafReport a bug
        • Hierarchy leafSecurity
        • Hierarchy leafSetting up an OpenLDAP server for testing
        • Hierarchy leafTheme Features
      • Hierarchy leafDownload
      • Expanded. Click to collapseCollapsed. Click to showFeature tour
        • Hierarchy leafRelease Notes OpenProject 30
        • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 30 - Overview
          • Hierarchy leafGlossary
          • Hierarchy leafRelease Notes - Accessibility
          • Hierarchy leafRelease Notes - Accessibility changes
          • Hierarchy leafRelease Notes - Add work package queries as menu items to sidebar
          • Hierarchy leafRelease Notes - Copy projects based on Templates
          • Hierarchy leafRelease Notes - Design changes
          • Hierarchy leafRelease Notes - Fixed Bugs
          • Hierarchy leafRelease Notes - Keyboard Shortcuts
          • Hierarchy leafRelease Notes - Project settings
          • Hierarchy leafRelease Notes - Ruby&Rails Update
          • Hierarchy leafRelease Notes - Security
          • Hierarchy leafRelease Notes - Timelines
          • Hierarchy leafRelease Notes - Work packages
      • Hierarchy leafHowto create animated gifs
      • Hierarchy leafMigration Squashing
      • Hierarchy leafMod security
      • Hierarchy leafNew work package page
      • Hierarchy leafOP3 to OP4 Debian upgrade
      • Hierarchy leafOP4 Ubuntu1404 Stable with MySQL in production
      • Hierarchy leafOpenProject 40 Development Setup
      • Expanded. Click to collapseCollapsed. Click to showOpenProject Foundation
        • Hierarchy leafBoards
        • Hierarchy leafMembers
        • Hierarchy leafOPF-Meetings
        • Hierarchy leafStatutes
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes
        • Hierarchy leafOpenProject released on Bitnami
      • Expanded. Click to collapseCollapsed. Click to showRelease Notes OpenProject 40 - Overview
        • Hierarchy leafRelease Notes OpenProject 40 - Accessibility improvements
        • Hierarchy leafRelease Notes OpenProject 40 - Column header functions in work package table
        • Hierarchy leafRelease Notes OpenProject 40 - Improved Design
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated query title on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - Integrated toolbar on work package page
        • Hierarchy leafRelease Notes OpenProject 40 - OmniAuth integration for OpenProject
        • Hierarchy leafRelease Notes OpenProject 40 - Work package details pane
      • Expanded. Click to collapseCollapsed. Click to showSecurity and privacy
        • Hierarchy leafFAQ
      • Expanded. Click to collapseCollapsed. Click to showSupport
        • Expanded. Click to collapseCollapsed. Click to showDownload and Installation
          • Hierarchy leafInstallation MacOS
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 3 0
            • Hierarchy leafDebian Stable with MySQL in production
            • Hierarchy leafInstallation Ubuntu
            • Hierarchy leafInstallation Windows
            • Hierarchy leafInstallation on Centos 65 x64 with Apache and PostgreSQL 93
          • Expanded. Click to collapseCollapsed. Click to showInstallation OpenProject 40
            • Hierarchy leafOP4 Debian Stable with MySQL in production
          • Expanded. Click to collapseCollapsed. Click to showMigration paths
            • Hierarchy leafFrom Chilliproject to OpenProject
            • Hierarchy leafMigration 15 to 30
            • Hierarchy leafMigration 24 to 30
            • Hierarchy leafMigration Redmine 2x › OpenProject 30
            • Hierarchy leafOpenProject 3 Migration
          • Hierarchy leafOpenProject 40
        • Expanded. Click to collapseCollapsed. Click to showNews
          • Hierarchy leafNew OpenProject Translations Plugin
          • Hierarchy leafNew Plugin on OpenProjectorg Local Avatars
          • Hierarchy leafNew design for OpenProject
          • Hierarchy leafNews Accessibility workshop for OpenProject
          • Hierarchy leafNews Glossary for OpenProject
          • Hierarchy leafNews Heartbleed fixed
          • Hierarchy leafNews Icon Fonts
          • Hierarchy leafNews OpenProject 30 Release
          • Hierarchy leafNews Release GitHub Integration Plugin
          • Hierarchy leafNews Success Story Deutsche Telekom
          • Hierarchy leafNews Timelines
          • Hierarchy leafOpenProject 3013 released
          • Hierarchy leafOpenProject 3017 released
          • Hierarchy leafOpenProject 40 released
          • Hierarchy leafOpenProject 40 will be coming soon
          • Hierarchy leafOpenProject 405 released
          • Hierarchy leafOpenProject and pkgrio
          • Hierarchy leafOpenProject news moved to a new blog
          • Hierarchy leafOpenProjectBitnami
          • Hierarchy leafPackager version with plugins released ("Community edition")
          • Hierarchy leafRegistration OpenProject-Foundation
          • Hierarchy leafRelease OpenProject AuthPlugins
          • Hierarchy leafUpdates on OpenProject
          • Hierarchy leafWe need your feedback for the the new fullscreen view for work packages
        • Hierarchy leafOpenProject Plug-Ins
      • Hierarchy leafWiki
You are here:
  • Forums
  • General discussion

Content

[Outdated - Refers to old version] How to upgrade to the latest version of OpenProject once in 3.0 ?

Added by Rajesh R Nair over 8 years ago

I am already on OpenProject Version 3.0 and could someone tell me how to upgrade to the latest subversions with out loosing my existing content.

I tried to install the Costs module latest stable version and now the server is not starting because it requires OpenProject latest version.

Regards
Rajesh


Replies (14)

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Christian Ratz over 8 years ago

Hello Rajesh,

the update process depends on how you installed OpenProject.
If you installed it via git (on branch stable) and run in production environment you can do the following:

Go to your OpenProject root folder and run

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

Restart your server and you should be finished.

Best
Ratzi

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Christian Ratz over 8 years ago

I forgot a step, before you run git pull run

git checkout Gemfile.lock

Best
Ratzi

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Rajesh R Nair over 8 years ago

Thanks a lot Ratzi.

For the initial installation, I have followed the instructions from this link (but installed on RHEL) https://www.openproject.org/projects/openproject/wiki/Installation_Ubuntu

In this link Step 6 makes the clone of OpenPrject repository as follows:


_6. Clone the OpenProject repository.
git clone https://github.com/opf/openproject.git
cd openproject
git checkout stable_
—————-

So, I think your steps should work for me, I will try it and update back.

Regards
Rajesh

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Rajesh R Nair over 8 years ago

Hi Ratzi,

After executing these steps successfully, I tried to install the Costs plugin again. I am getting the similar error as before.

Paste the error below. I have followed the instructions from this link to install Costs plugin.


[root@pm openproject]# RAILS_ENV=production bundle exec rake db:migrate
require ‘rails/all’… 0.510s
Bundler.require… 1.500s
*Application.initialize!… rake aborted!
openproject_costs plugin requires OpenProject version >= 3.0.0 but
current version is 3.0.0pre43.*
/root/openproject/lib/redmine/plugin.rb:193:in `requires_openproject’
/root/openproject/lib/redmine/plugin.rb:101:in `instance_eval’
/root/openproject/lib/redmine/plugin.rb:101:in `register’
/root/openproject/config/environment.rb:34:in `block in <top (required)>’
/root/openproject/config/application.rb:42:in `block in bench’
/root/openproject/config/application.rb:41:in `bench’
/root/openproject/config/environment.rb:32:in `<top (required)>’
Tasks: TOP => db:migrate => environment
(See full trace by running task with —trace)
————————-

Regards
Rajesh

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Christian Ratz over 8 years ago

Hello Rajesh,

it looks like you still run an old version of the OpenProject core. Can you plz show the result of git pull

Best
Ratzi

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Rajesh R Nair over 8 years ago

Please find the attached files. I have tried
1. git checkout Gemfile.lock
2. git pull output is in gitpull_output file
3. Tried one more time git pull, output is in gitpull_secondtry fiel
4. Tried git commit -a, output is in gitcommit_output file
5. bundle install, output is in bundleinstall_output file

Regards
Rajesh

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Christian Ratz over 8 years ago

Hello Rajesh,

sorry for my late answer. The problem is that “git pull” don’t work. Here is how to fix it:

Go to your OpenProject root folder and run

git fetch
git reset --hard origin/stable 
bundle install 
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake assets:precompile

Best
Ratzi

RE: RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Tom G. over 8 years ago

Hi Ratzi,

I followed your instructions but now I get a “punc” error when precompiling the assets (see attached file). Any ideas?

Regards,
Tom

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Christian Ratz over 8 years ago

Hello,

hmm ‘vendor/assets/components/angular-animate/angular-animate.min.js.map’ look like you run the dev and not the stable branch. If you tried the dev branch and you wanna use the stable now you should remove the ‘vendor/assets/components’ folder.
There are some risks on first try the dev branch and than switch back to stable branch particularly with a view to the database migrations so keep an eye on errors or start with a clean database.

Best
Ratzi

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Tom G. over 8 years ago

I gave the development branch a try before switching to production so back to a clean stable now. I deleted the whole openproject folder (although it wasn’t completely necessary) and then cloned the git again following the installation guide which didn’t take long.

I have different databases for development and production so switching between them shouldn’t be a risk, am I right?

Thanks for the tip ;)

Regards,
Tom

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Ander Elexpuru over 8 years ago

Hi,

I have done this to upgrade versión:

_Go to your OpenProject root folder and run
git fetch
git reset —hard origin/stable
bundle install
RAILS_ENV=production bundle exec rake db:migrate
RAILS_ENV=production bundle exec rake assets:precompile
_

But now de theme is not charged
Ander

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Douglas Leonardo over 8 years ago

I’ve run “RAILS_ENV = production bundle exec rake assets: precompile” command!., and now I have this error “Application.initialize … [deprecated] I18n.enforce_available_locales will default to true in the future If you really want to skip validation of your locale you can I18n.enforce_available_locales September = false to avoid this message. ”

Can anyone help?

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Robin Wagner about 8 years ago

Please note that Ratzi’s answer was written prior to the release of OpenProject 4.0.
The stable branch now points to the current version of OpenProject 4.0 (and is updated to the current stable version of OpenProject).

OpenProject 4.0 has additional installation requirements compared to OpenProject 3.0.
A complete upgrade guide from OpenProject 3.0 to OpenProject 4.0 can be found in the download section.

Best,
Robin

RE: How to upgrade to the latest version of OpenProject once in 3.0 ? - Added by Robin Wagner about 8 years ago

Please note that Ratzi’s answer was written prior to the release of OpenProject 4.0.
The stable branch now points to the current version of OpenProject 4.0 (and is updated to the current stable version of OpenProject).

OpenProject 4.0 has additional installation requirements compared to OpenProject 3.0.
A complete upgrade guide from OpenProject 3.0 to OpenProject 4.0 can be found in the download section.

Best,
Robin

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