view · edit · sidebar · attach · print · history

20120824-debug-update-company-textinfo-patinfo-yaml-exporter

<< | Index | >>


Summary

  • Debug PID Checker in Job module
  • Debug Patinfo.yaml
    • It seems that yaml hat unexpected character for ebook(production server locale).

Commits

ch.oddb.org
ebps

Index


Debug update_company_textinfos

ch.oddb> Updater.new(self).update_company_textinfos 'Debio' 'MSD'

Problem in Job module.

/var/ch.oddb.org/src/util/job.rb:69:in `transpose': element size differs (0 should be 3) (IndexError)
        from /var/ch.oddb.org/src/util/job.rb:69:in `running_job'
        from /var/ch.oddb.org/src/util/job.rb:47:in `ensure in run'
        from /var/ch.oddb.org/src/util/job.rb:50:in `run'
        from jobs/update_company_textinfos:12:in `<module:Util>'
        from jobs/update_company_textinfos:11:in `<module:ODDB>'
        from jobs/update_company_textinfos:10:in `<main>'

Updated parsing of pid file.

commit

Debug patinfo.yaml exporter

EBPS could not parse patynfo.yaml in FR.
(DE is fine)

Input file for conversion: /var/ebps/data/yaml/patinfos.ch.oddb.yaml

Decorate: JustMedical.decorate

RuntimeError: Unidentified Html-File 'É.html'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:348:in `block (2 levels) in manifest'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:342:in `foreach'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:342:in `block in manifest'
/usr/lib64/ruby19/gems/1.9.1/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/usr/lib64/ruby19/gems/1.9.1/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/usr/lib64/ruby19/gems/1.9.1/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:341:in `manifest'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:399:in `block in to_opf'
/usr/lib64/ruby19/gems/1.9.1/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `call'
/usr/lib64/ruby19/gems/1.9.1/gems/builder-2.1.2/lib/builder/xmlbase.rb:134:in `_nested_structures'
/usr/lib64/ruby19/gems/1.9.1/gems/builder-2.1.2/lib/builder/xmlbase.rb:58:in `method_missing'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:395:in `to_opf'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:512:in `to_opf'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:497:in `block in export'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:516:in `call'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:516:in `with_tmpdir'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/oebps.rb:463:in `export'
/usr/lib64/ruby19/site_ruby/1.9.1/ebps/conversion/mobi_pocket.rb:24:in `export'
./meddrugs.ch_fr_patinfo_kindle:74:in `<main>'

This file 'É.html' is not probelm in Local machine.
It seems that locale or somthing encoding-setting of production server is a factor.

$ locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I tried prevention by force_encoding in code level.

commit
view · edit · sidebar · attach · print · history
Page last modified on August 24, 2012, at 10:02 AM