tobami / littlechef

Cook with Chef without a Chef Server
Apache License 2.0
472 stars 71 forks source link

Encoding::InvalidByteSequenceError when deploying a node with LC 1.6 #190

Closed thekorn closed 10 years ago

thekorn commented 10 years ago

With the latest release I get

[2014-02-18T10:02:54+00:00] INFO: *** Chef 10.18.2 ***
[2014-02-18T10:02:57+00:00] INFO: Setting the run_list to ["role[env_production]"] from JSON

================================================================================
Error expanding the run_list:
================================================================================

Unexpected Error:
-----------------
Encoding::InvalidByteSequenceError: "\xC2" on US-ASCII

[2014-02-18T10:02:57+00:00] FATAL: Stacktrace dumped to /tmp/chef-solo/cache/chef-stacktrace.out
[2014-02-18T10:02:57+00:00] FATAL: Encoding::InvalidByteSequenceError: "\xC2" on US-ASCII

FAILED: chef-solo could not finish configuring the node

Disconnecting from XXX... done.

for some deployments.

The fix is as easy as reverting this change:

https://github.com/tobami/littlechef/commit/5953aa6130b0ffc969c5dc1263b2eb79562aa520#diff-bbba5e5b82d8dc331d2601eb190e6fcaL344

(means: running chef-solo with RUBYOPT=-ku)