"invalid byte sequence in UTF-8 (ArgumentError)" problem~

theforeman factor of the window displays information about clients not
hoping to get help with a problem. Log to look as follows.

"invalid byte sequence in UTF-8 (ArgumentError)"

puppet server's /var/lib/puppet/yaml/facts/ information is stored in the
folder that corresponds to the client's problem instead of looking at that
puppet show can not process brings some strange characters like the foreman.

foreman version of the 1.4 version and the Korean version of Windows. (The
same is true in version 1.3)

I really appreciate the help you give.

For more information, log is as follows:

Started POST "/api/hosts/facts" for 1.1.1.101 at 2013-12-20 12:00:21 +0900
Processing by Api::V2::HostsController#facts as JSON
Parameters: {"facts"=>"[FILTERED]", "certname"=>"shcha", "name"=>"shcha",
"apiv"=>"v2", "host"=>{"facts"=>"[FILTERED]", "certname"=>"shcha",
"name"=>"shcha"}}
invalid byte sequence in UTF-8 (ArgumentError)
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/object/blank.rb:105:in
=~' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/object/blank.rb:105:in!~'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/object/blank.rb:105:in
blank?' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/core_ext/object/blank.rb:21:inpresent?'
/usr/share/foreman/app/services/fact_importer.rb:79:in block in normalize' /usr/share/foreman/app/services/fact_importer.rb:79:inkeep_if'
/usr/share/foreman/app/services/fact_importer.rb:79:in normalize' /usr/share/foreman/app/services/fact_importer.rb:19:ininitialize'
/usr/share/foreman/app/models/host/base.rb:81:in new' /usr/share/foreman/app/models/host/base.rb:81:inimportFacts'
/usr/share/foreman/app/models/host/managed.rb:375:in importHostAndFacts' /usr/share/foreman/app/controllers/api/v2/hosts_controller.rb:176:infacts'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/implicit_render.rb:4:in
send_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:167:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rendering.rb:10:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:18:inblock in process_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:450:in
block (3 levels) in _run__3241607684631692225__process_action__4250161371273684050__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:inblock in _conditional_callback_around_4863'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:in
around' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in_callback_around_769'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_4863' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:427:inblock (2 levels) in
_run__3241607684631692225__process_action__4250161371273684050__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_4862' /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:33:inclear_thread'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in
_conditional_callback_around_4862' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:404:inblock in
_run__3241607684631692225__process_action__4250161371273684050__callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:215:in
block in _conditional_callback_around_4861' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:326:inaround'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:310:in
_callback_around_13' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:214:in_conditional_callback_around_4861'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:403:in
_run__3241607684631692225__process_action__4250161371273684050__callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in__run_callback'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:inrun_callbacks'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/callbacks.rb:17:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rescue.rb:29:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:inblock in instrument'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in
instrument' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/notifications.rb:123:ininstrument'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/instrumentation.rb:29:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/params_wrapper.rb:207:inprocess_action'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/controller_runtime.rb:18:in
process_action' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/base.rb:121:inprocess'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/abstract_controller/rendering.rb:45:in
process' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:203:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_controller/metal.rb:246:inblock in action'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:73:indispatch'
/opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:36:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/mapper.rb:42:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call' /opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/journey-1.0.4/lib/journey/router.rb:56:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:600:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/apipie-rails-0.0.23/lib/apipie/static_dispatcher.rb:56:in
call' /opt/rh/ruby193/root/usr/share/gems/gems/actionpack-3.2.8/lib/action_dispatch/middleware/best_standards_support.rb:17:incall'

Hi,

What database are you using, and what database adapter is specified in
config/database.yml?

Greg

2013년 12월 23일 월요일 오후 7시 8분 34초 UTC+9, Greg Sutcliffe 님의 말:
>
> Hi,
>
> What database are you using, and what database adapter is specified in
> config/database.yml?
>
> Greg
>

hi Greg ~

i used mysql-5.1.69 and utf8 character set…

··· > show variables like 'c%'; +--------------------------+----------------------------+ > Variable_name | Value | +--------------------------+----------------------------+ > character_set_client | utf8 | > character_set_connection | utf8 | > character_set_database | utf8 | > character_set_filesystem | binary | > character_set_results | utf8 | > character_set_server | utf8 | > character_set_system | utf8 | > character_sets_dir | /usr/share/mysql/charsets/ | > collation_connection | utf8_general_ci | > collation_database | utf8_general_ci | > collation_server | utf8_general_ci | > completion_type | 0 | > concurrent_insert | 1 | > connect_timeout | 10 | +--------------------------+----------------------------+

And… foreman database.yml
production:
adapter: mysql2
database: foreman
port: 3306
username:
password:
encoding: utf8

The following facts when you run manually. foremnan information is
displayed on the facts as being a confirmation. No wonder this is the only
way to
cd /usr/share/foreman ;foreman-rake puppet:import:hosts_and_facts

PS… If the English version of Windows is no problem does not occur.