Canvas course export fails to import

116 views
Skip to first unread message

tylerlclair

unread,
Sep 23, 2011, 11:13:48 AM9/23/11
to Canvas LMS Users
All of my .imscc exports from my production test server have failed to
re-import into Canvas. I have tried it on two different servers and
the results are the same. The latest error I got from viewing the
previous migrations was:

Canvas Course Export migration - There was an error with this
migration. Please give your administrator this migration identifier: 1
Warnings/Errors
Last Error:

ErrorReport:19

I have checked the delayed_jobs and nothing has pointed to that error.
Neither has the error_report table shown anything.

Bracken Mosbacker

unread,
Sep 23, 2011, 11:22:42 AM9/23/11
to canvas-l...@googlegroups.com
Tyler, this is probably because you don't have a required quiz conversion tool we use when importing. This wiki page explains what you need to do:


We should definitely make that fail gracefully when trying to import though, since most people won't add that initially. Also the main Canvas wiki would mention this if it doesn't already.

Tyler Clair

unread,
Sep 23, 2011, 11:41:25 AM9/23/11
to canvas-l...@googlegroups.com
I just got that installed and I am still getting the same errors, just different numbers. My .imscc file has no quizzes or questions banks.

Bracken Mosbacker

unread,
Sep 23, 2011, 11:52:05 AM9/23/11
to canvas-l...@googlegroups.com
You said the error_reports table doesn't show anything, but the error should get logged there. You should be able to go to: my.instance.com/error_reports/19 or whatever your error_report id was and get a stacktrace/error message.

Tyler Clair

unread,
Sep 23, 2011, 12:37:09 PM9/23/11
to canvas-l...@googlegroups.com
Learn something new everyday!

So this is the stacktrace of error ID 19

exception_message: undefined method `[]' for nil:NilClass 

/var/rails/canvas/lib/canvas_migration/migrator.rb:109:in `download_archive'
/var/rails/canvas/lib/canvas_migration/migrator.rb:39:in `initialize'
/var/rails/canvas/lib/cc/importer/cc_converter.rb:32:in `initialize'
/var/rails/canvas/lib/cc/importer/cc_worker.rb:30:in `new'
/var/rails/canvas/lib/cc/importer/cc_worker.rb:30:in `perform'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/backend/base.rb:87:in `invoke_job'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:123:in `perform'
/usr/lib/ruby/1.8/timeout.rb:62:in `timeout'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:123:in `perform'
/usr/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:122:in `perform'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:95:in `run'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:194:in `configure_for_job'
/usr/lib/ruby/1.8/tmpdir.rb:129:in `mktmpdir'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:192:in `configure_for_job'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:94:in `run'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:69:in `start'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:68:in `loop'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/worker.rb:68:in `start'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:118:in `spawn_worker'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:115:in `fork'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:115:in `spawn_worker'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:102:in `spawn_all_workers'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:102:in `times'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:102:in `spawn_all_workers'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:100:in `each'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:100:in `spawn_all_workers'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:70:in `start'
/var/rails/canvas/vendor/plugins/delayed_job/lib/delayed/pool.rb:44:in `run'
/var/rails/canvas/script/delayed_job:5

Checking other things my GEM_HOME variable is set, delayed_jobs are running

Thanks,
Tyler

Bracken Mosbacker

unread,
Sep 23, 2011, 12:41:53 PM9/23/11
to canvas-l...@googlegroups.com
ah, okay. This issue is fixed in some commits coming out soonish. The problem is that you don't have a config file it expects. (the new commit makes the config file optional) So in your config directory copy the "external_migration.yml.example" file to "external_migration.yml" and that should fix this error.

Tyler Clair

unread,
Sep 23, 2011, 12:51:30 PM9/23/11
to canvas-l...@googlegroups.com
Sweet! worked like a charm!

Thanks for the help Bracken!

Tyler
Reply all
Reply to author
Forward
0 new messages