view · edit · sidebar · attach · print · history

20121005-migel-index-debug-update-swissmedic-job

<< | Index | >>


Summary

  • Update MiGel INDEX
  • Create interaction instant search

Commits

Index


Update MiGel index

migel> init_fulltext_index_tables

Debug swissmedic plugin

at Production server, update_swissmedic Job got this errors.

Plugin: ODDB::SwissmedicPlugin
Error: NoMethodError
Message: undefined method `[]' for nil:NilClass
Backtrace:
/var/www/oddb.org/src/model/registration.rb:250:in `sequence'
/var/www/oddb.org/src/plugin/swissmedic.rb:766:in `update_sequence'
/var/www/oddb.org/src/plugin/swissmedic.rb:754:in `block in update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:752:in `each'
/var/www/oddb.org/src/plugin/swissmedic.rb:752:in `update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:46:in `update'
/var/www/oddb.org/src/util/updater.rb:326:in `block in update_swissmedic'
/var/www/oddb.org/src/util/updater.rb:427:in `call'
/var/www/oddb.org/src/util/updater.rb:427:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:324:in `update_swissmedic'
/var/www/oddb.org/src/util/updater.rb:187:in `run'
/var/www/oddb.org/jobs/import_daily:13:in `block in <module:Util>'
/var/www/oddb.org/src/util/job.rb:40:in `call'
/var/www/oddb.org/src/util/job.rb:40:in `run'
/var/www/oddb.org/jobs/import_daily:12:in `<module:Util>'
/var/www/oddb.org/jobs/import_daily:11:in `<module:ODDB>'
/var/www/oddb.org/jobs/import_daily:10:in `<main>'
src/model/registration.rb
  def sequence(seqnr)
    unless seqnr.is_a?(SBSM::InvalidDataError)
      @sequences[sprintf('%02d', seqnr.to_i)]
    end
  end
commit
Plugin: ODDB::SwissmedicPlugin
Error: NoMethodError
Message: undefined method `first' for nil:NilClass
Backtrace:
/var/www/oddb.org/src/plugin/swissmedic.rb:798:in `update_sequence'
/var/www/oddb.org/src/plugin/swissmedic.rb:754:in `block in update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:752:in `each'
/var/www/oddb.org/src/plugin/swissmedic.rb:752:in `update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:46:in `update'
/var/www/oddb.org/src/util/updater.rb:326:in `block in update_swissmedic'
/var/www/oddb.org/src/util/updater.rb:427:in `call'
/var/www/oddb.org/src/util/updater.rb:427:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:324:in `update_swissmedic'
(eval):1:in `block (2 levels) in _admin'
/var/www/oddb.org/src/util/oddbapp.rb:1551:in `instance_eval'
/var/www/oddb.org/src/util/oddbapp.rb:1551:in `block (2 levels) in _admin'
/var/www/oddb.org/src/util/failsafe.rb:10:in `call'
/var/www/oddb.org/src/util/failsafe.rb:10:in `failsafe'
/var/www/oddb.org/src/util/oddbapp.rb:1550:in `block in _admin'
commit
view · edit · sidebar · attach · print · history
Page last modified on October 09, 2012, at 03:42 AM