view · edit · sidebar · attach · print · history

Index>

20151229-errors

Summary

  • Error over 190 session of december 27
  • T_NODE error while recreating rss-feeds

Commits

Index

Keep in Mind for work to do
  • Fix dojo error http://www.sitepen.com/blog/2012/10/31/debugging-dojo-common-error-messages/#forgot-dom-ready
  • I removed on May-27 tests for ix_registrationss, fix_sequences, fix_compositions, fix_packages from test/test_plugin/swissmedic.rb,as he could not find any references for them in the src code. Did I erroneously remove stuff when cleaning up the swissmedic import earlier?
  • The whole test for older/newer Packages must be adapted to xlsx. One must compare the rows (e.g. by creating csv files) and do the same stuff in xlsx!
  • creat gem: task: input=file with ean-codes, standard output show ean-codes + atc-code. Source is Swissmedic Packungen.xlsx or XML.
  • Import via data/medreg_companies.yaml
  • Fix problem with radioactivatum 99m-technetio when parsing Wirkstoffe
  • Fix galenic_forms when parsing swissmedic.xlsx
  • Cleanup generic_type. Replace it everywhere by sl_generic_type and adapt code accordingly.
  • Get updated ATC-codes from EPha for oddb.org, too.
  • Use refdatabase for oddb.org, too.
  • Check whether we should revert the part which touche src/plugin/text_info.rb of commit 17af82ba4d76a5838683411b260de265531f9e74. We should improve test/stub/oddbapp.rb to work similar for update/pointer as the real oddbapp. In this case we would have a good Stub for plugins. May we need a different stub when working with plugins (which create/modify/destroy ODDB-Objects), when in most other cases a very simple stub is sufficient.
  • When a logged in admin user changes an atc_code of a product, the corresponding atc_class must update its sequences, too.
  • Order of entering search type and value should not matter. Both should show long URL with search
  • Remove parser for minifi (but keep the minifi)

T_NODE error while recreating rss-feed

Trying to reproduce the error here. First run of import-daily produced no error. Relauching it.

Now got the following error

