This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
FATAL: ArgumentError: invalid Unicode escape on Windows because of recipe name #389
Comments
This issue belongs in the chef repo and is probably related to chef/chef#3055 and chef/chef#3343 However, to be sure, you need to post the stacktrace |
I think you are right. This seems to be a duplicate of chef/chef#3055 and can be closed.
|
Closing as a duplicate per the discussion above. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Situation:
testunicodeproblem
.update.rb
and add this resource:default.rb
with this:metadata.rb
with:chef-solo -o testunicodeproblem
.You will get FATAL: ArgumentError: invalid Unicode escape.
Now rename
update.rb
tomyupdate.rb
and changedefault.rb
to use the new name.This time you'll get the right error FATAL: Mixlib::ShellOut::ShellCommandFailed...
Problem occur only if: on Windows AND recipe (or cookbook) begins with
u
AND you have an error in your recipe. If Chef tries to analyse the problem the\u
in the path will be interpreted as unicode escape.I'll spend 3 days until I found the problematic combination.
I can reproduce it on Windows 8, 8.1 and Windows Server 2003 with Chef-Dk 0.4.0 & 0.5.1.
The text was updated successfully, but these errors were encountered: