C:\ChefWorkstation\chef-repo>knife bootstrap windows winrm ec2-XXX-XXX-XXX-XX.compute-1.amazonaws.com -x Administrator -P xxxx -VV
Bootstrapping Chef on ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.14/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.14/lib/chef/knife/bootstrap
DEBUG: Adding ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
DEBUG: :session => :init
DEBUG: :relay_to_servers => cmd.exe /C echo “Rendering
”%TEMP%\bootstrap-3004-1387347932.bat" chunk 1" && >> “%TEMP%\bootstrap-300
4-1387347932.bat” (echo.@rem) && >> “%TEMP%\bootstrap-3004-1387347932.bat”
(echo.@rem Author:: Seth Chisamore ^(^<schisamo@opscode
.com^>^)) && >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo.@rem Copyright::
Copyright ^(c^) 2011 Opscode, Inc.) && >> “%TEMP%\bo
otstrap-3004-1387347932.bat” (echo.@rem License:: Apache License, Version 2.0)
&& >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo. @rem) && >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo.@rem Licensed under
the Apache License, Version 2.0 ^(the “License”^) &
& >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo.@rem you may not use this
file except in compliance with the License.) && >> “%T
EMP%\bootstrap-3004-1387347932.bat” (echo.@rem You may obtain a copy of the
License at) && >> “%TEMP%\bootstrap-3004-1387347932.ba
t” (echo.@rem) && >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo.@rem http://www.apache.org/licenses/LICENSE-2.0) && >> “%TEM
P%\bootstrap-3004-1387347932.bat” (echo.@rem) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem Unless required by applicabl
e law or agreed to in writing, software) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem distributed under the License
is
distributed on an “AS IS” BASIS,) && >> “%TEMP%\bootstrap-3004-1387347932.bat”
(echo.@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.) && >> “%TEMP%\bootstrap-3004-1387347932.bat”
(echo.@rem See the License for the specific language governing permissions and)
&& >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo.@rem limitations under the
License.) && >> “%TEMP%\bootstrap-3004-1387347932.bat” (echo.@rem) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem Use delayed environment
expansion so that ERRORLEVEL can be evaluated with the) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem !ERRORLEVEL! syntax which
evaluates at execution of the line of script, not when) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem the line is read. See help
for the /E switch from cmd.exe /? .)
DEBUG: :relayed => ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
DEBUG: ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com => :run_command
ERROR: Network Error: A connection attempt failed because the connected party
did not properly respond after a period of time, or established connection
failed because connected host has failed to respond. - connect(2)
(http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:5985)
Check your knife configuration and network settings
I'm trying to bootstrap one Windows 2012 server using "knife bootstrap
windows
winrm" command and gives me connection attempt failure error.
I clearly remember this was working earlier and suddenly it starts giving
this
error.
Is there any other configuration step that I've missed?
On Windows 2012 server machine I've configured winrm as stated in tutorial
: knife windows
Here is the output that I'm getting:
C:\ChefWorkstation\chef-repo>knife bootstrap windows winrm ec2-XXX-XXX-XXX-XX.compute-1.amazonaws.com -x Administrator -P xxxx -VV
Bootstrapping Chef on ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.14/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/knife-windows-0.5.14/lib/chef/knife/bootstrap
DEBUG: Adding ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
DEBUG: :session => :init
DEBUG: :relay_to_servers => cmd.exe /C echo "Rendering
"%TEMP%\bootstrap-3004-1387347932.bat" chunk 1" && >> "%TEMP%\bootstrap-300
4-1387347932.bat" (echo.@rem) && >> "%TEMP%\bootstrap-3004-1387347932.bat"
(echo.@rem Author:: Seth Chisamore ^(^<schisamo@opscode
.com^>^)) && >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem
Copyright::
Copyright ^(c^) 2011 Opscode, Inc.) && >> "%TEMP%\bo
otstrap-3004-1387347932.bat" (echo.@rem License:: Apache License, Version
2.0)
&& >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo. @rem) && >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem Licensed
under
the Apache License, Version 2.0 ^(the "License"^) &
& >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem you may not use this
file except in compliance with the License.) && >> "%T
EMP%\bootstrap-3004-1387347932.bat" (echo.@rem You may obtain a copy of the
License at) && >> "%TEMP%\bootstrap-3004-1387347932.ba
t" (echo.@rem) && >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem http://www.apache.org/licenses/LICENSE-2.0) && >> "%TEM
P%\bootstrap-3004-1387347932.bat" (echo.@rem) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem Unless required by
applicabl
e law or agreed to in writing, software) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem distributed under the
License
is
distributed on an "AS IS" BASIS,) && >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(echo.@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.) && >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(echo.@rem See the License for the specific language governing permissions
and)
&& >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem limitations under
the
License.) && >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem Use delayed environment
expansion so that ERRORLEVEL can be evaluated with the) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem !ERRORLEVEL! syntax which
evaluates at execution of the line of script, not when) && >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.@rem the line is read. See
help
for the /E switch from cmd.exe /? .)
DEBUG: :relayed => ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com
DEBUG: ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com => :run_command
ERROR: Network Error: A connection attempt failed because the connected
party
did not properly respond after a period of time, or established connection
failed because connected host has failed to respond. - connect(2)
(http://ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com:5985)
Check your knife configuration and network settings