Project

General

Profile

Actions

Defect #4206

closed

Repeatedly running of db_migrate fails silently

Added by Johan De Meersman about 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Database
Target version:
-
Start date:
2009-11-12
Due date:
% Done:

0%

Estimated time:
Resolution:
Duplicate
Affected version:

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 101

About 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

Wiki-orig.log (4.94 KB) Wiki-orig.log Original Wiki issue, happened as soon as clicking on the 'Wiki' tab Johan De Meersman, 2009-11-12 16:14
Repo-orig.log (9.55 KB) Repo-orig.log Repository issue, happened as soon as clicing on the 'Repository' tab, but not for all projects Johan De Meersman, 2009-11-12 16:14
Wiki-new.log (5.37 KB) Wiki-new.log New Wiki issue, happens when clicking on a wiki link to a nonexistant page Johan De Meersman, 2009-11-12 16:14
redmine.schema_info--0.7.dmp.bz2 (678 Bytes) redmine.schema_info--0.7.dmp.bz2 schema_info table from the old install, as imported into the new pre-upgradescript Johan De Meersman, 2009-11-17 16:39

Related issues

Is duplicate of Redmine - Defect #1681: NoMethodError in WikiController#indexClosed2008-07-24

Actions
Actions

Also available in: Atom PDF