Upgrade Redmine 3.2.0 to 4.1.0
Hi to everyone,
I have in mind to update the version of redmine that I have on a server with Debian 9, exactly version 3.2 and pass it to the latest stable version, version 4.1.0.
I've been looking at the Redmine documentation for the upgrade process, and the first thing I encounter problems with is the requirements, since Redmine 3.2.0 uses versions of Ruby 2.0 and Rails version 4.2.5, while Redmine 4.1 already use other versions of Ruby and Rails, version 2.3 and version 5.2 respectively.
Since it is going to be on the same server where I have Redmine version 3.2, how do I comply with the requirements of the new version to which I want to update !?
Another option is to make a clean installation of Redmine 4.1.0 and export the database but I don't know if this is correct or not.
RE: Upgrade Redmine 3.2.0 to 4.1.0 - Added by Jérôme BATAILLE almost 4 years ago
RE: Upgrade Redmine 3.2.0 to 4.1.0 - Added by Ivan Cenov almost 4 years ago
I had the same task - to upgrade ruby and upgrade Redmine from 3.x to 4.x.
The main steps were
- Install new ruby & MSYS2
- Install some gems - bundler, myslq2
- create sql dump of the existing database (that is on the same machine)
- create new database (ex.: redmine4), create users and assign privileges like they are in the old database used by redmine 3.x.
- Import sql dump
- Unzip/unrar the Redmine 4.x archive in a separate folder different from the folder of Redmine 3.x.
- copy 'files' folder from Redmine 3.x to Redmine 4.x
- copy themes if you have additional themes from public\themes.
- For now, do not copy the additional plugins, if you are not sure they are compatible with redmine 4.x
- Confugure redmine 4.x (database.yml, configuration.yml) so as to use redmine4 database.
- Execute 'bundle install --without test development'. This will install all the needed gems and also rails framework.
- Execute database migration.
- execute other actions (clean cache etc)
- try to start Redmine using puma and not thin server.
If you have plugins, find versions that are compatible with Redmine 4.0 and install them (+migrating database).
I have written an instruction with the actions that I did and posted it here in the forums. Unfortunately I did not find it. It was a year ago.
Use above list with caution, because I may have omitted something important, I wrote it just now.
RE: Upgrade Redmine 3.2.0 to 4.1.0 - Added by Mateusz Lasak about 2 years ago
I have instance with Redmine 3.3 and new clean instance redmine 4.2.
Is it possible to easily export an existing database from redmine 3 and import it to redmine 4 using a plugin?