view · edit · sidebar · attach · print · history

20121003-debug-migel-index-creation-search-option

<< 20121004-debug-migel-index-creation-update-preferences-interaction-instant-search | 2012 | 20121002-debug-migel-import-job-create-gcc-style-purple-change-company-result-list >>


Summary

  • Debug MiGel importer job on Production server.
  • Changed StyleChooser to Preferences.
  • Updated fachinfo search fulltext view.

Commits

Index


Debug MiGel importer job

MiGel index creation dose not work.
Encoding error on Production.

index creation

/usr/local/lib/ruby/1.9.1/csv.rb:1868:in `sub!': invalid byte sequence in US-ASCII (ArgumentError)
        from /usr/local/lib/ruby/1.9.1/csv.rb:1868:in `block in shift'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1862:in `loop'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1862:in `shift'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1804:in `each'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1221:in `block in foreach'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1367:in `open'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1220:in `foreach'
        from /var/www/migel/lib/migel/util/importer.rb:290:in `import_all_products_from_csv'
        from jobs/update_migel_products_with_report:15:in `block in <module:Util>'
        from /var/www/migel/lib/migel/util/job.rb:22:in `call'
        from /var/www/migel/lib/migel/util/job.rb:22:in `run'
        from jobs/update_migel_products_with_report:12:in `<module:Util>'
        from jobs/update_migel_products_with_report:11:in `<module:Migel>'
        from jobs/update_migel_products_with_report:10:in `<main>'

update_migel job

/usr/local/lib/ruby/1.9.1/csv.rb:2071:in `=~': invalid byte sequence in US-ASCII (ArgumentError)
        from /usr/local/lib/ruby/1.9.1/csv.rb:2071:in `init_separators'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1603:in `initialize'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1362:in `new'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1362:in `open'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1424:in `read'
        from /usr/local/lib/ruby/1.9.1/csv.rb:1429:in `readlines'
        from /var/www/migel/lib/migel/util/importer.rb:57:in `update'
        from jobs/update_migel:13:in `block in <module:Util>'
        from /var/www/migel/lib/migel/util/job.rb:22:in `call'
        from /var/www/migel/lib/migel/util/job.rb:22:in `run'
        from jobs/update_migel:12:in `<module:Util>'
        from jobs/update_migel:11:in `<module:Migel>'
        from jobs/update_migel:10:in `<main>'
  • update_migel
  • update_migel_products
  • update_migel_products_with_report

Solved by doing:


vim /etc/env.d/02locale

and added

LANG="de_CH.UTF-8"
LANGUAGE="de_CH.UTF-8"
LC_COLLATE="C"

now

locale 

shows:

LANG=de_CH.UTF-8
LC_CTYPE="de_CH.UTF-8"
LC_NUMERIC="de_CH.UTF-8"
LC_TIME="de_CH.UTF-8"
LC_COLLATE=C
LC_MONETARY="de_CH.UTF-8"
LC_MESSAGES="de_CH.UTF-8"
LC_PAPER="de_CH.UTF-8"
LC_NAME="de_CH.UTF-8"
LC_ADDRESS="de_CH.UTF-8"
LC_TELEPHONE="de_CH.UTF-8"
LC_MEASUREMENT="de_CH.UTF-8"
LC_IDENTIFICATION="de_CH.UTF-8"
LC_ALL=

Changed style setting to preferences

Renamed all Style chooser to Preferences.
Then uses search_type selection from valid_values via session.

commit

updated fi search fulltext as chapter

Chaneged fulltext in fachinfo search as Chapter view.

commit
view · edit · sidebar · attach · print · history
Page last modified on December 16, 2013, at 04:33 PM