Created
July 6, 2018 08:57
-
-
Save alexs77/e31e7402eefa6329c410b6524fea3991 to your computer and use it in GitHub Desktop.
chef-run error on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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