Bootstap Windwos


#1

I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


#2

Check out the requirements - you need to make sure windows remote
management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:

I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


#3

Pete,

I’ve install Windows Remote Management and configured it like the site showed. I still am receiving this error…Would it be a firewall related issue?

knife bootstrap windows winrm 192.168.31.89 -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings
Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 28, 2013, at 5:33 PM, Pete Cheslock petecheslock@gmail.com wrote:

Check out the requirements - you need to make sure windows remote management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:
I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


#4

Could be. Could be windows firewall. You could try to connect to it from another windows box via remote management to see if you can at least reach it and confirm its a remote issue.

-Pete

On Aug 28, 2013, at 6:16 PM, Nikhil Shah nshah@theorchard.com wrote:

Pete,

I’ve install Windows Remote Management and configured it like the site showed. I still am receiving this error…Would it be a firewall related issue?

knife bootstrap windows winrm 192.168.31.89 -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings
Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 28, 2013, at 5:33 PM, Pete Cheslock petecheslock@gmail.com wrote:

Check out the requirements - you need to make sure windows remote management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:

I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


#5

Nikhil Shah nshah@theorchard.com writes:

Pete,

I’ve install Windows Remote Management and configured it like the site showed. I still am receiving this error…Would it be a firewall related issue?

knife bootstrap windows winrm 192.168.31.89 -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings

What does ‘knife windows’ output? Make sure you have the chef-windows
knife plugin installed. Afair it’s not part of the default chef install.

/Jeppe


#6

Hi Nikhil,
can you more verbosity to the command output ( with the flag -VV) to see
what is happening?

Regards*,*
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.com
(M) 0091-9766619440 | Skype: chirag.jog

On Thu, Aug 29, 2013 at 3:46 AM, Nikhil Shah nshah@theorchard.com wrote:

Pete,

I’ve install Windows Remote Management and configured it like the site
showed. I still am receiving this error…Would it be a firewall related
issue?

knife bootstrap windows winrm 192.168.31.89 -r
’role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not
known
Check your knife configuration and network settings
*Nikhil Shah */ System Administrator
nshah@theorchard.com drudolph@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/
Facebook http://www.facebook.com/theorchard / @orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and © are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited.
*

On Aug 28, 2013, at 5:33 PM, Pete Cheslock petecheslock@gmail.com wrote:

Check out the requirements - you need to make sure windows remote
management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:

I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


#7

Chirag,

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap windows winrm 192.168.XX.XX -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX -VV
DEBUG: Looking for bootstrap template in /Library/Ruby/Gems/1.8/gems/chef-11.6.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /Library/Ruby/Gems/1.8/gems/chef-11.6.0/lib/chef/knife/bootstrap
Bootstrapping Chef on windows
DEBUG: Adding windows
DEBUG: establishing connection to windows:22
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings

I’ve install the Windows Knife plugin:

/opt/chef/embedded/bin/gem install knife-windows

In the local firewall, I’ve got The Windows Remote Management allowing inbound connections.

Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 29, 2013, at 2:59 AM, Chirag Jog chirag@clogeny.com wrote:

Hi Nikhil,
can you more verbosity to the command output ( with the flag -VV) to see what is happening?

Regards,
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.com
(M) 0091-9766619440 | Skype: chirag.jog

On Thu, Aug 29, 2013 at 3:46 AM, Nikhil Shah nshah@theorchard.com wrote:
Pete,

I’ve install Windows Remote Management and configured it like the site showed. I still am receiving this error…Would it be a firewall related issue?

knife bootstrap windows winrm 192.168.31.89 -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings
Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 28, 2013, at 5:33 PM, Pete Cheslock petecheslock@gmail.com wrote:

Check out the requirements - you need to make sure windows remote management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:
I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


#8

DEBUG: establishing connection to windows:22

Clearly the problem with this round of tries.

Perhaps your knife-windows plugin is old?

Perhaps your version is fine and there’s a bug in knife-windows?


#9

did you provide a valid bootstrap template?

–template-file
’/gems/knife-windows-0.5.12/lib/chef/knife/bootstrap/windows-chef-client-msi.erb’

On Thu, Aug 29, 2013 at 8:20 PM, Jeff Blaine jblaine@kickflop.net wrote:

DEBUG: establishing connection to windows:22

Clearly the problem with this round of tries.

Perhaps your knife-windows plugin is old?

