[chef] Re: Can bootstrap but other remote command fails


Chronological Thread 
  • From: Adam Edwards < >
  • To: " " < >
  • Subject: [chef] Re: Can bootstrap but other remote command fails
  • Date: Wed, 10 Jul 2013 16:07:27 +0000
  • Accept-language: en-US

It's strange that bootstrap via winrm worked but knife winrm doesn't work. Questions:
  1. What OS is your workstation running?
  2. Are the commands below literally what you used, or are you also passing explicit credentials via cli switches?
  3. If you repeat the bootstrap of that same machine, does it still succeed?
I really hope this doesn't lead us down the path of problems / limitations with ruby-ntlm and friends…

-Adam


Hi,

 

I am running Chef(11.4.4) in windows environment. I have a private Chef Server running on Ubuntu(12.4) which is registered in the domain. I am using winrm to communicate from workstation to nodes.

 

I having trouble with one machine where strangely I can bootstrap with

 

knife bootstrap windows winrm <myhost>

 

But when I try to run a simple remote command like

 

knife winrm <myhost> "pwd"

 

I get the following error:

 

ERROR: Failed to authenticate to ["myhost"] as domain\user

Response: Bad HTTP response returned from server (401).

 

To make things worse, This is only happening on one machine.

 

thanks.



LEGAL DISCLAIMER
This communication and any attached documents are strictly confidential and/or legally privileged and they may not be used or disclosed by someone who is not a named recipient. If you have received this electronic communication in error please notify the sender by replying to this electronic communication inserting the word "misdirected" as the subject and delete this communication from your system.




Archive powered by MHonArc 2.6.16.

§