Migrating from RedMine 0.9.2.devel to 2.5.2.stable
Added by Kevin Cook over 10 years ago
Currently running RedMine 0.9.2.devel on a linux box. I need to migrate the data from the linux box to my new install of Bitnami Redmine 2.5.2.stable on a windows server 2012 box.
Here is what I have done so far#
- I successfully backed up the old database on the linux box: /usr/bin/mysqldump -u redmine -ppassword redmine > redmine_backup.sql
- I downloaded and installed Bitnami Redmine 2.5.2.stable on my windows server 2012 box.
- In the new installation I started a mysql session: mysql -uroot -p
- drop database binami_redmine;
- create database binami_redmine;
- Grant all privileges on bitnami_redmin.* to 'userId'@'localhost' identified by 'password'; I believe this one failed, at least the return message was "0 rows affected".
- flush privileges;
- exit;
- I then imported the old data into the new installation: mysql -uroot -pPassword bitnam_redmine < redmine_backup.sql
- set RAILS_ENV=production
- rake db:migrate which produced the following errors:
rake aborted!
You have already activated rake 10.1.0, but your Gemfile requires rake 10.1.1. Prepending `bundle exec` to your command may solve this. C:/Bitnami/redmine-2.5.2-1/apps/redmine/htdocs/config/boot.rb:8:in `<top (required)>' C:/Bitnami/redmine-2.5.2-1/apps/redmine/htdocs/config/application.rb:1:in `<top(required)>' C:/Bitnami/redmine-2.5.2-1/apps/redmine/htdocs/Rakefile:5:in `<top (required)>'(See full trace by running task with --trace)
I am quite lost now. I have read several instructions all of which seem to take a different path. Can anyone provide me with a paht forward? Please.
Replies (5)
RE: Migrating from RedMine 0.9.2.devel to 2.5.2.stable
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
Hi Kevin,
There is a typo in your message, I don't know if you did the typo writing the command too:
- Grant all privileges on bitnami_redmin.* to 'userId'@'localhost' identified by 'password';
+ Grant all privileges on bitnami_redmine.* to 'userId'@'localhost' identified by 'password';
For the migration, use a
bundle exec
:set RAILS_ENV=production bundle exec rake db:migrate
Cheers,
RE: Migrating from RedMine 0.9.2.devel to 2.5.2.stable
-
Added by Kevin Cook over 10 years ago
I fat fingered it. However I still do not think it worked:
Grant all privileges on bitnami_redmin.* to 'userId'@'localhost' identified by 'password';
returned: Query OK, 0 rows affected (0.00 sec)
I believe the Rake is working correctly now.
My old version of RedMine has several plugins. So I just copied over all of the folders that exists on the old server under the directory /usr/edms/ttrack/redmine/vendor to the new server under the directory c:\Bitnami\redmine-2.5.2-1\apps\redmine\htdocs\plugins.
However, when I do this Redmine stops working. I remove the files and Redmine starts working again.
Any ideas?
RE: Migrating from RedMine 0.9.2.devel to 2.5.2.stable
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
There is almost no chance that a plugin for 0.9.2 could be compatible with 2.5.2.
Search for updated versions or equivalent plugins.
RE: Migrating from RedMine 0.9.2.devel to 2.5.2.stable
-
Added by Kevin Cook over 10 years ago
This may be a dump question. If I go install the new versions of the plugins will I loose any data?
RE: Migrating from RedMine 0.9.2.devel to 2.5.2.stable
-
Added by Martin Denizet (redmine.org team member) over 10 years ago
Most plugins will upgrade smoothly. Whatever you choose to do, do a backup first, just to be safe :)