Perhaps your version is fine and there’s a bug in knife-windows?


#10

sorry, may bad. please ignore the previous mail.

On Fri, Aug 30, 2013 at 12:21 AM, Mukta Aphale mukta.aphale@clogeny.comwrote:

did you provide a valid bootstrap template?

–template-file
’/gems/knife-windows-0.5.12/lib/chef/knife/bootstrap/windows-chef-client-msi.erb’

On Thu, Aug 29, 2013 at 8:20 PM, Jeff Blaine jblaine@kickflop.net wrote:

DEBUG: establishing connection to windows:22

Clearly the problem with this round of tries.

Perhaps your knife-windows plugin is old?

Perhaps your version is fine and there’s a bug in knife-windows?


#11

Nikhil,

Reading that output, it looks like you have 2 copies of Chef installed, one
in your local system Ruby, and then the Omnibus installer.

I’d deinstall the former and try again. You have probably installed the
knife-windows gem into the latter and are trying to use Chef/Knife from the
former.

  • Julian

On Thu, Aug 29, 2013 at 10:14 AM, Nikhil Shah nshah@theorchard.com wrote:

Chirag,

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap windows winrm
192.168.XX.XX -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX
-VV
DEBUG: Looking for bootstrap template in
/Library/Ruby/Gems/1.8/gems/chef-11.6.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in
/Library/Ruby/Gems/1.8/gems/chef-11.6.0/lib/chef/knife/bootstrap
Bootstrapping Chef on windows
DEBUG: Adding windows
DEBUG: establishing connection to windows:22
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not
known
Check your knife configuration and network settings

I’ve install the Windows Knife plugin:

/opt/chef/embedded/bin/gem install knife-windows

In the local firewall, I’ve got The Windows Remote Management allowing inbound connections.

*Nikhil Shah */ System Administrator
nshah@theorchard.com drudolph@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/
Facebook http://www.facebook.com/theorchard / @orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and © are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited.
*

On Aug 29, 2013, at 2:59 AM, Chirag Jog chirag@clogeny.com wrote:

Hi Nikhil,
can you more verbosity to the command output ( with the flag -VV) to see
what is happening?

Regards*,*
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.com
(M) 0091-9766619440 | Skype: chirag.jog

On Thu, Aug 29, 2013 at 3:46 AM, Nikhil Shah nshah@theorchard.com wrote:

Pete,

I’ve install Windows Remote Management and configured it like the site
showed. I still am receiving this error…Would it be a firewall related
issue?

knife bootstrap windows winrm 192.168.31.89 -r
’role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not
known
Check your knife configuration and network settings
*Nikhil Shah */ System Administrator
nshah@theorchard.com drudolph@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/
Facebook http://www.facebook.com/theorchard / @orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and © are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited.
*

On Aug 28, 2013, at 5:33 PM, Pete Cheslock petecheslock@gmail.com
wrote:

Check out the requirements - you need to make sure windows remote
management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:

I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]


#12

Julian,

I am not sure how I would check to see If i have 2 copies, also how would i go about removing one of the copies?

I’ve used the chef docs to install:

curl -L http://www.opscode.com/chef/install.sh | sudo bash
sudo gem install chef
Grabbed the tar ball of chef-repo from the opscode site.

Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 29, 2013, at 9:23 PM, “Julian C. Dunn” jdunn@aquezada.com wrote:

Nikhil,

Reading that output, it looks like you have 2 copies of Chef installed, one in your local system Ruby, and then the Omnibus installer.

I’d deinstall the former and try again. You have probably installed the knife-windows gem into the latter and are trying to use Chef/Knife from the former.

  • Julian

On Thu, Aug 29, 2013 at 10:14 AM, Nikhil Shah nshah@theorchard.com wrote:
Chirag,

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap windows winrm 192.168.XX.XX -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX -VV
DEBUG: Looking for bootstrap template in /Library/Ruby/Gems/1.8/gems/chef-11.6.0/lib/chef/knife/bootstrap
DEBUG: Found bootstrap template in /Library/Ruby/Gems/1.8/gems/chef-11.6.0/lib/chef/knife/bootstrap
Bootstrapping Chef on windows
DEBUG: Adding windows
DEBUG: establishing connection to windows:22
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings

I’ve install the Windows Knife plugin:

/opt/chef/embedded/bin/gem install knife-windows