Plugin: ODDB::TextInfoPlugin
Error: NoMethodError
Message: undefined method `iksnr' for RSS::Maker::RSS09::Items::Item::Title:Class
Backtrace:
/var/www/oddb.org/src/model/registration_observer.rb:36:in `block in iksnrs'
/var/www/oddb.org/src/model/registration_observer.rb:36:in `collect'
/var/www/oddb.org/src/model/registration_observer.rb:36:in `iksnrs'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/stub.rb:112:in `method_missing'
/var/www/oddb.org/src/view/rss/fachinfo.rb:44:in `item_to_html'
/var/www/oddb.org/src/view/rss/fachinfo.rb:80:in `block (2 levels) in to_html'
/var/www/oddb.org/src/view/rss/fachinfo.rb:74:in `each'
/var/www/oddb.org/src/view/rss/fachinfo.rb:74:in `block in to_html'
/usr/local/lib/ruby/1.9.1/rss/maker/base.rb:438:in `make'
/usr/local/lib/ruby/1.9.1/rss/maker/base.rb:402:in `make'
/usr/local/lib/ruby/1.9.1/rss/maker.rb:9:in `make'
/var/www/oddb.org/src/view/rss/fachinfo.rb:65:in `to_html'
/var/www/oddb.org/src/plugin/plugin.rb:91:in `block (2 levels) in update_rss_feeds'
/var/www/oddb.org/src/plugin/plugin.rb:90:in `open'
/var/www/oddb.org/src/plugin/plugin.rb:90:in `block in update_rss_feeds'
/var/www/oddb.org/src/plugin/plugin.rb:49:in `call'
/var/www/oddb.org/src/plugin/plugin.rb:49:in `block in l10n_sessions'
/var/www/oddb.org/src/plugin/plugin.rb:46:in `each_key'
/var/www/oddb.org/src/plugin/plugin.rb:46:in `l10n_sessions'
/var/www/oddb.org/src/plugin/plugin.rb:82:in `update_rss_feeds'
/var/www/oddb.org/src/plugin/plugin.rb:77:in `block in update_yearly_fachinfo_feeds'
/var/www/oddb.org/src/plugin/plugin.rb:76:in `each'
/var/www/oddb.org/src/plugin/plugin.rb:76:in `update_yearly_fachinfo_feeds'
/var/www/oddb.org/src/plugin/text_info.rb:121:in `postprocess'
/var/www/oddb.org/src/plugin/text_info.rb:1485:in `import_swissmedicinfo'
/var/www/oddb.org/src/util/updater.rb:573:in `block in update_notify_simple'
/var/www/oddb.org/src/util/updater.rb:549:in `call'
/var/www/oddb.org/src/util/updater.rb:549:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:567:in `update_notify_simple'
/var/www/oddb.org/src/util/updater.rb:344:in `update_textinfo_swissmedicinfo'
/var/www/oddb.org/src/util/updater.rb:198:in `run'
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'
jobs/import_daily:12:in `<module:Util>'
jobs/import_daily:11:in `<module:ODDB>'
jobs/import_daily:10:in `<main>'

Tried a fix and will rerun twice import_daily. The debug messages did not show anything helpful and no error was reproduced. Rearranging the messages to help debugging the session on thinpower. Rerunning import twice again. Got the error again. Fix/debug message still not helpful. Trying another work around. Pushed workaround Fix RSS/fachinfo: NotImplementedError

Error over 190 session of december 27

Restarting ch-crawlers as I found the following lines in log/oddb/error_log: [Tue Dec 29 01:37:40 2015] [error] access to /en/gcc/price_history/reg/47823/seq/04/pack/048/search_type/st_oddb/search_query/Inflamac+25+mg failed for (null), reason: Tue Dec 29 01:37:40 +0100 2015 - 70092467554320 - DRb::DRbConnError - druby://localhost:10001 - #<Errno::ECONNREFUSED: Connection refused - connect(2)> Both processes were from august.

Did see 58 GETs for minute 07:21 in log/oddb/2015/12/27/access_log. Got 2203 DRb::DRbConnError errors in log/oddb/2015/12/27/error_log. Counting its number I find several days with over 1000 DRbConnect errors. Seen

ywesee@thinpower /var/www/oddb.org $ grep -c DRb::DRbConnError log/oddb/2015/12/*/error_log
log/oddb/2015/12/01/error_log:4859
log/oddb/2015/12/02/error_log:7302
log/oddb/2015/12/03/error_log:385
log/oddb/2015/12/04/error_log:68
log/oddb/2015/12/05/error_log:232
log/oddb/2015/12/06/error_log:29
log/oddb/2015/12/07/error_log:58
log/oddb/2015/12/08/error_log:172
log/oddb/2015/12/09/error_log:121
log/oddb/2015/12/10/error_log:93
log/oddb/2015/12/11/error_log:121
log/oddb/2015/12/12/error_log:504
log/oddb/2015/12/13/error_log:206
log/oddb/2015/12/14/error_log:159
log/oddb/2015/12/15/error_log:75
log/oddb/2015/12/16/error_log:45
log/oddb/2015/12/17/error_log:339
log/oddb/2015/12/18/error_log:201
log/oddb/2015/12/19/error_log:121
log/oddb/2015/12/20/error_log:122
log/oddb/2015/12/21/error_log:756
log/oddb/2015/12/22/error_log:366
log/oddb/2015/12/23/error_log:216
log/oddb/2015/12/24/error_log:99
log/oddb/2015/12/25/error_log:192
log/oddb/2015/12/26/error_log:60
log/oddb/2015/12/27/error_log:2203
log/oddb/2015/12/28/error_log:2746
log/oddb/2015/12/29/error_log:1263

In any case, found that many chapters of Negatol IKNSR 15015 don't get displayed correctly, eg. http://ch.oddb.org/de/gcc/fachinfo/reg/15015/chapter/composition. But the complete FI looks okay.

Okay found the following errors in /service/ch.oddb-crawler/log/main/current

4000000056828a3a1e10a9b4 undefined method `select_all' for nil:NilClassundefined method `select_all' for nil:NilClassundefined method `select_all' for nil:NilClassundefined method `select_all' for nil:NilClassundefined method `select_all' for nil:NilClass
4000000056828dbb052d91b4 Attention: monkey-patching CSV::Cell
@4000000056828dbb052d959c could not find htmlgrid.so, falling back to pure-ruby class
@4000000056828dbb052d9984 process: Oddb (OddbApp:Crawler)
@4000000056828dbb052d9984 init system
@4000000056828dbb052d9984 init system: 9.619342247
@4000000056828dbb052d9d6c setup drb-delegation
@4000000056828dbb052d9d6c reset
@4000000056828dbb052d9d6c reset: 9.804723288
@4000000056828dbb052d9d6c system initialized
@4000000056828dbb052d9d6c initialized: 9.810359582
@4000000056828dbb052e0acc explain_colors {[0, 0]=>:explain_original, [0, 1]=>:explain_generic, [0, 2]=>"explain_unknown"}
@4000000056828f29018778cc explain_colors {[0, 0]=>:explain_original, [0, 1]=>:explain_generic, [0, 2]=>"explain_unknown"}
@4000000056828ffc02c9b8e4 explain_colors {[0, 0]=>:explain_original, [0, 1]=>:explain_generic, [0, 2]=>"explain_unknown"}
@4000000056828ffc02c9c884 error in SBSM::Session#to_html: /dt/generika/minifi/reg/57563/currency/EUR
<...>
@40000000568293910ea7174c error in SBSM::Session#process: /en/oekk/print/reg/47503/seq/01/patinfo/
@40000000568293910ea71f1c NoMethodError
@40000000568293910ea71f1c undefined method `package' for #<OddbPrevalence:0x000000064e0df8>
@40000000568293910ea72304 /var/www/oddb.org/src/util/oddbapp.rb:952:in `search_oddb'
@40000000568293910ea72304 /var/www/oddb.org/src/util/session.rb:198:in `search_oddb'
@40000000568293910ea726ec /var/www/oddb.org/src/state/global.rb:890:in `_search_drugs'
@40000000568293910ea726ec /var/www/oddb.org/src/state/global.rb:909:in `_search_drugs_state'
@40000000568293910ea76d3c /var/www/oddb.org/src/state/global.rb:862:in `search'
@40000000568295c3211ea14c comparables: Got error comparison of ODBA::Stub with ODBA::Stub failed barcode 7680616030016 Provokations-Test Alternaria tenuis, Pulver und Lösungsmittel, nasal oder bronchial
current [1] RO 1-1, 1078 of 1108, (87284) Ende 0x40 (64)                                                                                                                                                  

The Link http://ch.oddb.org//de/gcc/minifi/reg/57687 shows the error Encoding::UndefinedConversionError "\xE4" from ASCII-8BIT to UTF-8 Probably not everthing around the MiniFI was correctly migrated to UTF-8.

view · edit · sidebar · attach · print · history
Page last modified on December 30, 2015, at 01:26 PM