view · edit · sidebar · attach · print · history

Index>

20160511-ydim-html-cleanup

Summary

  • Ydim-Html: Cleanup config files
  • Fix: SystemExit in swissmedic

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)
  • BSV-Plugin does not send mail. Is it sending two mails at once?
  • remove obsolete pdf_patinfo in model, admin/views
  • Fix sbsm/htmlgrid when DEFAULT_FLAVOUR is nil

Ydim-Html: Cleanup config files

Must fix the apache config to make the gem based ydim-html work.

Access to https://ydim.oddb-ci2.dyndns.org/ works after minimizing the RubyAddPath in /etc/apache2/vhosts.d/ydim.ywesee.com.conf. But displaying the PDF results in

[Wed May 11 08:28:10 2016] [error] mod_ruby: error in ruby
[Wed May 11 08:28:10 2016] [error] mod_ruby: /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:118:in `require': cannot load such file -- sbsm/request (LoadError)
[Wed May 11 08:28:10 2016] [error] mod_ruby:   from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:118:in `rescue in require'
[Wed May 11 08:28:10 2016] [error] mod_ruby:   from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:124:in `require'
[Wed May 11 08:28:10 2016] [error] mod_ruby:   from /var/www/ydim.ywesee.com/doc/index.rbx:4:in `<top (required)>'
[Wed May 11 08:28:10 2016] [error] mod_ruby:   from /usr/lib64/ruby/1.9.1/apache/ruby-run.rb:53:in `load'
[Wed May 11 08:28:10 2016] [error] mod_ruby:   from /usr/lib64/ruby/1.9.1/apache/ruby-run.rb:53:in `handler'

Seems similar to Zenos problem that yesterday, that not all requests were handled.

I think we should remove the whole section for port 80 (http) in ydim.ywesee.com.conf. This is okay. The relevant section for port 443 in /etc/apache2/vhosts.d/ydim.ywesee.com.conf is now

<VirtualHost 172.25.1.75:443>
DocumentRoot /var/www/ydim.ywesee.com/doc
ServerName ydim.oddb-ci2.dyndns.org
DirectoryIndex index.rbx
RubyAddPath /var/www/ydim.ywesee.com/
RubyAddPath /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib
RubyRequire 'sbsm/trans_handler'
SetHandler ruby-object
RubyTransHandler SBSM::TransHandler.instance
ErrorLog "|/usr/sbin/cronolog -l /var/www/ydim.ywesee.com/log/error_log /var/www/ydim.ywesee.com/log/%Y/%m/%d/error_log"
CustomLog "|/usr/sbin/cronolog -l /var/www/ydim.ywesee.com/log/access_log /var/www/ydim.ywesee.com/log/%Y/%m/%d/access_log" combined
SSLEngine on
SSLCertificateFile /etc/ssl/apache2/server.crt
SSLCertificateKeyFile /etc/ssl/apache2/server.key
</VirtualHost>

After adding the following line 5 in doc/index.rbx $stderr.puts $LOAD_PATH I get the following paths:

/usr/lib64/ruby/site_ruby/1.9.1
/usr/lib64/ruby/site_ruby/1.9.1/x86_64-linux
/usr/lib64/ruby/site_ruby
/usr/lib64/ruby/vendor_ruby/1.9.1
/usr/lib64/ruby/vendor_ruby/1.9.1/x86_64-linux
/usr/lib64/ruby/vendor_ruby
/usr/lib64/ruby/1.9.1
/usr/lib64/ruby/1.9.1/x86_64-linux
/usr/lib64/ruby/site_ruby/1.9.1
/usr/lib64/ruby/site_ruby/1.9.1/x86_64-linux
/usr/lib64/ruby/site_ruby
/usr/lib64/ruby/vendor_ruby/1.9.1
/usr/lib64/ruby/vendor_ruby/1.9.1/x86_64-linux
/usr/lib64/ruby/vendor_ruby
/usr/lib64/ruby/1.9.1
/usr/lib64/ruby/1.9.1/x86_64-linux
/var/www/oddb.org/src
/var/www/oddb.org/src
/var/www/ydim.ywesee.com/
/usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib

The RubyAddPath /usr/local/lib64/ruby/gems/1.9.1/gems/sbsm-1.2.3/lib is therefore only needed because my mod_ruby installation is using /usr/bin/ruby and not /usr/local/bin/ruby.