In the local firewall, I’ve got The Windows Remote Management allowing inbound connections.

Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 29, 2013, at 2:59 AM, Chirag Jog chirag@clogeny.com wrote:

Hi Nikhil,
can you more verbosity to the command output ( with the flag -VV) to see what is happening?

Regards,
Chirag Jog
Chief Technology Officer,
Clogeny Technologies | http://clogeny.com
(M) 0091-9766619440 | Skype: chirag.jog

On Thu, Aug 29, 2013 at 3:46 AM, Nikhil Shah nshah@theorchard.com wrote:
Pete,

I’ve install Windows Remote Management and configured it like the site showed. I still am receiving this error…Would it be a firewall related issue?

knife bootstrap windows winrm 192.168.31.89 -r ‘role[base_linux],role[development]’ -x devagent -P XXXXXX
Bootstrapping Chef on windows
ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known
Check your knife configuration and network settings
Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 28, 2013, at 5:33 PM, Pete Cheslock petecheslock@gmail.com wrote:

Check out the requirements - you need to make sure windows remote management is setup and configured to accept the connection.

http://docs.opscode.com/plugin_knife_windows.html#requirements

On Wed, Aug 28, 2013 at 5:28 PM, nshah@theorchard.com wrote:
I’ve tried to bootstrap windows:

Nikhils-MacBook-Pro:chef-repo nshah$ knife bootstrap 192.168.XX.XX -x
administrator -P XXXXXXX
Bootstrapping Chef on 192.168.XX.XX
ERROR: Network Error: Operation timed out - connect(2)
Check your knife configuration and network settings

Is there something different that needs to be done?


