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

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. [Outdated - Refers to old version] How to upgrade to the latest version of OpenProject once in 3.0 ?

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

Added by Rajesh R Nair almost 11 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 almost 11 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 almost 11 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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 over 10 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 over 10 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...