Content
You are here:
[Outdated - Refers to old version] How to upgrade to the latest version of OpenProject once in 3.0 ?
Added by Rajesh R Nair over 10 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)
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
Restart your server and you should be finished.
Best
Ratzi
I forgot a step, before you run
git pull
runBest
Ratzi
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
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
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
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
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
Best
Ratzi
Hi Ratzi,
I followed your instructions but now I get a “punc” error when precompiling the assets (see attached file). Any ideas?
Regards,
Tom
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
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
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
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?
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
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