<< 20121004-debug-migel-index-creation-update-preferences-interaction-instant-search | 2012 | 20121002-debug-migel-import-job-create-gcc-style-purple-change-company-result-list >>
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>'
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=
Renamed all Style chooser to Preferences.
Then uses search_type selection
from valid_values via session.
Chaneged fulltext in fachinfo search as Chapter view.