Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Last active August 29, 2015 14:02
Show Gist options
  • Save jstangroome/8ce1b162925cf8a54c07 to your computer and use it in GitHub Desktop.
Save jstangroome/8ce1b162925cf8a54c07 to your computer and use it in GitHub Desktop.
mco puppet runonce show_diff utf8 bug
#mcollective-puppet-agent 1.7.2 on agent, 1.7.0 on master
#mcollective 2.5.0 on master
#puppet 3.6.2 on agent, 3.4.3 on master
#ruby 1.9.3p484 on agent, 1.8.7 on master
#ubuntu 14.04 on agent, 12.04 on master
# reproducible with `mco puppet runonce` on master, or `sudo LANG=C LC_ALL=C puppet agent --show_diff` on agentDebug: Executing 'diff -u /var
# workaround in puppet: file { 'blah': show_diff => false }
# log:
/www/facade/views/implementation/index.ejs /tmp/puppet-file20140623-22057-1rj2gpx'
Error: invalid byte sequence in US-ASCII
/usr/lib/ruby/vendor_ruby/puppet/util/colors.rb:167:in `gsub'
/usr/lib/ruby/vendor_ruby/puppet/util/colors.rb:167:in `console_color'
/usr/lib/ruby/vendor_ruby/puppet/util/colors.rb:154:in `colorize'
/usr/lib/ruby/vendor_ruby/puppet/util/log/destinations.rb:147:in `handle'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:170:in `block in newmessage'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:169:in `each'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:169:in `newmessage'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:266:in `initialize'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:84:in `new'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:84:in `create'
/usr/lib/ruby/vendor_ruby/puppet/util/logging.rb:8:in `send_log'
/usr/lib/ruby/vendor_ruby/puppet/util/logging.rb:15:in `block (2 levels) in <module:Logging>'
/usr/lib/ruby/vendor_ruby/puppet/type/file/content.rb:114:in `block in insync?'
/usr/lib/ruby/vendor_ruby/puppet/type/file/content.rb:162:in `write_temporarily'
/usr/lib/ruby/vendor_ruby/puppet/type/file/content.rb:113:in `insync?'
/usr/lib/ruby/vendor_ruby/puppet/property.rb:314:in `safe_insync?'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:117:in `sync_if_needed'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:89:in `block in perform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:88:in `each'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:88:in `perform_changes'
/usr/lib/ruby/vendor_ruby/puppet/transaction/resource_harness.rb:20:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:174:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:187:in `eval_resource'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in `call'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in `block (2 levels) in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:327:in `block in thinmark'
/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:326:in `thinmark'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:117:in `block in evaluate'
/usr/lib/ruby/vendor_ruby/puppet/graph/relationship_graph.rb:118:in `traverse'
/usr/lib/ruby/vendor_ruby/puppet/transaction.rb:108:in `evaluate'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:167:in `block in apply'
/usr/lib/ruby/vendor_ruby/puppet/util/log.rb:149:in `with_destination'
/usr/lib/ruby/vendor_ruby/puppet/transaction/report.rb:112:in `as_logging_destination'
/usr/lib/ruby/vendor_ruby/puppet/resource/catalog.rb:166:in `apply'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:117:in `block in apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:161:in `block in benchmark'
/usr/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:160:in `benchmark'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:116:in `apply_catalog'
/usr/lib/ruby/vendor_ruby/puppet/configurer.rb:191:in `run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:47:in `block (4 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/agent/locker.rb:20:in `lock'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:47:in `block (3 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:117:in `with_client'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:44:in `block (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:82:in `run_in_fork'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:43:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in `call'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:179:in `controlled_run'
/usr/lib/ruby/vendor_ruby/puppet/agent.rb:41:in `run'
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:355:in `onetime'
/usr/lib/ruby/vendor_ruby/puppet/application/agent.rb:321:in `run_command'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:371:in `block (2 levels) in run'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:477:in `plugin_hook'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:371:in `block in run'
/usr/lib/ruby/vendor_ruby/puppet/util.rb:479:in `exit_on_fail'
/usr/lib/ruby/vendor_ruby/puppet/application.rb:371:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:137:in `run'
/usr/lib/ruby/vendor_ruby/puppet/util/command_line.rb:91:in `execute'
/usr/bin/puppet:8:in `<main>'
Error: /Stage[main]/facade_payload/File[/var/www/facade/views/implementation/index.ejs]/content: change from {md5}e64ad9d7895e5dff2222230c9fbfedb9 to {md5}a4ef5bbdd8eea4d184e2838a654da049 failed: invalid byte sequence in US-ASCII
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment