Defect #12477

Internal server error after migrate from Trac 0.12.3 ro Redmine 2

Added by Eric Rivera over 5 years ago. Updated over 4 years ago.

Status:Needs feedbackStart date:
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Resolution: Affected version:2.1.4



I have recently tried migrating our Trac 0.12 system over to red mine 2.1.4

The rake file runs and says transfers 147/147 tickets successfully.

When I log in I can see my tickets listed however when I click on one it just sends me to "internal server error page"?

Can anyone please help here?

migrate_from_trac.rake.patch Magnifier - patch for lib/tasks/migrate_from_trac.rake (523 Bytes) Charles Capon, 2013-03-27 15:18

Related issues

Related to Redmine - Patch #14567: migrate_from_trac.rake does not convert timestamps in Tra... New


#1 Updated by Eric Rivera over 5 years ago

Here is my sys info.

Redmine version 2.1.4.stable
Ruby version 1.9.3 (x86_64-linux)
Rails version 3.2.8
Environment production
Database adapter Mysql2
Redmine plugins:
no plugin installed

#2 Updated by Toshi MARUYAMA over 5 years ago

  • Category changed from Database to Importers

#3 Updated by Jean-Philippe Lang over 5 years ago

Please post the error stack trace.

#4 Updated by Jan Niggemann ( team member) about 5 years ago

  • Status changed from New to Needs feedback

#5 Updated by Charles Capon almost 5 years ago

Hey everyone,

I found out what the problem is: dates in trac 0.12.3 are stored as microseconds from epoch. Function signature is[, microseconds]).

As attachment, you can find a svn diff that correct this bug. I have never developed with ruby before today so it may be a very dirty fix. I'm quite sure that it won't work with prior trac version that does not store dates as microseconds (I think prior to 0.12).

#6 Updated by Craig Rodrigues over 4 years ago

Can you try the patch here:

#7 Updated by Toshi MARUYAMA over 4 years ago

  • Related to Patch #14567: migrate_from_trac.rake does not convert timestamps in Trac database version 23 added

Also available in: Atom PDF