I installed the latest knife-windows 1.5.0 on my chef-server Chef: 11.14.2 and updated bootstrap_windows_base.rb file into the newest fixed version according to #380.
But I got the error messages below when I invoke the commandknife bootstrap windows ssh windowsclient.xxx -p 20022 -x Administrator -P MYPASSWORD. I am really wondered why there is a syntax error... , can anyone help me?~
Bootstrapping Chef on windowsclient.xxx
windowsclient.xxx /bin/sh: -c: line 0: syntax error near unexpected token `('
windowsclient.xxx /bin/sh: -c: line 0: `cmd.exe /C echo Rendering %TEMP%bootstrap-5909-1471505161.bat chunk 1 && >> %TEMP%bootstrap-5909-1471505161.bat (echo.@rem) && >> %TEMP%bootstrap-5909-1471505161.bat (echo.@rem Author:: Seth Chisamore ^(^<schisamo@chef.io^>^)) &&'
windowsclient.xxx sh: -c: line 0: unexpected EOF while looking for matching `"'
windowsclient.xxx sh: -c: line 1: syntax error: unexpected end of file
windowsclient.xxx /bin/sh: -c: line 0: syntax error near unexpected token `('
windowsclient.xxx /bin/sh: -c: line 0: `cmd.exe /C echo Rendering %TEMP%bootstrap-5909-1471505161.bat chunk 3 && >> %TEMP%bootstrap-5909-1471505161.bat (echo.echo.}) && >> %TEMP%bootstrap-5909-1471505161.bat (echo.echo.) && >> %TEMP%bootstrap-5909-1471505161.bat (ec'
windowsclient.xxx sh: -c: line 0: unexpected EOF while looking for matching `"'
windowsclient.xxx sh: -c: line 1: syntax error: unexpected end of file
windowsclient.xxx sh: 2) && >> %TEMP%bootstrap-5909-1471505161.bat : command not found
windowsclient.xxx sh: -c: line 0: unexpected EOF while looking for matching `"'
windowsclient.xxx sh: -c: line 1: syntax error: unexpected end of file
windowsclient.xxx /bin/sh: -c: line 0: syntax error near unexpected token `('
windowsclient.xxx /bin/sh: -c: line 0: `cmd.exe /C echo Rendering %TEMP%bootstrap-5909-1471505161.bat chunk 7 && >> %TEMP%bootstrap-5909-1471505161.bat (echo.echo.log_level :info) && >> %TEMP%bootstrap-5909-1471505161.bat (echo.echo.log_location STDOUT) && >'
windowsclient.xxx '%TEMP%bootstrap-5909-1471505161.bat' is not recognized as an internal or external command,
windowsclient.xxx operable program or batch file.
In addition, my windows chef-client Chef Client v12.7.2 is installed on Windows Server 2016 TP5, and the sshd I used is OpenSSH for Windows. Hope for anyone's suggestion.~
We have not released this fix yet to rubygems @QiaoZijian. If you are comfortable cloning master and trying via bundler, that should work. Otherwise wait for the next release (likely 1.5.1) due out soon.
I installed the latest
knife-windows 1.5.0
on my chef-serverChef: 11.14.2
and updatedbootstrap_windows_base.rb
file into the newest fixed version according to #380. But I got the error messages below when I invoke the commandknife bootstrap windows ssh windowsclient.xxx -p 20022 -x Administrator -P MYPASSWORD
. I am really wondered why there is a syntax error... , can anyone help me?~In addition, my windows chef-client
Chef Client v12.7.2
is installed on Windows Server 2016 TP5, and the sshd I used is OpenSSH for Windows. Hope for anyone's suggestion.~