Project

General

Profile

Actions

Defect #12477

open

Internal server error after migrate from Trac 0.12.3 ro Redmine 2

Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2

Added by Eric Rivera almost 14 years ago. Updated over 13 years ago.

Status:
Needs feedback
Priority:
Normal
Assignee:
-
Category:
Importers
Target version:
-
Resolution:
Affected version:

Description

Hello,

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?


Files

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

Related issues 1 (1 open — 0 closed)

Related to Redmine - Patch #14567: migrate_from_trac.rake does not convert timestamps in Trac database version 23NewActions

Updated by Eric Rivera almost 14 years ago Actions #1

Here is my sys info.

Environment:
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

Updated by Toshi MARUYAMA almost 14 years ago Actions #2

  • Category changed from Database to Importers

Updated by Jean-Philippe Lang almost 14 years ago Actions #3

Please post the error stack trace.

Updated by Jan Niggemann (redmine.org team member) almost 14 years ago Actions #4

  • Status changed from New to Needs feedback

Updated by Charles Capon over 13 years ago Actions #5

Hey everyone,

I found out what the problem is: dates in trac 0.12.3 are stored as microseconds from epoch. Function Time.at signature is Time.at(seconds[, 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).

Updated by Craig Rodrigues over 13 years ago Actions #6

Can you try the patch here:
http://www.redmine.org/issues/14567

Updated by Toshi MARUYAMA over 13 years ago Actions #7

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

Also available in: PDF Atom