[ Julian C. Dunn jdunn@aquezada.com * Sorry, I’m ]
[ WWW: http://www.aquezada.com/staff/julian * only Web 1.0 ]
[ gopher://sdf.org/1/users/keymaker/ * compliant! ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9 ]


#13

curl -Lhttp://www.opscode.com/chef/install.sh | sudo bash

sudo gem install chef

Supposed to be 1 or the other, not both.

You have 2 chef installs :slight_smile:

  1. Installed wherever your ruby is (the gem)
  2. Installed in /opt/chef (the Omnibus installer gotten via curl)

#14

oh I see, now how would I go about removing the one instance? Which would be better to keep?
Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 30, 2013, at 10:17 AM, Jeff Blaine jblaine@kickflop.net wrote:

curl -Lhttp://www.opscode.com/chef/install.sh | sudo bash

sudo gem install chef

Supposed to be 1 or the other, not both.

You have 2 chef installs :slight_smile:

  1. Installed wherever your ruby is (the gem)
  2. Installed in /opt/chef (the Omnibus installer gotten via curl)

#15

I understand I might have 2 installs of chef, but would that be the main issue for the following issue when i try running knife windows:

ERROR: Network Error: getaddrinfo: nodename nor servname provided, or not known

I can run the knife commands with no problems on my linux servers.

Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 30, 2013, at 10:17 AM, Jeff Blaine jblaine@kickflop.net wrote:

curl -Lhttp://www.opscode.com/chef/install.sh | sudo bash

sudo gem install chef

Supposed to be 1 or the other, not both.

You have 2 chef installs :slight_smile:

  1. Installed wherever your ruby is (the gem)
  2. Installed in /opt/chef (the Omnibus installer gotten via curl)

#16

I;ve done a gem uninstall chef and it removed chef:

Successfully uninstalled chef-11.6.0

I tried running running the knife bootstrap windows winrm and here is the new errors:

ERROR: Failed to authenticate to [“192.168.XX.XX”] as devagent
Response: Bad HTTP response returned from server (401).
DEBUG: Adding 192.168.XX.XX
DEBUG: :session => :init
DEBUG: :relay_to_servers => cmd.exe /C echo “Rendering ‘%TEMP%\bootstrap-2419-1377876310.bat’ chunk 9” && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.validation_client_name “the-orchard-validator”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.client_key “c:/chef/client.pem”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.validation_key “c:/chef/validation.pem”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.file_cache_path “c:/chef/cache”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.file_backup_path “c:/chef/backup”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.cache_options ^^^({:path =^^^> “c:/chef/cache/checksums”, :skip_expires =^^^> true}^^^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.# Using default node name ^^^(fqdn^^^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.^> C:\chef\first-boot.json ^() && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.{“run_list”:[“role[base_linux]”,“role[development]”]}) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.SET “PATH=%PATH%;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json -E _default) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.)
DEBUG: :relayed => 192.168.XX.XX
DEBUG: 192.168.XX.XX => :run_command
ERROR: Failed to authenticate to [“192.168.XX.XX”] as devagent
Response: Bad HTTP response returned from server (401).
DEBUG: Adding 192.168.XX.XX
DEBUG: :session => :init
DEBUG: :relay_to_servers => cmd.exe /C %TEMP%\bootstrap-2419-1377876310.bat
DEBUG: :relayed => 192.168.XX.XX
DEBUG: 192.168.XX.XX => :run_command
ERROR: Failed to authenticate to [“192.168.XX.XX”] as devagent
Response: Bad HTTP response returned from server (401).

Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 30, 2013, at 10:17 AM, Jeff Blaine jblaine@kickflop.net wrote:

curl -Lhttp://www.opscode.com/chef/install.sh | sudo bash

sudo gem install chef

Supposed to be 1 or the other, not both.

You have 2 chef installs :slight_smile:

  1. Installed wherever your ruby is (the gem)
  2. Installed in /opt/chef (the Omnibus installer gotten via curl)

#17

Disregard, it was a user permission error.
Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 30, 2013, at 11:27 AM, Nikhil Shah nshah@theorchard.com wrote:

I;ve done a gem uninstall chef and it removed chef:

Successfully uninstalled chef-11.6.0

I tried running running the knife bootstrap windows winrm and here is the new errors:

ERROR: Failed to authenticate to [“192.168.XX.XX”] as devagent
Response: Bad HTTP response returned from server (401).
DEBUG: Adding 192.168.XX.XX
DEBUG: :session => :init
DEBUG: :relay_to_servers => cmd.exe /C echo “Rendering ‘%TEMP%\bootstrap-2419-1377876310.bat’ chunk 9” && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.validation_client_name “the-orchard-validator”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.client_key “c:/chef/client.pem”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.validation_key “c:/chef/validation.pem”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.file_cache_path “c:/chef/cache”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.file_backup_path “c:/chef/backup”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.cache_options ^^^({:path =^^^> “c:/chef/cache/checksums”, :skip_expires =^^^> true}^^^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.# Using default node name ^^^(fqdn^^^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.^> C:\chef\first-boot.json ^() && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.echo.{“run_list”:[“role[base_linux]”,“role[development]”]}) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.^)) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.SET “PATH=%PATH%;C:\ruby\bin;C:\opscode\chef\bin;C:\opscode\chef\embedded\bin”) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.chef-client -c c:/chef/client.rb -j c:/chef/first-boot.json -E _default) && >> %TEMP%\bootstrap-2419-1377876310.bat (echo.)
DEBUG: :relayed => 192.168.XX.XX
DEBUG: 192.168.XX.XX => :run_command
ERROR: Failed to authenticate to [“192.168.XX.XX”] as devagent
Response: Bad HTTP response returned from server (401).
DEBUG: Adding 192.168.XX.XX
DEBUG: :session => :init
DEBUG: :relay_to_servers => cmd.exe /C %TEMP%\bootstrap-2419-1377876310.bat
DEBUG: :relayed => 192.168.XX.XX
DEBUG: 192.168.XX.XX => :run_command
ERROR: Failed to authenticate to [“192.168.XX.XX”] as devagent
Response: Bad HTTP response returned from server (401).

Nikhil Shah / System Administrator
nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com
Facebook / @orchtweets

Privileged And Confidential Communication.
This electronic transmission, and any documents attached hereto, (a) are protected by the Electronic Communications Privacy Act (18 USC §§ 2510-2521), (b) may contain confidential and/or legally privileged information, and © are for the sole use of the intended recipient named above. If you have received this electronic message in error, please notify the sender and delete the electronic message. Any disclosure, copying, distribution, or use of the contents of the information received in error is strictly prohibited.

On Aug 30, 2013, at 10:17 AM, Jeff Blaine jblaine@kickflop.net wrote:

curl -Lhttp://www.opscode.com/chef/install.sh | sudo bash

sudo gem install chef

Supposed to be 1 or the other, not both.

You have 2 chef installs :slight_smile:

  1. Installed wherever your ruby is (the gem)
  2. Installed in /opt/chef (the Omnibus installer gotten via curl)