Defect #4206
closedRepeatedly running of db_migrate fails silently
0%
Description
As part of a major Redmine upgrade, I set up a new VM and did a clean install of Redmine 0.8.5, then imported DB, files and SVN repos and ran db_migrate, db_migrate_plugins and the SVN repo updates. This environment then got tested and approved, while the old environment remained in use for real.
At switch time, I re-imported the DB, files and SVN repos, and re-ran the migrate steps. No warnings were issued.
However, we then started seeing internal server errors on some (but not all) repositories and Wiki pages. I originally surmised the SVN issue to be some sort of timeout, because it seemed to work for smaller repos, and appeared to die on revision 112 of my large repo I used for verification; and turning off automatic loading of revision information in the SVN option of Redmine also mostly fixed the problems.
Googling for the wiki issue I was seeing, however, led me to http://www.redmine.org/issues/1681 and http://www.redmine.org/issues/3553 . I retried the db_migrate as suggested, but that didn't work, then modified the tables as described in the comments, and that fixed the problems I was seeing.
The conclusion I draw from this, is that db_migrate either thinks it doesn't need to do anything, or fails silently when re-run on an installation where it's been run before but the database has been re-imported from a not-updated one. Given that the implementation scenario I've used is not that unreasonable or uncommon, this may be worth looking into, I think.
The new Redmine server is on Debian 5.0.3 (Lenny), MySQL 5.0.51, Apache 2.2.9 and Perl 5.10. Output from "ruby script/about" is as follows:
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.2.0
Rails version 2.1.2
Active Record version 2.1.2
Action Pack version 2.1.2
Active Resource version 2.1.2
Action Mailer version 2.1.2
Active Support version 2.1.2
Edge Rails revision unknown
Application root /opt/redmine-0.8.5
Environment production
Database adapter mysql
Database schema version 101About your Redmine plugins
Mylyn Connector plugin 2.5.0.trunk
Scrumdashboard plugin 1.2
Charts Plugin 0.0.14
Redmine Burndown plugin 1.1.3
Redmine Task Board plugin 1.0.0
Redmine Hudson plugin 0.1.0
If you need any more information, please ask.
Files
Related issues