https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-11-30T17:13:34ZRedmineRedmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=431512012-11-30T17:13:34ZEric Rivera
<ul></ul><p>Here is my sys info.</p>
<p>Environment:<br /> Redmine version 2.1.4.stable<br /> Ruby version 1.9.3 (x86_64-linux)<br /> Rails version 3.2.8<br /> Environment production<br /> Database adapter Mysql2<br />Redmine plugins:<br /> no plugin installed</p> Redmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=431552012-12-01T05:27:19ZToshi MARUYAMA
<ul><li><strong>Category</strong> changed from <i>Database</i> to <i>Importers</i></li></ul> Redmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=431682012-12-02T21:53:18ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Please post the error stack trace.</p> Redmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=452002013-02-01T20:31:26ZJan Niggemann (redmine.org team member)jan.niggemann@redmine.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs feedback</i></li></ul> Redmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=475952013-03-27T14:21:03ZCharles Capon
<ul><li><strong>File</strong> <a href="/attachments/9387">migrate_from_trac.rake.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/9387/migrate_from_trac.rake.patch">migrate_from_trac.rake.patch</a> added</li></ul><p>Hey everyone,</p>
<p>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]).</p>
<p>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).</p> Redmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=508672013-07-29T14:48:54ZCraig Rodrigues
<ul></ul><p>Can you try the patch here:<br /><a class="external" href="http://www.redmine.org/issues/14567">http://www.redmine.org/issues/14567</a></p> Redmine - Defect #12477: Internal server error after migrate from Trac 0.12.3 ro Redmine 2https://www.redmine.org/issues/12477?journal_id=508972013-07-31T09:17:04ZToshi MARUYAMA
<ul><li><strong>Related to</strong> <i><a class="issue tracker-3 status-1 priority-4 priority-default" href="/issues/14567">Patch #14567</a>: migrate_from_trac.rake does not convert timestamps in Trac database version 23</i> added</li></ul>