Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@alexs77
Created July 6, 2018 08:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexs77/e31e7402eefa6329c410b6524fea3991 to your computer and use it in GitHub Desktop.
Save alexs77/e31e7402eefa6329c410b6524fea3991 to your computer and use it in GitHub Desktop.
chef-run error on Ubuntu 18.04
alex@alex-MacBookPro:~$ LC_ALL=C chef-run -i ~/.ssh/id_ecdsa localhost log HelloWorld
[✔] Generated local policyfile
[✔] [localhost] Connected.
[✔] [localhost] Chef client version 14.2.0 already installed on target.
[✖] [localhost] The command 'bash -c 'd=$(mktemp -d -p${TMPDIR:-/tmp} chef_XXXXXX); chmod 777 $d; echo $d'' exited with return code '2' on 'localhost'.
CHEFRMT001
The command 'bash -c 'd=$(mktemp -d -p${TMPDIR:-/tmp} chef_XXXXXX); chmod 777 $d; echo $d'' exited with return code '2' on 'localhost'.
The following error was reported:
bash: - : invalid option
Usage: bash [GNU long option] [option] ...
bash [GNU long option] [option] script-file ...
GNU long options:
--debug
--debugger
--dump-po-strings
--dump-strings
--help
--init-file
--login
--noediting
--noprofile
--norc
--posix
--rcfile
--restricted
--verbose
--version
Shell options:
-ilrsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option
If you are not able to resolve this issue, please contact Chef support
at beta@chef.io
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment