Closed zdavatz closed 10 months ago
bundle exec ruby jobs/update_textinfo_swissmedicinfo pi
this error happened again with this command: bundle exec ruby jobs/update_textinfo_swissmedicinfo --target=pi 43454 45199 48914 49537 66762 --reparse
some parsing is going wrong here:
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'
/var/www/oddb.org/src/util/job.rb:41:in '
jobs/import_daily:11:in '
mkdir' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:406:in
fu_mkdir' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:384:inblock (2 levels) in mkdir_p' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:382:in
reverse_each' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:382:inblock in mkdir_p' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:374:in
each' /home/zdavatz/.rbenv/versions/3.2.0/lib/ruby/3.2.0/fileutils.rb:374:inmkdir_p' /var/www/oddb.org/src/plugin/text_info.rb:917:in
extract_image' /var/www/oddb.org/src/plugin/text_info.rb:1309:inparse_textinfo' /var/www/oddb.org/src/plugin/text_info.rb:1502:in
block in import_swissmedicinfo' /var/www/oddb.org/src/plugin/text_info.rb:1501:ineach' /var/www/oddb.org/src/plugin/text_info.rb:1501:in
import_swissmedicinfo' /var/www/oddb.org/src/util/updater.rb:531:inblock in update_notify_simple' /var/www/oddb.org/src/util/updater.rb:487:in
wrap_update' /var/www/oddb.org/src/util/updater.rb:525:inupdate_notify_simple' /var/www/oddb.org/src/util/updater.rb:319:in
update_textinfo_swissmedicinfo' /var/www/oddb.org/src/util/updater.rb:210:inrun' jobs/import_daily:13:in
block inrun' jobs/import_daily:12:in
<module:ODDB>' jobs/import_daily:10:in