It does not neeed a Ruby 2.3.0 path, as theses paths are only used by the ydim/ydim-html processes which are accessed via DRB and could possibly live on a separate server with no common file paths at all.

Creating a script that:

  • compiles and installs ruby 1.9.3
  • compiles and installs mod_ruby using the ruby installed beforehand
  • compiles and installs ruby 2.3.1
  • installs the ruby gems needed for ydim-html

Adding example configuration files under example_site of ydim-html.

Having problems to build a ruby that generates a valid mod_ruby.so. When configuring ruby 193-p547 with ./configure --prefix=/usr/local --program-suffix=${SUFFIX_19} --enable-shared --libdir=/usr/local/lib 2 I get the following error when starting apache apache2: Syntax error on line 155 of /etc/apache2/httpd.conf: Syntax error on line 3 of /etc/apache2/modules.d/21_mod_ruby.conf: Cannot load /usr/lib64/apache2/modules/mod_ruby193-p547.so into server: /usr/lib64/apache2/modules/mod_ruby193-p547.so: undefined symbol: ruby_dln_librefs

If I remove --enable-shared I cannot link mod_ruby.so and get the error

Makefile:180: recipe for target 'mod_ruby.so' failed
make: *** [mod_ruby.so] Error 1
gcc -shared -o mod_ruby.so mod_ruby.o ruby_config.o apachelib.o array_header.o table.o connection.o server.o request.o upload.o cookie.o paramtable.o multival.o bucket.o uri.o error.o apache_request.o apache_multipart_buffer.o apache_cookie.o -L/usr/lib64  -L/usr/local/lib -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby-static  -lpthread -lrt -ldl -lcrypt -lm 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/local/lib/libruby-static.a(array.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libruby-static.a: could not read symbols: Bad value
collect2: ld gab 1 als Ende-Status zurück
Makefile:180: recipe for target 'mod_ruby.so' failed

Pushed commit Added script to install ruby 1.9, 2.3, mod_ruby and ydim-html gems

Will re-emerge apache to see, whether it generates the mod_ruby.so correctly.

Pushed the commits

Fix: SystemExit in swissmedic

Got the following error message today

Plugin: ODDB::SwissmedicPlugin
Error: SystemExit
Message: SystemExit
Backtrace:
/usr/local/lib/ruby/1.9.1/drb/drb.rb:566:in `read'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:566:in `load'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:632:in `recv_reply'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:918:in `recv_reply'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:1197:in `send_message'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:1088:in `block (2 levels) in method_missing'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:1172:in `open'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:1087:in `block in method_missing'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:1105:in `with_friend'
/usr/local/lib/ruby/1.9.1/drb/drb.rb:1086:in `method_missing'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/cache.rb:517:in `block in store'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/cache.rb:516:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/cache.rb:516:in `store'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/persistable.rb:274:in `odba_isolated_store'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/persistable.rb:395:in `block in odba_store_unsaved'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/persistable.rb:392:in `each'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/persistable.rb:392:in `odba_store_unsaved'
/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/persistable.rb:380:in `odba_store'
/var/www/oddb.org/src/util/persistence.rb:280:in `issue_update'
/var/www/oddb.org/src/util/oddbapp.rb:138:in `block in update'
/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:136:in `update'
/var/www/oddb.org/src/util/oddbapp.rb:1647:in `update'
/var/www/oddb.org/src/plugin/swissmedic.rb:783:in `update_active_agent'
/var/www/oddb.org/src/plugin/swissmedic.rb:900:in `block (2 levels) in update_compositions'
/var/www/oddb.org/src/plugin/swissmedic.rb:877:in `each'
/var/www/oddb.org/src/plugin/swissmedic.rb:877:in `each_with_index'
/var/www/oddb.org/src/plugin/swissmedic.rb:877:in `block in update_compositions'
/var/www/oddb.org/src/plugin/swissmedic.rb:870:in `each'
/var/www/oddb.org/src/plugin/swissmedic.rb:870:in `each_with_index'
/var/www/oddb.org/src/plugin/swissmedic.rb:870:in `update_compositions'
/var/www/oddb.org/src/plugin/swissmedic.rb:1202:in `update_all_sequence_info'
/var/www/oddb.org/src/plugin/swissmedic.rb:1224:in `block in update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:1213:in `each'
/var/www/oddb.org/src/plugin/swissmedic.rb:1213:in `update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:251:in `update'
/var/www/oddb.org/src/util/updater.rb:431:in `block in update_swissmedic'
/var/www/oddb.org/src/util/updater.rb:536:in `call'
/var/www/oddb.org/src/util/updater.rb:536:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:429:in `update_swissmedic'
/var/www/oddb.org/src/util/updater.rb:202: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>'

Is this related with the error we got yesterday

Plugin: ODDB::SwissmedicPlugin
Error: NoMethodError
Message: undefined method `fix_pointers' for nil:NilClass
Backtrace:
/var/www/oddb.org/src/model/sequence.rb:195:in `block in fix_pointers'
/var/www/oddb.org/src/model/sequence.rb:194:in `each_value'
/var/www/oddb.org/src/model/sequence.rb:194:in `fix_pointers'
/var/www/oddb.org/src/plugin/swissmedic.rb:1062:in `update_package'
/var/www/oddb.org/src/plugin/swissmedic.rb:1206:in `update_all_sequence_info'
/var/www/oddb.org/src/plugin/swissmedic.rb:1224:in `block in update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:1213:in `each'
/var/www/oddb.org/src/plugin/swissmedic.rb:1213:in `update_registrations'
/var/www/oddb.org/src/plugin/swissmedic.rb:251:in `update'
/var/www/oddb.org/src/util/updater.rb:431:in `block in update_swissmedic'
/var/www/oddb.org/src/util/updater.rb:536:in `call'
/var/www/oddb.org/src/util/updater.rb:536:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:429:in `update_swissmedic'
jobs/import_swissmedic:14: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_swissmedic:12:in `<module:Util>'
jobs/import_swissmedic:11:in `<module:ODDB>'
jobs/import_swissmedic:10:in `<main>'

Looking at log/debug/2016/05.log I see that yesterdays error came after the following lines

2016-05-10 22:58:41 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 E 132  false dose 0  
2016-05-10 22:58:41 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1039:in `update_package': 57061/01/016 0 replacements
2016-05-10 22:58:41 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1060:in `update_package': create 57061/01/016 ptr :!create,:!registration,57061!sequence,01!package,016.. package  in :!registration,57061!sequence,01. ["016"]  

Yesterday we had not enough memory as seen in the log/debug/2016/05.log

2016-05-10 08:22:53 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 00677/01 Escherichia Coli Viva  true dose 15-45 Mio U.
2016-05-10 08:22:54 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1039:in `update_package': 00677/01/001 0 replacements  
2016-05-10 08:22:55 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1186:in `block in update_excipiens_in_composition': 00677 01 excipiens ODDB::Substance excipiens.oid 34131464 for Excipiens ad suspensionem pro 1 Ml  
2016-05-10 08:22:55 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1192:in `block in update_excipiens_in_composition': 00677 01 update_excipiens_in_composition idx 0: excipiens Excipiens ad Suspensionem pro 1 Ml from #<ParseSubstance:0x0000024f69f888>
2016-05-10 08:22:56 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:163:in `trace_memory_useage': Using 16514 MB of memory. Limit is 16384
2016-05-10 08:22:56 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:168:in `block in trace_memory_useage': Aborting as using 16514 MB of memory > than limit of 16384  
2016-05-10 08:22:56 CESTlog notify Error: swissmedic: start outgoing process ["log"]. Must attach 0 files and 0 parts.
2016-05-10 08:22:56 CESTUtil.send_mail list_and_recipients ["log"]  
2016-05-10 08:22:56 CEST Util.log_and_deliver_mail to=["ngiger@ywesee.com", "zdavatz@ywesee.com"] subject ch.ODDB.org Report - Error: swissmedic - 05/2016 size 2626 with 0 attachments. Plugin: ODDB::SwissmedicPlugin
Error: SystemExit
Message: SystemExit
Backtrace:

Same problem today

dum tetani min. 20 U.I., toxoidum diphtheriae
2016-05-11 08:14:23 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 00646/01 Virus Poliomyelitis Typus  false dose 1
2016-05-11 08:14:23 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:163:in `trace_memory_useage': Using 16595 MB of memory. Limit is 16384
2016-05-11 08:14:23 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:168:in `block in trace_memory_useage': Aborting as using 16595 MB of memory > than limit of 16384
20

Zeno tried yesterday to run swissmedic as a separate job in a screen and ran then into the problem fix_pointer problem. Analysing this one. Should be fixed with commit fix_pointer tolerates now nil package

Restart import_swissmedic on thinpower. Got another error, because the package was nil. Using bin/admin I did see, that now the package was indeed nil. But it should have been just changed, not deleted and recreated.

Looking at the log I find

2016-05-11 14:06:36 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1220:in `block in update_registrations': update iksnr 57061 seqnr 01 true opts {}. 0 replacements
2016-05-11 14:06:36 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1154:in `update_registration': update_registration 57061 args {:ith_swissmedic=>"01.01.2.", :production_science=>"Synthetika human", :vaccine=>nil, :registration_date=>#<Date: 2005-08-03 ((2453586j,0s,0n),+0s,2299161j)>, :expiration_date=>#<Date: 2020-08-02 ((2459064j,0s,0n),+0s,2299161j)>, :renewal_flag=>false, :renewal_flag_swissmedic=>false, :inactive_date=>nil, :export_flag=>nil, :company=>:!company,34846540., :indication=>:!indication,792280.} 
NoMethodError: undefined method `values' for nil:NilClass when updating index 'sequence_vaccine' with a ODDB::Registration 
["(eval):2:in `block in proc_instance_target'", "/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/index.rb:249:in `call'", "/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/index.rb:249:in `update_origin'", "/usr/local/lib/ruby/gems/1.9.1/gems/odba-1.1.0/lib/odba/index.rb:163:in `update'"]
[...] 

2016-05-11 14:06:37 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:874:in `block in update_compositions': update_compositions iksnr 57061 seqnr 01 comp_idx 0 parsed_comp #<ParseComposition:0x000000ad1c1dc8> 
2016-05-11 14:06:37 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:884:in `block (2 levels) in update_compositions': /var/www/oddb.org/src/plugin/swissmedic.rb: 884 57061/01 using oid 9465518 source paracetamolum 500 mg, pseudoephedrini hydrochloridu 
2016-05-11 14:06:38 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 Paracetamolum  true dose 500 mg 
2016-05-11 14:06:38 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:884:in `block (2 levels) in update_compositions': /var/www/oddb.org/src/plugin/swissmedic.rb: 884 57061/01 using oid 9465518 source paracetamolum 500 mg, pseudoephedrini hydrochloridu
2016-05-11 14:06:38 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 Pseudoephedrini Hydrochloridum  true dose 30 mg 
2016-05-11 14:06:39 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:884:in `block (2 levels) in update_compositions': /var/www/oddb.org/src/plugin/swissmedic.rb: 884 57061/01 using oid 9465518 source paracetamolum 500 mg, pseudoephedrini hydrochloridu 
2016-05-11 14:06:39 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 E 132  false dose 0  
2016-05-11 14:06:40 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1039:in `update_package': 57061/01/016 0 replacements
2016-05-11 14:06:40 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1060:in `update_package': create 57061/01/016 ptr :!create,:!registration,57061!sequence,01!package,016.. package  in :!registration,57061!sequence,01. ["016"]  
/var/www/oddb.org/src/util/mail.rb: Configured email using /var/www/oddb.org/etc/oddb.yml @cfg is now "smtp.gmail.com" 587 "admin@ywesee.com" 
Util.log_and_deliver_mail to=["ngiger@ywesee.com", "zdavatz@ywesee.com"] subject ch.ODDB.org Report - Error: swissmedic - 05/2016 size 1058 with 0 attachments. Plugin: ODDB::SwissmedicPlugin
Error: NoMethodError 
Message: undefined method `parts' for nil:NilClass 
Backtrace:
/var/www/oddb.org/src/plugin/swissmedic.rb:1067:in `update_package'
/var/www/oddb.org/src/plugin/swissmedic.rb:1206:in `update_all_sequence_info' 
/var/www/oddb.org/src/plugin/swissmedic.rb:1224:in `block in update_registrations' 
/var/www/oddb.org/src/plugin/swissmedic.rb:1213:in `each' 
/var/www/oddb.org/src/plugin/swissmedic.rb:1213:in `update_registrations' 
/var/www/oddb.org/src/plugin/swissmedic.rb:251:in `update'
/var/www/oddb.org/src/util/updater.rb:431:in `block in update_swissmedic' 
/var/www/oddb.org/src/util/updater.rb:536:in `call' 
/var/www/oddb.org/src/util/updater.rb:536:in `wrap_update'
/var/www/oddb.org/src/util/updater.rb:429:in `update_swissmedic' 
jobs/import_swissmedic:14: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_swissmedic:12:in `<module:Util>' 
jobs/import_swissmedic:11:in `<module:ODDB>' 
jobs/import_swissmedic:10:in `<main>'

On May 05 we got a an FI for 57061 Panadol Antigrippine and with the new Packungen.xlsx we got same changes.

When looking at the package 016. I find via bin/admin a nil value

ch.oddb> registration('57061').sequence('01').packages.size
-> 1
ch.oddb> registration('57061').sequence('01').packages.first
-> ["016", nil]
ch.oddb> registration('57061').sequence('01').package('016')
-> 
ch.oddb> registration('57061').sequence('01').package('016').class
-> NilClass
ch.oddb> registration('57061').packages.size
-> 1
ch.oddb> registration('57061').packages.first.class
-> NilClass

This should be fixed with commit Fix problem updating packages. Restarting import_swissmedic on thinpower.

After this commit Fix another problem updating packages import_swissmedic passed and in the log I see

2016-05-12 01:51:02 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1223:in `block in update_registrations': update 2222/4269 iksnr 57061 seqnr 01 true opts {}. 0 replacements
2016-05-12 01:51:02 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1156:in `update_registration': update_registration 57061 args {:ith_swissmedic=>"01.01.2.", :production_science=>"Synthetika human", :vaccine=>nil, :registration_date=>#<Date: 2005-08-03 ((2453586j,0s,0n),+0s,2299161j)>, :expiration_date=>#<Date: 2020-08-02 ((2459064j,0s,0n),+0s,2299161j)>, :renewal_flag=>false, :renewal_flag_swissmedic=>false, :inactive_date=>nil, :export_flag=>nil, :company=>:!company,34846540., :indication=>:!indication,792280.}  
2016-05-12 01:51:03 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1226:in `block in update_registrations': update 2222/4269 iksnr 57061 seqnr 01 reg #<ODDB::Registration:0x007fcdae79f648> from app #<ODDB::Registration:0x0000002151a830>
2016-05-12 01:51:05 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:874:in `block in update_compositions': update_compositions iksnr 57061 seqnr 01 comp_idx 0 parsed_comp #<ParseComposition:0x000000b808a440>
2016-05-12 01:51:05 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:884:in `block (2 levels) in update_compositions': /var/www/oddb.org/src/plugin/swissmedic.rb: 884 57061/01 using oid 9465518 source paracetamolum 500 mg, pseudoephedrini hydrochloridu  
2016-05-12 01:51:05 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 Paracetamolum  true dose 500 mg
2016-05-12 01:51:06 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:884:in `block (2 levels) in update_compositions': /var/www/oddb.org/src/plugin/swissmedic.rb: 884 57061/01 using oid 9465518 source paracetamolum 500 mg, pseudoephedrini hydrochloridu
2016-05-12 01:51:06 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 Pseudoephedrini Hydrochloridum  true dose 30 mg  
2016-05-12 01:51:06 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:884:in `block (2 levels) in update_compositions': /var/www/oddb.org/src/plugin/swissmedic.rb: 884 57061/01 using oid 9465518 source paracetamolum 500 mg, pseudoephedrini hydrochloridu
2016-05-12 01:51:07 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:742:in `update_active_agent': update_active_agent 57061/01 E 132  false dose 0
2016-05-12 01:51:08 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1039:in `update_package': 57061/01/016 0 replacements
2016-05-12 01:51:09 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1188:in `block in update_excipiens_in_composition': 57061 01 excipiens ODDB::Substance excipiens.oid 9885145 for Excipiens pro compresso Obducto
2016-05-12 01:51:09 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1194:in `block in update_excipiens_in_composition': 57061 01 update_excipiens_in_composition idx 0: excipiens Excipiens pro Compresso Obducto. from #<ParseSubstance:0x000000b8284ef8>
2016-05-12 01:51:09 +0200: /var/www/oddb.org/src/plugin/swissmedic.rb:1223:in `block in update_registrations': update 2223/4269 iksnr 57069 seqnr 01 true opts {}. 0 replacements
view · edit · sidebar · attach · print · history
Page last modified on May 12, 2016, at 10:13 AM