https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292009-03-07T12:02:46ZRedmineRedmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=78682009-03-07T12:02:46ZJean-Philippe Langjp_lang@yahoo.fr
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li></ul><p>Before processing your Trac database, you need to load the default Redmine configuration as mentioned in <a class="wiki-page" href="https://www.redmine.org/projects/redmine/wiki/RedmineMigrate#Trac">RedmineMigrate</a>:</p>
<pre><code>rake redmine:load_default_data RAILS_ENV="production"</code></pre> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=161242010-04-23T16:24:14ZNikolay Artemenko
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Reopened</i></li></ul><p>Hallo! <br />I have similar problem! <br />But your advise doesn`t help me...</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=272172011-03-28T13:48:42ZPavel Pivovarov
<ul></ul><p>Hello! I confirm, that Error is still present!</p>
<p>Have the same Tracker(#-612886248) expected, got NilClass(#-608353828)</p>
<p>This solution dosen't help!</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=272242011-03-28T18:36:19ZJean-Philippe Langjp_lang@yahoo.fr
<ul></ul><p>Please, run the task with --trace option and post the error stack trace.</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=272752011-03-29T10:36:27ZPavel Pivovarov
<ul></ul>[root@redmine redmine]# RAILS_ENV="production" rake redmine:migrate_from_trac --trace<br />(in /opt/redmine)
<ul>
<li>Invoke redmine:migrate_from_trac (first_time)</li>
<li>Invoke environment (first_time)</li>
<li>Execute environment</li>
<li>Execute redmine:migrate_from_trac</li>
</ul>
<p>WARNING: a new project will be added to Redmine during this process.<br />Are you sure you want to continue ? [y/N] y</p>
<p>Trac directory []: /opt/trac<br />Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]: postgresql<br />Trac database host [localhost]: <br />Trac database port [5432]: <br />Trac database name []: trac<br />Trac database schema [public]: <br />Trac database username []: postgres<br />Trac database password []: *<strong><b></strong>*</b><br />Trac database encoding [UTF-8]: <br />Target project identifier []: project</p>
<p>This project already exists in your Redmine database.<br />Are you sure you want to append data to this project ? [Y/n] Y<br />rake aborted!<br />Tracker(#-612473108) expected, got NilClass(#-607860258)<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_proxy.rb:262:in `raise_on_type_mismatch'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:117:in `<<'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:116:in `each'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:116:in `<<'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:141:in `transaction'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/transactions.rb:182:in `transaction'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:140:in `transaction'<br />/opt/redmine/vendor/rails/activerecord/lib/active_record/associations/association_collection.rb:115:in `<<'<br />/opt/redmine/lib/tasks/migrate_from_trac.rake:683:in `target_project_identifier'<br />/opt/redmine/lib/tasks/migrate_from_trac.rake:759<br />/opt/redmine/lib/tasks/migrate_from_trac.rake:742:in `prompt'<br />/opt/redmine/lib/tasks/migrate_from_trac.rake:759<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `call'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:635:in `execute'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `each'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:630:in `execute'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'<br />/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:589:in `invoke_with_call_chain'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:582:in `invoke'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2050:in `invoke_task'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `each'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2028:in `top_level'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2022:in `top_level'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2067:in `standard_exception_handling'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1997:in `run'<br />/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31<br />/usr/bin/rake:19:in `load'<br />/usr/bin/rake:19</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=272772011-03-29T10:41:43ZPavel Pivovarov
<ul></ul><p>Maybe this information may be useful too:</p>
<p>[root@redmine redmine]# ruby --version<br />ruby 1.8.6 (2010-02-05 patchlevel 399) [i386-linux]<br />[root@redmine redmine]# gem list rails</p>
<ul>
<li>LOCAL GEMS ***</li>
</ul>
<p>rails (2.3.4)<br />[root@redmine redmine]# cat /etc/redhat-release <br />Fedora release 12 (Constantine)<br />[root@redmine redmine]# uname -a<br />Linux redmine.office0.naumen.ru 2.6.32.26-175.fc12.i686.PAE <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: permissions if not admin (Closed)" href="https://www.redmine.org/issues/1">#1</a> SMP Wed Dec 1 21:45:50 UTC 2010 i686 i686 i386 GNU/Linux</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=272922011-03-29T12:03:36ZEtienne Massip
<ul></ul><p>Not sure it will resolve your issue, but Redmine requires Rails 2.3.5 since 0.9, you have to consider upgrade.</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=273522011-03-30T07:26:00ZPavel Pivovarov
<ul></ul><p>I am update rails for version 2.3.5 but it's still doesn't work. Crashes with the same error.</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=273562011-03-30T07:48:47ZEtienne Massip
<ul></ul><p>It seems to not find your "Feature" tracker, do you have enabled at least the "Defect" and "Feature" trackers in your project "project" ?</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=273612011-03-30T08:40:03ZPavel Pivovarov
<ul></ul><p>Brilliant!!! Thank you very much! It's work now very well!</p> Redmine - Defect #2919: migrate_from_trac fails with "Tracker(#XXX) expected, got NilClass(#YYY)"https://www.redmine.org/issues/2919?journal_id=515052013-09-01T21:48:12ZJan Niggemann (redmine.org team member)jan.niggemann@redmine.org
<ul><li><strong>Status</strong> changed from <i>Reopened</i> to <i>Closed</i></li></ul><p>The one who reopened this issue hasn't reported back for 3 years and the last poster says the issue is solved. Closing.</p>