zdavatz / oddb.org

Open Drug Database for Switzerland
https://ch.oddb.org
GNU General Public License v3.0
10 stars 8 forks source link

ENAMETOOLONG, Parser mistakes Dummy Text for Product Name. #236

Closed zdavatz closed 10 months ago

zdavatz commented 10 months ago
  1. import_daily wirft diesen Error:
  2. 
    Plugin: ODDB::TextInfoPlugin

Error: Errno::ENAMETOOLONG Message: File name too long @ dir_s_mkdir - /var/www/oddb.org/doc/resources/images/pi/de/Anthroposophisches_Arzneimittel_Lesen_Sie_diese_Packungsbeilage_sorgf_ltigdenn_sie_enth_lt_wichtige_Informationen__Dieses_Arzneimittel_haben_Sie_entweder_pers_nlich_von_Ihrem_Arzt_oder_Ihrerrztin_verschrieben_erhalten_oder_Sie_haben_es_ohnerztliche_Verschreibung_in_der_Apotheke_oder_Drogerie_bezogen__Wenden_Sie_das_Arzneimittel_gem_ss_Packungsbeilage_bzwnach_Anweisung_des_ArztesApothekers_oder_Drogisten_bzwderrztin__Apothekerin_oder_Drogistin_anum_den_gr_ssten_Nutzen_zu_habenBewahren_Sie_die_Packungsbeilage_aufSie_wollen_sie_vielleicht_sp_ter_nochmals_lesen__files Backtrace: /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:406:in mkdir' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:406:infu_mkdir' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:384:in block (2 levels) in mkdir_p' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:382:inreverse_each' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:382:in block in mkdir_p' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:374:ineach' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:374:in mkdir_p' /var/www/oddb.org/src/plugin/text_info.rb:917:inextract_image' /var/www/oddb.org/src/plugin/text_info.rb:1309:in parse_textinfo' /var/www/oddb.org/src/plugin/text_info.rb:1502:inblock in import_swissmedicinfo' /var/www/oddb.org/src/plugin/text_info.rb:1501:in each' /var/www/oddb.org/src/plugin/text_info.rb:1501:inimport_swissmedicinfo' /var/www/oddb.org/src/util/updater.rb:531:in block in update_notify_simple' /var/www/oddb.org/src/util/updater.rb:487:inwrap_update' /var/www/oddb.org/src/util/updater.rb:525:in update_notify_simple' /var/www/oddb.org/src/util/updater.rb:319:inupdate_textinfo_swissmedicinfo' /var/www/oddb.org/src/util/updater.rb:210:in run' jobs/import_daily:13:inblock in ' /var/www/oddb.org/src/util/job.rb:41:in run' jobs/import_daily:12:in' jobs/import_daily:11:in <module:ODDB>' jobs/import_daily:10:in

'

zdavatz commented 10 months ago
  1. Running the Job again worked:
  2. bundle exec ruby jobs/update_textinfo_swissmedicinfo pi
zdavatz commented 10 months ago

this error happened again with this command: bundle exec ruby jobs/update_textinfo_swissmedicinfo --target=pi 43454 45199 48914 49537 66762 --reparse

zdavatz commented 10 months ago

some parsing is going wrong here:

Bildschirmfoto 2024-01-02 um 21 33 23