- From: Ravindra <
>
- To:
- Subject: [chef] Bootstraping Windows 2012 servers gives Connection attempt failed error.
- Date: Tue, 17 Dec 2013 22:37:55 -0800 (PST)
Hello All,
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 :
http://docs.opscode.com/plugin_knife_windows.html
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"
(
)
&& >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
Author:: Seth Chisamore
^(^<
.com^>^)) && >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
Copyright::
Copyright ^(c^) 2011 Opscode, Inc.) && >> "%TEMP%\bo
otstrap-3004-1387347932.bat"
(
License:: Apache License, Version 2.0)
&& >> "%TEMP%\bootstrap-3004-1387347932.bat" (echo.
@rem) && >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
Licensed under
the Apache License, Version 2.0 ^(the "License"^);) &
& >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
you may not use this
file except in compliance with the License.) && >> "%T
EMP%\bootstrap-3004-1387347932.bat"
(
You may obtain a copy of the
License at) && >> "%TEMP%\bootstrap-3004-1387347932.ba
t"
(
)
&& >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
http://www.apache.org/licenses/LICENSE-2.0) && >> "%TEM
P%\bootstrap-3004-1387347932.bat"
(
)
&& >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(
Unless required by applicabl
e law or agreed to in writing, software) && >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(
distributed under the License
is
distributed on an "AS IS" BASIS,) && >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.) && >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
See the License for the specific language governing permissions and)
&& >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
limitations under the
License.) && >> "%TEMP%\bootstrap-3004-1387347932.bat"
(
)
&& >>
"%TEMP%\bootstrap-3004-1387347932.bat" (echo.) && >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(
Use delayed environment
expansion so that ERRORLEVEL can be evaluated with the) && >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(
!ERRORLEVEL! syntax which
evaluates at execution of the line of script, not when) && >>
"%TEMP%\bootstrap-3004-1387347932.bat"
(
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
Thanks,
Ravi
- [chef] Bootstraping Windows 2012 servers gives Connection attempt failed error., Ravindra, 12/17/2013
Archive powered by MHonArc 2.6.16.