instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.7k stars 2.52k forks source link

undefined method `start_with?' for nil:NilClass #1552

Open xavisanchez opened 4 years ago

xavisanchez commented 4 years ago

Error when importing a zip file with common cartrigde type. What is the solution?

49455 undefined method `start_with?' for nil:NilClass

categoría: content_migration creado en: 2019-12-16 16:46:17 +0100

pid: 2558 type: content_migration

undefined method `start_with?' for nil:NilClass

/var/canvas/lib/canvas/migration/migrator.rb:139:in `block (2 levels) in resources_by_type'

/var/canvas/lib/canvas/migration/migrator.rb:139:in any?' /var/canvas/lib/canvas/migration/migrator.rb:139:inblock in resources_by_type' /var/canvas/lib/canvas/migration/migrator.rb:139:in each' /var/canvas/lib/canvas/migration/migrator.rb:139:infind_all' /var/canvas/lib/canvas/migration/migrator.rb:139:in resources_by_type' /var/canvas/lib/cc/importer/standard/webcontent_converter.rb:26:increate_file_map' /var/canvas/lib/cc/importer/standard/converter.rb:58:in convert' /var/canvas/lib/cc/importer/cc_worker.rb:49:inperform' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/backend/base.rb:253:in block in invoke_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:66:inblock in initialize' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:71:in execute' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:44:inrun_callbacks' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/backend/base.rb:250:in invoke_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-inst-jobs-1.1.7/lib/switchman_inst_jobs/delayed/backend/base.rb:61:inblock in invoke_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/app/models/switchman/shard_internal.rb:582:in block in activate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/app/models/switchman/shard_internal.rb:86:inactivate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/app/models/switchman/shard_internal.rb:581:in activate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-inst-jobs-1.1.7/lib/switchman_inst_jobs/delayed/backend/base.rb:61:ininvoke_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:188:in block (2 levels) in perform' /home/ubuntu/.rvm/rubies/ruby-2.4.0/lib/ruby/2.4.0/benchmark.rb:308:inrealtime' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:182:in block in perform' /var/canvas/config/initializers/delayed_job.rb:167:inblock (2 levels) in <top (required)>' /var/canvas/vendor/bundle/ruby/2.4.0/gems/canvas_statsd-2.0.4/lib/canvas_statsd/statsd.rb:81:in batch' /var/canvas/config/initializers/delayed_job.rb:166:inblock in <top (required)>' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:84:in block (2 levels) in add' /var/canvas/config/initializers/delayed_job.rb:128:inblock (2 levels) in <top (required)>' /var/canvas/vendor/bundle/ruby/2.4.0/gems/canvas_statsd-2.0.4/lib/canvas_statsd/statsd.rb:75:in time' /var/canvas/config/initializers/delayed_job.rb:127:inblock in <top (required)>' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:84:in block (2 levels) in add' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:66:inblock in initialize' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:84:in block in add' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:84:inblock in add' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:71:in execute' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:44:inrun_callbacks' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:179:in perform' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:152:inblock (2 levels) in run' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:249:in block in configure_for_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:40:inrunning_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:245:in configure_for_job' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:151:inblock in run' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:66:in block in initialize' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:71:inexecute' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:44:in run_callbacks' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:144:inrun' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-inst-jobs-1.1.7/lib/switchman_inst_jobs/delayed/worker.rb:26:in block in run' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/app/models/switchman/shard_internal.rb:582:inblock in activate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/app/models/switchman/shard_internal.rb:86:in activate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/app/models/switchman/shard_internal.rb:581:inactivate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-inst-jobs-1.1.7/lib/switchman_inst_jobs/delayed/worker.rb:26:in run' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:124:inblock in start' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:66:in block in initialize' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:71:inexecute' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/lifecycle.rb:44:in run_callbacks' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/worker.rb:122:instart' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-inst-jobs-1.1.7/lib/switchman_inst_jobs/delayed/worker.rb:19:in block in start' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-1.12.8/lib/switchman/default_shard.rb:6:inactivate' /var/canvas/vendor/bundle/ruby/2.4.0/gems/switchman-inst-jobs-1.1.7/lib/switchman_inst_jobs/delayed/worker.rb:19:in start' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:97:inblock in spawn_worker' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:108:in block in fork_with_reconnects' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:105:infork' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:105:in fork_with_reconnects' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:96:inspawn_worker' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:74:in block (2 levels) in spawn_all_workers' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:74:intimes' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:74:in block in spawn_all_workers' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:73:ineach' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:73:in spawn_all_workers' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/pool.rb:40:instart' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/cli.rb:96:in start' /var/canvas/vendor/bundle/ruby/2.4.0/gems/inst-jobs-0.14.8/lib/delayed/cli.rb:48:inrun' /var/canvas/script/delayed_job:11:in `

'

stale[bot] commented 2 years ago

Thanks for contributing to this issue. As it has been 2 years since the last activity, we are automatically closing the issue in 30 days. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please respond before the issue is closed, or post a message on the mailing list. We'll gladly take a look again!