Project

General

Profile

help update Redmine to the latest stable version

Added by Dmitry Yanchenko over 4 years ago

good day
I have a version:
Environment:
Redmine version 2.4.2.stable
Ruby version 1.9.3-p484 (2013-11-22) [x86_64-linux]
Rails version 3.2.16
Environment production
Database adapter MySQL
SCM:
Subversion 1.8.8
Filesystem
Redmine plugins:
no plugin installed

But the most important thing that I do not understand is where in what directory the redmin is installed


Replies (12)

RE: help update Redmine to the latest stable version - Added by Bernhard Rohloff over 4 years ago

It depends if Redmine was installed manually or by a system package.
If the latter one is true, then the package maintainers are right people to help you with the installation.
If Redmine was installed manually, a quick find of redmine.rb should do the trick to find the folder.

RE: help update Redmine to the latest stable version - Added by Dmitry Yanchenko over 4 years ago

I found two directories:
/usr/share/redmine/lib/
redmine.rb
/usr/share/redmine/config/initializers
30-redmine.rb
What are my next steps?

RE: help update Redmine to the latest stable version - Added by Bernhard Rohloff over 4 years ago

It seems that Redmine was installed by a package manager. The upgrade process can vary between different distributions. Because of this I would highly recommend you to contact the maintainers of your distributions Redmine package to help you with the upgrade process.

RE: help update Redmine to the latest stable version - Added by Dmitry Yanchenko over 4 years ago

Tell me how to do this? Who should I ask for help?

RE: help update Redmine to the latest stable version - Added by Dmitry Yanchenko over 4 years ago

Do you mean Linux? Which version do I have installed?

RE: help update Redmine to the latest stable version - Added by Dmitry Yanchenko over 4 years ago

Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.16.0-77-generic x86_64)

RE: help update Redmine to the latest stable version - Added by Bernhard Rohloff over 4 years ago

Dmitry Yanchenko wrote:

Welcome to Ubuntu 14.04.6 LTS (GNU/Linux 3.16.0-77-generic x86_64)

Ok so your Redmine installation package is maintained by the Ubuntu folks: https://launchpad.net/ubuntu/+source/redmine
As I don't know how this package was implemented it would be better if you ask the guys over there to help you with the upgrade process. At least they can tell you where they've put the important files to backup. ;-)

RE: help update Redmine to the latest stable version - Added by Dmitry Yanchenko over 4 years ago

I can’t update the package because I have an old version of ubuntu, tell me if I install a new ubuntu and install a new version of redmine how to migrate data from the old version

RE: help update Redmine to the latest stable version - Added by Bernhard Rohloff over 4 years ago

As I mentioned before, the Ubuntu installation package of Redmine is not maintained by us and because of this we have no knowledge about the upgrade process of Redmine inside of Ubuntu. However I've invested some time and spun up a fresh Ubuntu 18.04 VM with the latest Redmine package. So as result of my investigation you should be fine by performing the following steps:

  • setup a new instance of Redmine (Ubuntu package or as described in the RedmineInstall guide)
  • backup your files from the old installation
    • MySQL database
    • configuration "/usr/share/redmine/config" if there there is an existing configuration.yml file
    • attached files "/var/lib/redmine/default/files"
  • copy everything to your new Redmine installation
  • migrate old database to the new Redmine version and invoke `bundle exec rake db:migrate RAILS_ENV=production` in /usr/share/redmine

These are just assumptions and I have not tried it so please use my advice with caution.

Kind regards,

Bernhard

RE: help update Redmine to the latest stable version - Added by Dmitry Yanchenko over 4 years ago

I have nothing left, you say that you do not support ubuntu
on the ubuntu and redmine form they wrote me the following:
"For data migration I cannot provide help. I assume that you have to setup redmine and mysql in a similar way to the old installation, and probably have to copy the data files from the old system to the new one."

Some kind of vicious circle. Who can help me?

RE: help update Redmine to the latest stable version - Added by Bernhard Rohloff over 4 years ago

Dmitry Yanchenko wrote:

I have nothing left, you say that you do not support ubuntu
on the ubuntu and redmine form they wrote me the following:
"For data migration I cannot provide help. I assume that you have to setup redmine and mysql in a similar way to the old installation, and probably have to copy the data files from the old system to the new one."

Some kind of vicious circle. Who can help me?

Data migration should work like I have described.

  1. Move your attached files to the new installation
  2. Move your files from the old mysql installation to the new one.
  3. After moving the database to the new instance you have to migrate it to the new version of Redmine (described in the RedmineUpgrade article in the wiki).

# Database migration should be these two lines

cd /usr/share/redmine/
bundle exec rake db:migrate RAILS_ENV=production

Dmitry Yanchenko wrote:

where to get RedmineInstall guide

I mentioned it in my previous post, but here is it: RedmineInstall

    (1-12/12)