Project

General

Profile

Best way to approach update from 3.3 to 5.x

Added by Dawid Biskupski almost 2 years ago

Hello,

I have redmine 3.3.3.stable.16608 and it's gonna be ancient technology in a while, so I want to upgrade Redmine to the newest stable version. My question is how to do it in a good way.

Should I update it from 3.3 to 4.0, from 4.0 to 4.5 and then from 4.5 to 5.0 or there's another way to do it? The current specification of my Redmine is shown below.

Thanks in advance for your support!

Environment:
Redmine version 3.3.3.stable.16608
Ruby version 2.3.4-p301 (2017-03-30) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Git 2.1.4
Filesystem
Redmine plugins:
issue_charts 1.3.0
localizable 0.4.0
redmine_agile 1.5.3
redmine_checklists 3.1.5
redmine_dmsf 1.5.9
redmine_favorite_projects 2.0.3
redmine_monitoring_controlling 0.1.1
redmine_slack 0.2


Replies (4)

RE: Best way to approach update from 3.3 to 5.x - Added by C S almost 2 years ago

First of all you will have to look for alternatives to some currently used plugins...development has been partially stopped!

Personally, I would jump to 4.2.x, so Redmine is safe for now.
The jump to 5.x is currently not possible for me because of a few extensions.

RedmineUpgrade

RE: Best way to approach update from 3.3 to 5.x - Added by Dimitar (RedmineUP) over 1 year ago

Hi Dawid,

This is Dimitar from the RedmineUP Support Team.

I see that you have some of our plugins on your list:

redmine_agile 1.5.3
redmine_checklists 3.1.5
redmine_favorite_projects 2.0.3

So, could you please contact our support team at ? And our support engineers will help you in relation to your request.

We look forward to hearing from you.

Best Regards,
Dimitar from the RedmineUP Support Team

Dawid Biskupski wrote:

Hello,

I have redmine 3.3.3.stable.16608 and it's gonna be ancient technology in a while, so I want to upgrade Redmine to the newest stable version. My question is how to do it in a good way.

Should I update it from 3.3 to 4.0, from 4.0 to 4.5 and then from 4.5 to 5.0 or there's another way to do it? The current specification of my Redmine is shown below.

Thanks in advance for your support!

Environment:
Redmine version 3.3.3.stable.16608
Ruby version 2.3.4-p301 (2017-03-30) [x86_64-linux]
Rails version 4.2.7.1
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.10
Git 2.1.4
Filesystem
Redmine plugins:
issue_charts 1.3.0
localizable 0.4.0
redmine_agile 1.5.3
redmine_checklists 3.1.5
redmine_dmsf 1.5.9
redmine_favorite_projects 2.0.3
redmine_monitoring_controlling 0.1.1
redmine_slack 0.2

RE: Best way to approach update from 3.3 to 5.x - Added by Mazdy Soraya 10 months ago

COMPLETE STEPS for upgrading from 3.x to 5.0.5 ( last version )

Prior upgrade: ===================

CENTOS 6
Ruby version 2.34
Redmine Version 3.3
old version of RVM that Redmine 5.0.5 do not support

====================================================
STEPS ====================================================
1) Download Redmine: https://www.redmine.org/projects/redmine/wiki/download
2) Copy redmine downloaded files to location, eg. copy to /var/www/redmine-5
3) Copy database.yml from OLD REDMINE CONFIG folder to NEW REDMINE CONFIG
3.1) Copy the files directory content from olde redmine into new (this directory contains all youruploaded files).
4) PERMISSIONS: Give the permission on the new redmine folder as OLDER VERSION of redmine had
5) Plugins : Do not COPY plugins, you will find later what works or not
6) Backup database before upgrade: mysqldump -u< db_username > -p< db_pass > < db_to_backup > > /<where to backup>
7) Update YUM to get newer repos => yum update
8) Updating RVM to stable to pick up newer version of Ruby => rvm get stable
9) RVM got updated with 3.0.0 stable version in my case ( for Redmine 5.0.5 ). Install it => rvm install 3.0.0
9.1) If you do not know which version of Ruby you can install check with: rvm list known
10) Now we should install required gems. Go into folder of NEW REDMINE and run these 2 lines of code:
10.1) bundle config set --local without 'development test'
10.2) bundle install
11) If you're upgrading from Redmine 2.x or below, remove the following file if it exists:
config/initializers/secret_token.rb (old redmine)
12) Then generate a new secret by running the following command under the application directory (new redmine folder) =>
bundle exec rake generate_secret_token
13) Update the DB from NEW Redmine folder => * bundle exec rake db:migrate RAILS_ENV=production*
14) If you have plugins that works with new version then update db with:
bundle exec rake redmine:plugins:migrate RAILS_ENV=production
15) Clear cache => bundle exec rake tmp:cache:clear RAILS_ENV=production
16) Restart application server <NOTE> I am using Apache and encountered error in a browser, it is due to the fact
that i have need to install passenger module and load it into Apache. Steps to install this gem is easy, and the
best thing is that it literally produce a file that you should copy into your Apache config file like httpd.conf
or passenger.conf. So what i did was =>
17) From the new redmine folder run => gem install passenger
18) It is installed and generated what should I copy into apache config. Example of mine =>

LoadModule passenger_module /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.18/buildout/apache2/mod_passenger.so
&lt;IfModule mod_passenger.c&gt;
PassengerRoot /usr/local/rvm/gems/ruby-3.0.0/gems/passenger-6.0.18
PassengerDefaultRuby /usr/local/rvm/gems/ruby-3.0.0/wrappers/ruby
&lt;/IfModule&gt;
Example of Apache file

	

&lt;VirtualHost *:80&gt;
ServerName name.somedomain
ServerAdmin
DocumentRoot /&lt;path to new redmine public fodlder&gt;/public/
ErrorLog logs/&lt;where to put logs&gt;
&lt;Directory "/var/www/redmine-5/public/"&gt;
Order allow,deny
Allow from all
AllowOverride all
&lt;/Directory&gt;
&lt;/VirtualHost&gt;

19) After copying the LoadModule file from above, restart the server. DONE!
NOTE) If you expirience some CSS breaks, just clear history, it is from old css that your browser downloaded.

RE: Best way to approach update from 3.3 to 5.x - Added by Gilbert W 5 months ago

Hi I have a old 3.3.0 redmine. Want to migrate it to 5.0.1 ubuntu, any advise?

    (1-4/4)