Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrapping a vagrant node from widows fails with ERROR: IOError: closed stream #3573

Closed
vinyar opened this issue Jun 23, 2015 · 22 comments
Closed

Comments

@vinyar
Copy link

vinyar commented Jun 23, 2015

Parent OS Windows 7
Target OS is RHEL 6.6
Chef dk 6.2

PS C:\chef> knife bootstrap 127.0.0.1 -x vagrant -P vagrant -c .chef\knife_prod_new_test_org.rb -N 'node3'-p 2222  -VV
INFO: Using configuration from C:/chef/.chef/knife_prod_new_test_org.rb
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as alexv
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Using nss.chq.ei:8080 for proxy
DEBUG: Initiating GET to https://chefserverurl/organizations/test-org/nodes/node3
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: alexv
DEBUG: X-OPS-TIMESTAMP: 2015-06-23T17:19:53Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: AdmbzPVJg8eYEmMNkOtBa4b0fR8TuhTmfSBLy9jadek5WgU86Xek06IKf5y/
DEBUG: X-OPS-AUTHORIZATION-2: wsdLZb2IGO4EeJ6/XmLiueF2eUrjEco+gQYVJtVQoeYiX8yE5BqvbbEM1yoq
DEBUG: X-OPS-AUTHORIZATION-3: EYeixpJSE9ZhdMCH0wSk2VCCmRpsyGhiUMIMvTwCNDLB5W3IrFmgs5W5/mVE
DEBUG: X-OPS-AUTHORIZATION-4: 6/V/eQYQpzCNsNb0iep+5VwRCgN31DnILSQsPqsN4M4ijyI+/3bgdzP/b+uD
DEBUG: X-OPS-AUTHORIZATION-5: baF8gJ4l4OHDX6Rww/JQ9ITa6bqlov59S03miOkKdpA31kB7WpaoYAmcBFA1
DEBUG: X-OPS-AUTHORIZATION-6: E+JzW2Sk7dk0Ewqe47j/4NpaPsiQB1KHsBo45m8nhA==
DEBUG: HOST: chefserverurl:443
DEBUG: X-REMOTE-REQUEST-ID: bc00e170-61da-4dd5-aaf4-af2b5fb56418
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: server: openresty/1.7.10.1
DEBUG: date: Tue, 23 Jun 2015 17:20:03 GMT
DEBUG: content-length: 36
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.6.4
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'node3' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as alexv
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Using nss.chq.ei:8080 for proxy
DEBUG: Initiating GET to https://chefserverurl/organizations/test-org/clients/node3
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: alexv
DEBUG: X-OPS-TIMESTAMP: 2015-06-23T17:20:03Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: seMcvXrlewo3ZBiiN5ijzJAVdnFpZvj4XcjVnoHifYc+FiQ4uLkT38rY89Bs
DEBUG: X-OPS-AUTHORIZATION-2: retrvIr3Q9Pj/ggL4NQPcbF8KXZWgIzRkh/12RDHvJOIvbUUV2KBVJhYA0OF
DEBUG: X-OPS-AUTHORIZATION-3: FfawR9HtMLOPHpiZSJoImevOS20zRj7mdMbG3y5jGnHKI3ZtM18mk5kccTpg
DEBUG: X-OPS-AUTHORIZATION-4: joCSLGtvQ+SXROWigQJx1l6/g9/cOuqzERILLNWP1drX9OOCO3UR5hF7Tdrq
DEBUG: X-OPS-AUTHORIZATION-5: Ev//MKTi24WPu9pS+Bw+hPKRYrrWu4mc9GfsTMKVAPy/ez/dGqLnBlWzRov/
DEBUG: X-OPS-AUTHORIZATION-6: PP2SC77dAfciQhRigsgiomPbH5gKuGs7O7a179mFBw==
DEBUG: HOST: chefserverurl:443
DEBUG: X-REMOTE-REQUEST-ID: bc00e170-61da-4dd5-aaf4-af2b5fb56418
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: server: openresty/1.7.10.1
DEBUG: date: Tue, 23 Jun 2015 17:20:03 GMT
DEBUG: content-length: 38
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.6.4
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["Cannot load client node3"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
Creating new client for node3
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as alexv
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Using nss.chq.ei:8080 for proxy
DEBUG: Initiating POST to https://chefserverurl/organizations/test-org/clients
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: alexv
DEBUG: X-OPS-TIMESTAMP: 2015-06-23T17:20:03Z
DEBUG: X-OPS-CONTENT-HASH: vwvdeJ/t5CWyPWJqqrtUsCOu+4U=
DEBUG: X-OPS-AUTHORIZATION-1: SFr8/h48RoNX8ovCtrL08oBO9sOW9ggx8pCodYyZa+KiFlzq+M44h7Axt8iK
DEBUG: X-OPS-AUTHORIZATION-2: 1H/DINdjgyMb7yRzVwR+Anwyimz6JFlMO29PwtgEUV+S9F34azGG3BGs2cX7
DEBUG: X-OPS-AUTHORIZATION-3: hzYY8Mk95J1TO7aJ7g9BPeiW4N9KVQU/rZNdpLOlcYXNjc4ROcCUYfZkqwDS
DEBUG: X-OPS-AUTHORIZATION-4: HaP8ZjZKpA2gkkIEypZ31Is4Ge2P9oDEZzhMi7PGACZBKW6C7KoISnonCQwT
DEBUG: X-OPS-AUTHORIZATION-5: W2xCmIqdyhzBDg5bN+fkLgvoJ1mLChf7b59STO2GGVnhzNMg3boYjjxcdZ/C
DEBUG: X-OPS-AUTHORIZATION-6: Rm90WDCwmf3SCN+mX+sD3bmFUrXsy4DCN3Mt/njA/w==
DEBUG: HOST: chefserverurl:443
DEBUG: X-REMOTE-REQUEST-ID: bc00e170-61da-4dd5-aaf4-af2b5fb56418
DEBUG: Content-Length: 506
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: server: openresty/1.7.10.1
DEBUG: date: Tue, 23 Jun 2015 17:20:03 GMT
DEBUG: content-type: application/json
DEBUG: content-length: 548
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.6.4
DEBUG: location: https://chefserverurl/organizations/test-org/clients/node3
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new node for node3
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as node3
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Using nss.chq.ei:8080 for proxy
DEBUG: Initiating PUT to https://chefserverurl/organizations/test-org/nodes/node3
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: node3
DEBUG: X-OPS-TIMESTAMP: 2015-06-23T17:20:04Z
DEBUG: X-OPS-CONTENT-HASH: +VqgeDzEzVeNnj++xRIVjSeqlCk=
DEBUG: X-OPS-AUTHORIZATION-1: OuXizbsDiGMP2SArn0l4wyw5ms03MytjLauILXLaopUUxEq4uSUg0M+UgPaI
DEBUG: X-OPS-AUTHORIZATION-2: vkXO0Eh2tDmzggRdNBVsiXFtR8eCZOyEoYXyec/pMPO1udbiu1c073uPwHcg
DEBUG: X-OPS-AUTHORIZATION-3: UJOhJEST+4rVXQ7UDbYCI5dpmBlzPF9dtRkE3bezU6Pr5V0vB4KNfEKr4KbM
DEBUG: X-OPS-AUTHORIZATION-4: QOoVj/R1OKtGfGcDFgFMugxhkBhLHGYNXECwwxbN7EkUe/xX8biR3GLYjcBA
DEBUG: X-OPS-AUTHORIZATION-5: h77rK0MdOBf/eEXj02/2hY0GmJGI6KXXb+E2ScYQGdlv5I324zv1D67ND6DW
DEBUG: X-OPS-AUTHORIZATION-6: qMwADUj9NFigfvaXMFRHxMSXMItBpQ3svaN/d/XHNA==
DEBUG: HOST: chefserverurl:443
DEBUG: X-REMOTE-REQUEST-ID: bc00e170-61da-4dd5-aaf4-af2b5fb56418
DEBUG: Content-Length: 159
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: server: openresty/1.7.10.1
DEBUG: date: Tue, 23 Jun 2015 17:20:04 GMT
DEBUG: content-length: 36
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.6.4
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'node3' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: ---- HTTP Request Body ----
DEBUG: {"name":"node3","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"nod
e","default":{},"override":{},"run_list":[]}
DEBUG: ---- End HTTP Request Body ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as node3
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Using nss.chq.ei:8080 for proxy
DEBUG: Initiating POST to https://chefserverurl/organizations/test-org/nodes
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
DEBUG: X-OPS-USERID: node3
DEBUG: X-OPS-TIMESTAMP: 2015-06-23T17:20:04Z
DEBUG: X-OPS-CONTENT-HASH: +VqgeDzEzVeNnj++xRIVjSeqlCk=
DEBUG: X-OPS-AUTHORIZATION-1: Qv4/hVrRZ2/o6BmfiRAUbpJ5ApN476mDHDXEzcW24TwfCUy22EKgdo4W8W47
DEBUG: X-OPS-AUTHORIZATION-2: dK9bxCqfrUqIL9w7QPGbTlIuF9hK7rt1jODEoiqEBYv3/n0VODQkRNOEmLhi
DEBUG: X-OPS-AUTHORIZATION-3: FPC0gLJMupEo5yuZIAc0XZY7EftNm+i9OrqidD/C2ambsSXjS/f2QXp7dCN0
DEBUG: X-OPS-AUTHORIZATION-4: tPdWcvAc6VKi20gvJB5PJhOS2ZXuhQfPMFRxXMgfdxsKn5jcQ3PK7reXyjUj
DEBUG: X-OPS-AUTHORIZATION-5: NVKRqR+XuNKkhbbdKqG3sbZdjEQ9NC1pRQUO2RVEQIkWRgTtxA/RDDtbMxHy
DEBUG: X-OPS-AUTHORIZATION-6: JGO3P3Gq1Fges5ndRCrkJiKJH5DbiCeJxf282flQnA==
DEBUG: HOST: chefserverurl:443
DEBUG: X-REMOTE-REQUEST-ID: bc00e170-61da-4dd5-aaf4-af2b5fb56418
DEBUG: Content-Length: 159
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: server: openresty/1.7.10.1
DEBUG: date: Tue, 23 Jun 2015 17:20:04 GMT
DEBUG: content-type: application/json
DEBUG: content-length: 70
DEBUG: connection: close
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=1.6.4
DEBUG: location: https://chefserverurl/organizations/test-org/nodes/node3
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONToModelOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Connecting to 127.0.0.1
DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/apps/chef/lib/chef/knife/bootstrap/templates
DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/apps/chef/lib/chef/knife/bootstrap/templates
DEBUG: Adding 127.0.0.1
DEBUG: establishing connection to 127.0.0.1:2222
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: remote is `SSH-2.0-OpenSSH_5.3'
DEBUG: local is `SSH-2.0-Ruby/Net::SSH_2.9.2 i386-mingw32'
DEBUG: read 784 bytes
DEBUG: received packet nr 0 type 20 len 780
INFO: got KEXINIT from server
INFO: sending KEXINIT
DEBUG: queueing packet nr 0 type 20 len 1684
DEBUG: sent 1688 bytes
INFO: negotiating algorithms
DEBUG: negotiated:
* kex: diffie-hellman-group-exchange-sha1
* host_key: ssh-rsa
* encryption_server: aes128-cbc
* encryption_client: aes128-cbc
* hmac_client: hmac-sha1
* hmac_server: hmac-sha1
* compression_client: none
* compression_server: none
* language_client:
* language_server:
DEBUG: exchanging keys
DEBUG: queueing packet nr 1 type 34 len 20
DEBUG: sent 24 bytes
DEBUG: read 152 bytes
DEBUG: received packet nr 1 type 31 len 148
DEBUG: queueing packet nr 2 type 32 len 140
DEBUG: sent 144 bytes
DEBUG: read 720 bytes
DEBUG: received packet nr 2 type 33 len 700
DEBUG: queueing packet nr 3 type 21 len 20
DEBUG: sent 24 bytes
DEBUG: received packet nr 3 type 21 len 12
DEBUG: beginning authentication of `vagrant'
DEBUG: queueing packet nr 4 type 5 len 28
DEBUG: sent 52 bytes
DEBUG: read 52 bytes
DEBUG: received packet nr 4 type 6 len 28
DEBUG: trying none
DEBUG: queueing packet nr 5 type 50 len 44
DEBUG: sent 68 bytes
DEBUG: read 84 bytes
DEBUG: received packet nr 5 type 51 len 60
DEBUG: allowed methods: publickey,gssapi-keyex,gssapi-with-mic,password
DEBUG: none failed
DEBUG: trying publickey
DEBUG: connecting to ssh-agent
ERROR: could not connect to ssh-agent
DEBUG: trying publickey (7e:19:a7:3a:6c:a7:ae:e0:43:cd:f8:0b:10:7f:e8:d9)
DEBUG: queueing packet nr 6 type 50 len 348
DEBUG: sent 372 bytes
DEBUG: read 84 bytes
DEBUG: received packet nr 6 type 51 len 60
DEBUG: allowed methods: publickey,gssapi-keyex,gssapi-with-mic,password
DEBUG: trying password
DEBUG: queueing packet nr 7 type 50 len 60
DEBUG: sent 84 bytes
DEBUG: read 36 bytes
DEBUG: received packet nr 7 type 52 len 12
DEBUG: password succeeded
DEBUG: queueing packet nr 8 type 90 len 44
DEBUG: sent 68 bytes
DEBUG: read 52 bytes
DEBUG: received packet nr 8 type 91 len 28
INFO: channel_open_confirmation: 0 0 0 32768
INFO: sending channel request "pty-req"
DEBUG: queueing packet nr 9 type 98 len 60
INFO: sending channel request "exec"
DEBUG: queueing packet nr 10 type 98 len 273356
DEBUG: sent 273464 bytes
DEBUG: read 0 bytes
ERROR: IOError: closed stream
PS C:\chef>
@adamedx
Copy link
Contributor

adamedx commented Sep 16, 2015

@mwrock, can you take a look at this? It requires a Windows OS not running in a VM (difficult to use Vagrant from a Windows VM). I assume Virtualbox is what's being used for virtualization.

The command above is not specific to Vagrant, so it is possible this will repro on any RHEL box, though I've recently bootstrapped other Linuxes on Azure via ssh.

@lamont-granquist
Copy link
Contributor

Offhand this looks like it might be a net-ssh problem talking from windows to linux. It doesn't look like chef-client itself is doing anything when it blows up.

@lamont-granquist lamont-granquist added this to the Accepted Minor milestone Sep 16, 2015
@mwrock
Copy link
Member

mwrock commented Sep 16, 2015

Agree with @lamont-granquist on the likelihood of being just windows/ssh flakiness. I'll try running on my system using Hyper-v at first but that uses a fundamentally different network setup (not NAT) that may be at play here. Will find a vbox rig to test if i can t repro locally.

@mwrock
Copy link
Member

mwrock commented Sep 16, 2015

Hey @vinyar, do you recall what vagrant base box you used here?

@vinyar
Copy link
Author

vinyar commented Sep 16, 2015

sorry, I do not. I would guess a free one, but I don't think there are free RHEL boxes.

@mwrock
Copy link
Member

mwrock commented Sep 16, 2015

BTW: couldn't find a hyperv rhel box so i spun up a rhel 6.6 aws box and setup a vagrant with password authentication. Bootstrapping worked fine with:

knife bootstrap 7.7.7.7 -x vagrant -P vagrant -c .chef/knife.rb -N 'sshn' --sudo

I'm confident this would work fine on a vagrant/vbox instance just as well since the same laws of tcp/ip apply.

@mwrock mwrock closed this as completed Sep 16, 2015
@mwrock
Copy link
Member

mwrock commented Sep 16, 2015

Feel free to reopen if you bump into this again.

@vinyar
Copy link
Author

vinyar commented Sep 17, 2015

👍

@Dev393
Copy link

Dev393 commented Aug 20, 2016

Hi,

Can someone help me here,I am new bee to chef.

Parent OS Windows 7
Target OS Ubuntu 14.04

Below is the command to do bootstrap.

command
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/nodes/sshn
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:07Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: nmz4ddAfjsIhcQ1/EwHUlJ1tgjtQ1GMKXfb84CIY2P/xaFC13KY4mwvetghL
DEBUG: X-OPS-AUTHORIZATION-2: 5wyCFekS8FShWP0fMYZAxXQ7owtTxOYy84vjAmuK2MYk1iXios9MNkuZ0CER
DEBUG: X-OPS-AUTHORIZATION-3: jPR0YbrgXxXQthFd/6JylJo4M6eLMzi6xlsPw63w7oGcKgvW5HISqUfSPVzu
DEBUG: X-OPS-AUTHORIZATION-4: mLpxkjY143Xwk6fz27tFYSBwnmRMhSzyeAWtG/JcmRXV8g6cEkijdOUOXY2v
DEBUG: X-OPS-AUTHORIZATION-5: QKFOILzcK0+d9X9Hf9TNVVxnyk71N6o6SkraJ/YnbSKKvOKjvPgcy9JP5Y8a
DEBUG: X-OPS-AUTHORIZATION-6: 55iFLKBMtWUgRMCqTlYtkfFKX9gPPYVow12X5Pt6hQ==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sat, 20 Aug 2016 18:45:08 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 135
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Node sshn exists, overwrite it? (Y/N) y
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating DELETE to https://api.chef.io/organizations/infosystem/nodes/sshn
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:12Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: m1Y1E6AKTXniWsHyo+Qkc7MY9/ERIiYEFvEFuy5LB4BTgXzYjF69KeMSmClx
DEBUG: X-OPS-AUTHORIZATION-2: fYcLjHDUo4iwBrcK/b3dPIcPB1EWWEvEXIJhg2T5On7OmtWhnAQWudrMkUp2
DEBUG: X-OPS-AUTHORIZATION-3: G40OI35JugE+KLcFHXY5WPaUXJDkc/RJ4F76bHQ+KU8jZCIBEb+NiAyxExrg
DEBUG: X-OPS-AUTHORIZATION-4: JVYksi3bJBJ1ZBlVE3nbgeb27S1LMap7m1/mmXu+ZouKTil2Gm2XBI90hgW1
DEBUG: X-OPS-AUTHORIZATION-5: IPnnrTN9zaOCGzJkOG/obFLmu3s/lodirttxn4y8FIPsmzjkKzD3ki9Y+zcM
DEBUG: X-OPS-AUTHORIZATION-6: vILSd81QRNYhY1yneDeks+SbzRFXXJdNFvgtusZN+Q==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sat, 20 Aug 2016 18:45:12 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 135
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/clients/sshn
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:13Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: v2E/8Mhtrp9U8JbajEtWau9duHVr7nXOt2+2dlgXzaIPEfWF9mHIt8y5XSMU
DEBUG: X-OPS-AUTHORIZATION-2: MkKCvG1gxtM/sWR6vtHbCYkgAFsWKP0O6d4ZKOPKcb4TyY6yXAXewwE3Z7cF
DEBUG: X-OPS-AUTHORIZATION-3: OlsNbLBrcOjsbx5O6frBf99a7CyVBcvGoYMwZC1lXZZG3M3V8J0sNCNWP/bC
DEBUG: X-OPS-AUTHORIZATION-4: PVoiva8LNfsemRmsj9QuVBwue4FKlUj8mQyv9LlYDoyN/ZBsc0v9adJr5Jda
DEBUG: X-OPS-AUTHORIZATION-5: JbHnkhize4ZIlbV8rJMNhst1YTpGeBCj1j+GsECGQj84V2scBAIEqoArHHOc
DEBUG: X-OPS-AUTHORIZATION-6: rUCrE5hQtAbMr/ml3UNlCzvOgLX+76WUoXFT8kpgrQ==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sat, 20 Aug 2016 18:45:13 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 113
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Client sshn exists, overwrite it? (Y/N) y
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating DELETE to https://api.chef.io/organizations/infosystem/clients/sshn
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:16Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: TRq0E0erd3vZd3ufZueSt8MOJv8D1ibY/1M7PYIYFZRTlWaIF/nVpnpoFvb2
DEBUG: X-OPS-AUTHORIZATION-2: gv7899Y+UKR59YvhEmlnTuU0m07Zkk1oeYebV+zwmEcpHKoO+BpQZ6qliIV1
DEBUG: X-OPS-AUTHORIZATION-3: uVgE5mkXkrqJ512qsZ4Rlnd4470+Qm3YQ3ggfdFWRmhCJKe3lpTLxbJe6Dpa
DEBUG: X-OPS-AUTHORIZATION-4: ImEbPIig23id0rvhOC3cScCr6HdakM9KECN05R4wtMhavSj64O7Pr8I/HlIj
DEBUG: X-OPS-AUTHORIZATION-5: c3Cv8akAOGA1ORXTGvsSCuftsQHd9/YLyiKhSO5b+ibxY0ocjuI2dIaom93A
DEBUG: X-OPS-AUTHORIZATION-6: PriON3Nyn2y8bCV8vFQVIKs2y1Ep7TLnPTZZax8GbQ==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sat, 20 Aug 2016 18:45:17 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 113
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new client for sshn
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/clients
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:19Z
DEBUG: X-OPS-CONTENT-HASH: JLuiza/uyZ+LRdDZdI2JFajJw9E=
DEBUG: X-OPS-AUTHORIZATION-1: QwYbp5QCT4jjPcaO65PEfOfdUpprhZAuVDNW/jya1kDEi9u1MMs2dWSI0bY3
DEBUG: X-OPS-AUTHORIZATION-2: JAp0tQ/hxCAPROeuXy3dp6KdOk+MBt+oZ6aJT44cp7pcgHpx654VTc92V0+O
DEBUG: X-OPS-AUTHORIZATION-3: jbVKluhpdNN7RI/ESrmiIgRr5oIrONqrT1lbHFKWx4Wd1SjUTzy23b4AzQD8
DEBUG: X-OPS-AUTHORIZATION-4: WTI+N67fJiaLJYru4HkmDiwFB0YgycSEigieUFXBcw4GIfQyf8pXh6Eh5+En
DEBUG: X-OPS-AUTHORIZATION-5: +H/QyZGhO2LeBjslVPBeB/PO7lsCY500WCJEOqqsK148gH6KR/EjXezlqt2B
DEBUG: X-OPS-AUTHORIZATION-6: kYTbMmxjtLOsT8eJb5Tqi8J0BHWapqCsSz/VAqK4BA==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: Content-Length: 505
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Sat, 20 Aug 2016 18:45:19 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/clients/sshn
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 681
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new node for sshn
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as sshn
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating PUT to https://api.chef.io/organizations/infosystem/nodes/sshn
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: sshn
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:21Z
DEBUG: X-OPS-CONTENT-HASH: nuCce/1viDV+AcCHq8NsLzdCgC0=
DEBUG: X-OPS-AUTHORIZATION-1: gBLP/mFTNA7JvPxRg6ttqwQIbJi0m2kYycmb1YpK9a5TvqZewqf70X2oCr2f
DEBUG: X-OPS-AUTHORIZATION-2: sKNcoSWTgELK3BJ5r0No3cPSuR42r7A6o8Z/qtxipCQl1xwhi+0Ec3VuYWPW
DEBUG: X-OPS-AUTHORIZATION-3: Ds9cBNhht1NhHntYK4g6lzQYHtWebqWF9lt86bzV8kdR1S3NznVnAz9c4BnG
DEBUG: X-OPS-AUTHORIZATION-4: PUsAFulC7IVZ8tXSk0OXq4qPQBfYg5rvC76NFeLNL4kn1GcnBQjG1H4EMFJh
DEBUG: X-OPS-AUTHORIZATION-5: h5xrN/MUUifeoAJbxR2i1zAt7V91OMBl0PFLc7PNEBSmLGx/R0RQZEz1RMkn
DEBUG: X-OPS-AUTHORIZATION-6: DyM0PSVQnuMvHiCKUCF6pL4JR9YsoXbfbJA7n2eAow==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: Content-Length: 158
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: date: Sat, 20 Aug 2016 18:45:21 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 35
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'sshn' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: ---- HTTP Request Body ----
DEBUG: {"name":"sshn","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default":{},"override":{},"run_list":[]}
DEBUG: ---- End HTTP Request Body ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as sshn
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/nodes
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: sshn
DEBUG: X-OPS-TIMESTAMP: 2016-08-20T18:45:22Z
DEBUG: X-OPS-CONTENT-HASH: nuCce/1viDV+AcCHq8NsLzdCgC0=
DEBUG: X-OPS-AUTHORIZATION-1: ALqZC33OSajqcAyzPPuot+rfR3xE7WZVw3KWZZCM2EfWoxI0pnUtDAztmG2w
DEBUG: X-OPS-AUTHORIZATION-2: sbmAG01F2RmPvqTy2TxOQofhdjlg4fzAVe5RGE9exYqBmLyMfGhwZgcrw5Tk
DEBUG: X-OPS-AUTHORIZATION-3: +bLTafWPmb5F/a+lM9NZAL8Pqa5iyiT/tNRfRuXetHehkTbgBKzYxVEnOGvw
DEBUG: X-OPS-AUTHORIZATION-4: dPDQ4DOELiXLDUaCYaS/IuAeienJVUq7xHpqUWA1cxRW70rdejBCFkYgWBy/
DEBUG: X-OPS-AUTHORIZATION-5: AF2mx2ZH8r7iubzEUwmQMKHydemRLrxMiDwRXmUC48IROVHhf83nUhsCVmV/
DEBUG: X-OPS-AUTHORIZATION-6: cZInMZqf7vksRMVg4BV9TCzHxJc+DMlNCvAOONVJdw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 4ba2b3c5-5b84-46b6-aa6e-0ddc787c4a13
DEBUG: Content-Length: 158
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Sat, 20 Aug 2016 18:45:22 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/nodes/sshn
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 65
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Connecting to ec2-54-197-25-68.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.30-universal-mingw32/lib/chef/knife/bootstrap/templates
DEBUG: Found bootstrap template in C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/chef-12.13.30-universal-mingw32/lib/chef/knife/bootstrap/templates
DEBUG: Adding ec2-54-197-25-68.compute-1.amazonaws.com
DEBUG: establishing connection to ec2-54-197-25-68.compute-1.amazonaws.com:22
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: local is SSH-2.0-Ruby/Net::SSH_3.2.0 x64-mingw32' DEBUG: remote isSSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7'
INFO: sending KEXINIT
DEBUG: queueing packet nr 0 type 20 len 1684
DEBUG: sent 1688 bytes
DEBUG: read 1648 bytes
DEBUG: received packet nr 0 type 20 len 1644
INFO: got KEXINIT from server
INFO: negotiating algorithms
DEBUG: negotiated:

  • kex: diffie-hellman-group-exchange-sha1
  • host_key: ssh-rsa
  • encryption_server: aes128-cbc
  • encryption_client: aes128-cbc
  • hmac_client: hmac-sha1
  • hmac_server: hmac-sha1
  • compression_client: none
  • compression_server: none
  • language_client:
  • language_server:
    DEBUG: exchanging keys
    DEBUG: queueing packet nr 1 type 34 len 20
    DEBUG: sent 24 bytes
    DEBUG: read 152 bytes
    DEBUG: received packet nr 1 type 31 len 148
    DEBUG: queueing packet nr 2 type 32 len 140
    DEBUG: sent 144 bytes
    DEBUG: read 720 bytes
    DEBUG: received packet nr 2 type 33 len 700
    DEBUG: queueing packet nr 3 type 21 len 20
    DEBUG: sent 24 bytes
    DEBUG: received packet nr 3 type 21 len 12
    DEBUG: beginning authentication of ubuntu' DEBUG: queueing packet nr 4 type 5 len 28 DEBUG: sent 52 bytes DEBUG: read 52 bytes DEBUG: received packet nr 4 type 6 len 28 DEBUG: trying none DEBUG: queueing packet nr 5 type 50 len 44 DEBUG: sent 68 bytes DEBUG: read 52 bytes DEBUG: received packet nr 5 type 51 len 28 DEBUG: allowed methods: publickey DEBUG: none failed DEBUG: trying publickey DEBUG: connecting to ssh-agent ERROR: could not connect to ssh-agent ERROR: all authorization methods failed (tried none, publickey) C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:194:inrescue in new_session': Authentication failed for user ubuntu@ec2-54-197-25-68.compute-1.amazonaws.com@ec2-54-197-25-68.compute-1.amazonaws.com (Net::SSH::Auth
    enticationFailed)
    from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:183:in new_session' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488:innext_session'
    from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:in session' from C:/opscode/chef/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_actions.rb:36:inblock (2 levels) in sessions'

@mwrock
Copy link
Member

mwrock commented Aug 20, 2016

@Dev393 it looks like it could not auth over SSH. Are you able to connect to the node via plain ssh with the same credentials and host name used in your knife command?

@Dev393
Copy link

Dev393 commented Aug 21, 2016

Hi Matt,

Yes i can connect from my windows workstation to the node through putty over plain ssh.My Ubuntu is hosted on AWS.
ssh
I can connect to the instance through .pem file.

Regards
Dev

@mwrock
Copy link
Member

mwrock commented Aug 21, 2016

Oh and I overlooked a key bit in your error output:

ERROR: could not connect to ssh-agent 

If you are using putty on the client, I believe you want to make sure that you are running pageant. I typically run plain ssh that ships with git see http://www.hurryupandwait.io/blog/need-an-ssh-client-on-windows-dont-use-putty-or-cygwinuse-git

@Dev393
Copy link

Dev393 commented Aug 21, 2016

Hi Matt,

http://www.hurryupandwait.io/blog/need-an-ssh-client-on-windows-dont-use-putty-or-cygwinuse-git

From the above link i can see you have suggested to do modification in path $new_path = "$env:PATH;C:/Program Files/Git/usr/bin" so this modification will only sustain for current session?Do we need to append the above path for each & every sessions?

Thanks i did modification and its establishing but is there anything which i need to pass as public key as per the below result:

PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-54-209-72-121.compute-1.amazonaws.com -x administrator –P ******** -N "node1"
-VV. Key Lines from below log:DEBUG: allowed methods: publickey
DEBUG: none failed
DEBUG: trying publickey
DEBUG: connecting to ssh-agent
ERROR: could not connect to ssh-agent
ERROR: all authorization methods failed (tried none, publickey)
C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:194:in rescue in new_session': Au thentication failed for user administrator@ec2-54-209-72-121.compute-1.amazonaws.com@ec2-54-209-72-121.compute-1.amazonaws.com (Net::S SH::AuthenticationFailed) from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:183:innew_session'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488:in next_session ' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:insession'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_actions.rb:36:in block (2 levels) in sessions' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:incall'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in `block in crea
te_with_logging_context'

######################################################
INFO: Using configuration from C:/Users/dchakraborty/chef-repo/.chef/knife.rb
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/nodes/node1
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:28Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: B80WytTEhjKaijS1yMPFP7LwrGPoTAXTlWHf6pDMQQ590bbK8GgkkpZxNURN
DEBUG: X-OPS-AUTHORIZATION-2: Eaz8mZ74Kxo4I1dXztSmSZ9dfLH8dqLL2nIeP5FAl9gJHZspmrDTfhwUR8jY
DEBUG: X-OPS-AUTHORIZATION-3: 4GJYU5q0i2yx4VIeAq9qL6ekduxga4dsttz4xb7Q347hcqmdgYOK//LS+iHp
DEBUG: X-OPS-AUTHORIZATION-4: 80iccmDIawVVh2/CTS2a32W/Ida83yFrnwuWWR1TqKwUC4J4JqPJtR/i+eSy
DEBUG: X-OPS-AUTHORIZATION-5: P+A0NShCfvYwxm7UVZvdnN3r1Mcd/FjKpU51QSr2iwmqVP5a6lTKzty38J5D
DEBUG: X-OPS-AUTHORIZATION-6: 8ECUHUFqG/Ggh0tJYDq18gdNx5f59vmFDC9yOORalw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 12:32:58 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 135
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Node node1 exists, overwrite it? (Y/N) y
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating DELETE to https://api.chef.io/organizations/infosystem/nodes/node1
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:37Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: eShDAQwfEYrX0pAofxnj9nmdvw3fAPJYcwqqEcSCJd7zt0bb349Olv5JZLcY
DEBUG: X-OPS-AUTHORIZATION-2: WIIy+8imsfwkVFt9K7XqrYkyScMYyMI9A8BGVz/aeZICsDf4cKrp8JkrC32G
DEBUG: X-OPS-AUTHORIZATION-3: Z2Ht1IrJSMk+uJEimjUIie8rDqPa+N7MyuRar0syStCMWVXRnVA//9X1qZ3e
DEBUG: X-OPS-AUTHORIZATION-4: jG8GlL8CdoHjXke330SdNy18+pV6cSy9qnqZlW86cNWSCMoAZMU4Pr1iy6o+
DEBUG: X-OPS-AUTHORIZATION-5: hhPY8trv/R3MJiVj4wn4Pt2g1Y+Xq1v/QptQCFrEA9zPX2AbG2S1t2MeVvZ9
DEBUG: X-OPS-AUTHORIZATION-6: iOP150RcA/IzXZlNmQUg1xvZS7OwfRnei2kHzob8sw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 12:33:03 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 135
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/clients/node1
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:40Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: m+0QC1Jz1rf6xKHAHmGyqcqdk5GOfO9fUYWz7sieGefGplooVYqmX6eRa/5s
DEBUG: X-OPS-AUTHORIZATION-2: hncVcaN549xTRMSx/A5EDJKW+lmLMfx+LG5MzEAYvjrM+Le3uDlZlK0V3e8C
DEBUG: X-OPS-AUTHORIZATION-3: /nMuxSWO0jLsErCsR1Hy31tK/D+RoINaYcpXhhWeWBxipJVzPW2Ab8Smq8kk
DEBUG: X-OPS-AUTHORIZATION-4: yhKSf4jMxchcB/0qAs8OF9SeQFzUUv0WphXRm1HZwubyLwlHRqWd/LanCd0W
DEBUG: X-OPS-AUTHORIZATION-5: /y8TY3rUabxWkkvOOlmcR7Uaqbtr165r6Re640MYykkKO3mMeD+EPW8Q3odD
DEBUG: X-OPS-AUTHORIZATION-6: w3/wLu+9zok5C7pkAn7EH4WMn5hLXzHWIh22Sqmn8Q==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 12:33:04 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 115
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Client node1 exists, overwrite it? (Y/N) y
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating DELETE to https://api.chef.io/organizations/infosystem/clients/node1
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:45Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: mkLd6lAwVd4sV8VHYGoOeq+FTh23f6kL5ujwEsigGCGd2ei34gaKn4xdncBS
DEBUG: X-OPS-AUTHORIZATION-2: NXnh7EOp4HhMTZfJs9+SGuV64KgJb8wcAZFr0OIp5PGV0GPn0lXLsU7dhYAX
DEBUG: X-OPS-AUTHORIZATION-3: ACw42Z8ZWMGNiHIw9KUJkVWVAiTwiQcErPQKMQ0WTy+tpA/qACQQhIzrUmqw
DEBUG: X-OPS-AUTHORIZATION-4: 3iKXmZMdrQ0J1BI1x8zhgD2n9jVfYZe4N41IYfo5Z6xSSu+TaBYrlrHCil8e
DEBUG: X-OPS-AUTHORIZATION-5: 1muo9G3u8EYIjw8e+PJtL+JZ0LLJRY/pY1VPnJFww+CxPHQAiJIGnTJ8W8Xn
DEBUG: X-OPS-AUTHORIZATION-6: moSwG5Omql4pIVVhNBtxgIB/Ld2I8rSxNEiQRPrJuw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 12:33:10 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 115
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new client for node1
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/clients
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:47Z
DEBUG: X-OPS-CONTENT-HASH: uS+9ddF/ppMJ8xwynRQUNT/Mmi0=
DEBUG: X-OPS-AUTHORIZATION-1: qGKLQcD4euFxpiwrVNGhw1jzV8f8V2OTyEgZWbGvx4KcGQEZyqOrWcrF4CPt
DEBUG: X-OPS-AUTHORIZATION-2: /F2t3CVj8vZ+qPwQ+EvnV1U05y0USpEA9QgkbnOS6Dgfdw6ZJIn4FrBeYjM3
DEBUG: X-OPS-AUTHORIZATION-3: u5Y7DFgyTG6hYAYqrpzlfZYBGmlFExcViT+cteBxZSyxETU8AZzyk92utqxD
DEBUG: X-OPS-AUTHORIZATION-4: GVjhXsRGKXS1U4DKUD00kzfMqXIW3cWt3h+aDXWC6BAGm4r+dJvJYqkjP8/v
DEBUG: X-OPS-AUTHORIZATION-5: VQ764qFza9v1h94Xol5qFaPwthb83jYTPr90exbiMMV7yg1GmMc4d9wwZJtU
DEBUG: X-OPS-AUTHORIZATION-6: qkalpWmH9IUwy/vEhH1mzPRWzv211DvuUJkN0/UkJA==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: Content-Length: 506
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 12:33:15 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/clients/node1
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 683
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new node for node1
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as node1
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating PUT to https://api.chef.io/organizations/infosystem/nodes/node1
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: node1
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:51Z
DEBUG: X-OPS-CONTENT-HASH: hH5zQZ69No8e3OQUpAQOrSZKC0s=
DEBUG: X-OPS-AUTHORIZATION-1: lSqS724cKlxrU+ArM7T6tdKj7D7fx6RnYBTsGQmd2zm7HmkKr26a3rr2rp0p
DEBUG: X-OPS-AUTHORIZATION-2: ZJYUAyxaUaZN/GrUhSuSbCU85Sm36ca7RBH49myGuE3Jj6T52em8oiafkMfR
DEBUG: X-OPS-AUTHORIZATION-3: gQpmHj/9qJF82R4hInhrmdBDYYJjId4AF+MXo71DNdJEXvn58Joo4hZwfLj/
DEBUG: X-OPS-AUTHORIZATION-4: /wy5DnSW07N8Q+XFC/9HcUgakQZ88QknS54JNgPQfXaJUF5q1eIMyOrz/Ug/
DEBUG: X-OPS-AUTHORIZATION-5: vnue16AP1Y2SH3GZi6uYhrYWKcVQZ3l1D+G4ba8fmm5wroa//bz6HY5HeCe1
DEBUG: X-OPS-AUTHORIZATION-6: TEtVx4epyGlcVR9MHSMht3meED8S/QehIrTMmU/Csg==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: Content-Length: 159
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: date: Sun, 21 Aug 2016 12:33:16 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 36
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'node1' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: ---- HTTP Request Body ----
DEBUG: {"name":"node1","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default"
:{},"override":{},"run_list":[]}
DEBUG: ---- End HTTP Request Body ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as node1
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/nodes
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: node1
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T12:34:53Z
DEBUG: X-OPS-CONTENT-HASH: hH5zQZ69No8e3OQUpAQOrSZKC0s=
DEBUG: X-OPS-AUTHORIZATION-1: QvMgd/JB0alQgDhP0G/ce2mfuCoW2gTYDxXp03GIOlFCVfF3GZ3tjPz0pRsW
DEBUG: X-OPS-AUTHORIZATION-2: pDKP/aQ/Sxi+62c945g0d2awJTz/IHZANuEMDo0tH8wy5K2NdkBPqlBAawGJ
DEBUG: X-OPS-AUTHORIZATION-3: I15dnFog7WQ+ZiJ/FEDVnMICJ5Rk7U57r3cOlWoMcabepoSBv6TOXtOf7uBf
DEBUG: X-OPS-AUTHORIZATION-4: 6yYueFTIWANFgdIkGZyOZvpAKBw7zzBnYT2OXm0y6HTUDaG30485L8FaJDVT
DEBUG: X-OPS-AUTHORIZATION-5: MGY7w04DD0bCuc0Jf81o14f+qtnJYDXBdPdAFoZfaVLtOgBKL+uyM1YFI82I
DEBUG: X-OPS-AUTHORIZATION-6: gLfLqblYVbSIIb6uI3kId5B+ctk/bvlc3CSxLLUa4Q==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 09ed8fba-4594-415f-b8f6-5c381115a021
DEBUG: Content-Length: 159
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 12:33:20 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/nodes/node1
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 66
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Connecting to ec2-54-209-72-121.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/
knife/bootstrap/templates
DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/knife/
bootstrap/templates
DEBUG: Adding ec2-54-209-72-121.compute-1.amazonaws.com
DEBUG: establishing connection to ec2-54-209-72-121.compute-1.amazonaws.com:22
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: local is SSH-2.0-Ruby/Net::SSH_3.2.0 i386-mingw32' DEBUG: remote isSSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7'
INFO: sending KEXINIT
DEBUG: queueing packet nr 0 type 20 len 1684
DEBUG: sent 1688 bytes
DEBUG: read 1460 bytes
DEBUG: read 188 bytes
DEBUG: received packet nr 0 type 20 len 1644
INFO: got KEXINIT from server
INFO: negotiating algorithms
DEBUG: negotiated:

  • kex: diffie-hellman-group-exchange-sha1
  • host_key: ecdsa-sha2-nistp256
  • encryption_server: aes128-cbc
  • encryption_client: aes128-cbc
  • hmac_client: hmac-sha1
  • hmac_server: hmac-sha1
  • compression_client: none
  • compression_server: none
  • language_client:
  • language_server:
    DEBUG: exchanging keys
    DEBUG: queueing packet nr 1 type 34 len 20
    DEBUG: sent 24 bytes
    DEBUG: read 152 bytes
    DEBUG: received packet nr 1 type 31 len 148
    DEBUG: queueing packet nr 2 type 32 len 140
    DEBUG: sent 144 bytes
    DEBUG: read 376 bytes
    DEBUG: received packet nr 2 type 33 len 356
    DEBUG: queueing packet nr 3 type 21 len 20
    DEBUG: sent 24 bytes
    DEBUG: received packet nr 3 type 21 len 12
    DEBUG: beginning authentication of administrator' DEBUG: queueing packet nr 4 type 5 len 28 DEBUG: sent 52 bytes DEBUG: read 52 bytes DEBUG: received packet nr 4 type 6 len 28 DEBUG: trying none DEBUG: queueing packet nr 5 type 50 len 60 DEBUG: sent 84 bytes DEBUG: read 52 bytes DEBUG: received packet nr 5 type 51 len 28 DEBUG: allowed methods: publickey DEBUG: none failed DEBUG: trying publickey DEBUG: connecting to ssh-agent ERROR: could not connect to ssh-agent ERROR: all authorization methods failed (tried none, publickey) DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/ knife/bootstrap/templates DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/knife/ bootstrap/templates Failed to authenticate administrator - trying password auth DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/ knife/bootstrap/templates DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/knife/ bootstrap/templates Enter your password: DEBUG: Adding ec2-54-209-72-121.compute-1.amazonaws.com DEBUG: establishing connection to ec2-54-209-72-121.compute-1.amazonaws.com:22 DEBUG: connection established INFO: negotiating protocol version DEBUG: local isSSH-2.0-Ruby/Net::SSH_3.2.0 i386-mingw32'
    DEBUG: remote is `SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7'
    INFO: sending KEXINIT
    DEBUG: queueing packet nr 0 type 20 len 1684
    DEBUG: sent 1688 bytes
    DEBUG: read 1460 bytes
    DEBUG: read 188 bytes
    DEBUG: received packet nr 0 type 20 len 1644
    INFO: got KEXINIT from server
    INFO: negotiating algorithms
    DEBUG: negotiated:
  • kex: diffie-hellman-group-exchange-sha1
  • host_key: ecdsa-sha2-nistp256
  • encryption_server: aes128-cbc
  • encryption_client: aes128-cbc
  • hmac_client: hmac-sha1
  • hmac_server: hmac-sha1
  • compression_client: none
  • compression_server: none
  • language_client:
  • language_server:
    DEBUG: exchanging keys
    DEBUG: queueing packet nr 1 type 34 len 20
    DEBUG: sent 24 bytes
    DEBUG: read 152 bytes
    DEBUG: received packet nr 1 type 31 len 148
    DEBUG: queueing packet nr 2 type 32 len 140
    DEBUG: sent 144 bytes
    DEBUG: read 376 bytes
    DEBUG: received packet nr 2 type 33 len 356
    DEBUG: queueing packet nr 3 type 21 len 20
    DEBUG: sent 24 bytes
    DEBUG: received packet nr 3 type 21 len 12
    DEBUG: beginning authentication of administrator' DEBUG: queueing packet nr 4 type 5 len 28 DEBUG: sent 52 bytes DEBUG: read 52 bytes DEBUG: received packet nr 4 type 6 len 28 DEBUG: trying none DEBUG: queueing packet nr 5 type 50 len 60 DEBUG: sent 84 bytes DEBUG: read 52 bytes DEBUG: received packet nr 5 type 51 len 28 DEBUG: allowed methods: publickey DEBUG: none failed DEBUG: trying publickey DEBUG: connecting to ssh-agent ERROR: could not connect to ssh-agent ERROR: all authorization methods failed (tried none, publickey) C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:194:inrescue in new_session': Au
    thentication failed for user administrator@ec2-54-209-72-121.compute-1.amazonaws.com@ec2-54-209-72-121.compute-1.amazonaws.com (Net::S
    SH::AuthenticationFailed)
    from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:183:in new_session' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488:innext_session
    '
    from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:in session' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_actions.rb:36:inblock
    (2 levels) in sessions'
    from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in call' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:inblock in crea
    te_with_logging_context'

@mwrock
Copy link
Member

mwrock commented Aug 21, 2016

I just noticed you are using a username of administrator. Are you trying to bootstrap a windows node? If so then you likely want to usr WinRM and not ssh. For windows nodes, you want to use the knife-windows gem and run knife bootstrap windows winrm ec2-54-209-72-121.compute-1.amazonaws.com -x administrator –P ******** -N node1

@mwrock
Copy link
Member

mwrock commented Aug 21, 2016

Oh and to answer your question about the path, you'd want to permanently add the new path via

 $new_path = "C:/Program Files/Git/usr/bin;" + [Environment]::GetEnvironmentVariable("path", "User")
[Environment]::SetEnvironmentVariable("path", $new_path, "User")

@Dev393
Copy link

Dev393 commented Aug 21, 2016

Hi Matt,

My bad the user name which i had given in the past mail was wrong its ubuntu,for windows instance i am able to do bootstrap in AWS.
PS C:\Users\dchakraborty> ssh ubuntu@ec2-52-207-247-0.compute-1.amazonaws.com
Permission denied (publickey).
The above error is due to .pem file which file be downloaded while launching the instance from AWS?

Please refer the below logs and suggest,Thanks for the path info.

PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-52-207-247-0.compute-1.amazonaws.com -x ubuntu -p ******** -N module -VV

INFO: Using configuration from C:/Users/dchakraborty/chef-repo/.chef/knife.rb
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/nodes/module
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:31:41Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: vdXZneMHNLqQT3PFOUq6lYIJgad1ozA5B+eqE1LZuEBe7AWCrMQ/ZEctsNEw
DEBUG: X-OPS-AUTHORIZATION-2: 7oWUDUJQDV1wn/wuumAo5ZObvcbi6sj7nOAmMDPJSMpGt2kxnyJ8afgR5oyZ
DEBUG: X-OPS-AUTHORIZATION-3: mUiuZesOifLwe6M+xG/guYml+qwPdkhjSJTlCA/UShMXFFJtUjYP5pdZrNLZ
DEBUG: X-OPS-AUTHORIZATION-4: aOJS4D+quMA96s+TGq2qsK8rvf+eWt7i3Okt0013Kwnyppl4aI+m+aEnfZCF
DEBUG: X-OPS-AUTHORIZATION-5: wG/fdb3rV9CKtsYjwmRHs18eUCwCJWroLHzR1Wg6izV5zLA4tNWPA6BjD8su
DEBUG: X-OPS-AUTHORIZATION-6: qwgQN/yhVPUXNEwHdV0QWry8Knh6ATtlm7y9N6VTJQ==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 17:30:11 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 136
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Node module exists, overwrite it? (Y/N) y
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating DELETE to https://api.chef.io/organizations/infosystem/nodes/module
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:31:49Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: EGpC64PFWTE3j6QmWhLroa7ZKzflcYmeVPzf8NCEipNKahLQXlZ6NF8W3ECe
DEBUG: X-OPS-AUTHORIZATION-2: 21w4N2KG/8oPqfHi1tKcH53hah++b3fsVDUkXXQSwSMOig/PwvkkcCxefWJH
DEBUG: X-OPS-AUTHORIZATION-3: nSPewS/Ok1eBPbZE4wwDrPIfM4UJeh5xoYqCiS1K87Q+upl2uNmUO2GIUL1C
DEBUG: X-OPS-AUTHORIZATION-4: rT02S3L+AShst021GUho1dpOZ5358XJNC6Z/in+RRsIXgEgFgQvA4jpzhzrT
DEBUG: X-OPS-AUTHORIZATION-5: v7KAo9u77CsVKMvYnoxm6vPPrs5oTIIqAtLv77rDdk0bbrrupwlHkepacjNA
DEBUG: X-OPS-AUTHORIZATION-6: IJUveHUe2GDQfQNX2OLaA0qTu0EaFlYURNYH9gcd3A==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 17:30:16 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 136
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/clients/module
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:31:51Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: pgZJNq3bM+sYR8oc+HDmVwOeVQlQtZiV/cFEAkhSmv7YtNs/pDNt1a+BFJ/9
DEBUG: X-OPS-AUTHORIZATION-2: Ug7K7DSGtjpvF6mfkpCDZs5quPgri3M/HMUdt0AEYdTkaK5dINEcsGTwys3v
DEBUG: X-OPS-AUTHORIZATION-3: w7yu+QKmO0CNJkm0Sr6BGqzSrICiRN44lCzihdcRTq7mskuOR8q0dXFTlpRH
DEBUG: X-OPS-AUTHORIZATION-4: riacaLVOl+6/tU+rVG54U0BQPgjb89hJdIcww7PsHBsZR/ep3X/GZBZnLAHU
DEBUG: X-OPS-AUTHORIZATION-5: I4Kz9NWGYSLpwrcEnpHTtL9mAjuKVaxtadGOHmEE3KvyHDO4O8q/EqQ7q3yp
DEBUG: X-OPS-AUTHORIZATION-6: gHddWMeorqldXTi/lc5DK+kXU9VN/pYt7rQCDsf0ww==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 17:30:17 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 115
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Client module exists, overwrite it? (Y/N) y
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating DELETE to https://api.chef.io/organizations/infosystem/clients/module
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:31:56Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: sScZlI02aSy2tm2/lykD+BkwA6VnwIUKxPRh6KQcpA5URmnc1cMeq9XO7yG7
DEBUG: X-OPS-AUTHORIZATION-2: oz1ngF/YQpPuJalAYyi+50rdHVDF+cWF5UZ0E6/YdVyEdgtEHO+BRs/ipQV7
DEBUG: X-OPS-AUTHORIZATION-3: PmSnDpyfgaUXEhB0ccWAmne1qLBAcjxvJKJLaIlVEZ1s0F4mczmMqMwc9zvA
DEBUG: X-OPS-AUTHORIZATION-4: jiMH6UgbRkw6p3d/CGdvSswYSctriPHtGmZXJqe77aXqVYIt86j2cJ842uOm
DEBUG: X-OPS-AUTHORIZATION-5: XkQ6VUFOx0NyUJbheojesIQONOlr0Z8rHJ+SekLCHVJnhK6V7lsEJTpAnWa0
DEBUG: X-OPS-AUTHORIZATION-6: W0dVKg97yrBkUdLLPUPl+WSTwgOFFvh+sKkswppnWw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 200 OK
DEBUG: content-encoding: gzip
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 17:30:24 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 115
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Decompressing gzip response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new client for module
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/clients
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:32:00Z
DEBUG: X-OPS-CONTENT-HASH: 11cTf37IpAzxAF+a7EzQVxJKuPc=
DEBUG: X-OPS-AUTHORIZATION-1: G/dHrdbQ1ZnPruSOwfJWJwdSFHXLRX+7+PfMlOF70aBTSA8YxfFl/UbSpawn
DEBUG: X-OPS-AUTHORIZATION-2: nIqktMYrtaNofYvaUhnSCkPUUcM91MSH8CwFm/Q2Q5maZ1S+m6+2IStabO6U
DEBUG: X-OPS-AUTHORIZATION-3: pAOr3mTPAeiW9WqMF3+d1cTgFnrBSQ54LBsg+9c9jPjRO4GphCyYFlQmAlOh
DEBUG: X-OPS-AUTHORIZATION-4: WtJG1KEI+yunWlOkSdNV7cHME3sZwevvIKDGlCOphRSGOLoau3fLUZ6+aKpK
DEBUG: X-OPS-AUTHORIZATION-5: 37rxAV8LfrB7zw9PApjDDnCBFcXzksLMnDqK6B1UvovHTMLlYrCsBe4UOeBu
DEBUG: X-OPS-AUTHORIZATION-6: 5P8HS6PHy1UHw/RlmCJJ3Dgi9U7dwXAZX+wFIwgnUA==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: Content-Length: 507
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 17:30:30 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/clients/module
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 685
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new node for module
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as module
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating PUT to https://api.chef.io/organizations/infosystem/nodes/module
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: module
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:32:06Z
DEBUG: X-OPS-CONTENT-HASH: Jr7yJYDPS+j1+x9GsYFs1HcGIO0=
DEBUG: X-OPS-AUTHORIZATION-1: AU+fqQA4PzsekdzQ/m2U4MyH03pnNpogkqbU6kfrCa8zJX6BXH/BYErtY5Ym
DEBUG: X-OPS-AUTHORIZATION-2: 92g+4xJZKu6dhwnPfV71a2HCyqYU6mv6JJuytM/f53UziJZ9pwF8Kturr5nJ
DEBUG: X-OPS-AUTHORIZATION-3: ikeEddlQKJeZh7BZV/QG/SjwHApARlFhwtjbSkF04oDLuCetQJK1OLTFB13I
DEBUG: X-OPS-AUTHORIZATION-4: BhQz3bYnxjjBx/6LVGI3q74yjGLw1ICG2vp2EnbUIFQ+LqnEF5UvHlKq1faW
DEBUG: X-OPS-AUTHORIZATION-5: Sltz97ekTuD0N/mwkC8ZHdWLqdEoQ2/VvImSFFInMfvQlg02hax4ZTss+c2k
DEBUG: X-OPS-AUTHORIZATION-6: 0xXMsn/Zuo4m0RhhL5J4+QDz0to5wupYMfDoRUkKAA==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: Content-Length: 160
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: date: Sun, 21 Aug 2016 17:30:32 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 37
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'module' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: ---- HTTP Request Body ----
DEBUG: {"name":"module","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","default
":{},"override":{},"run_list":[]}
DEBUG: ---- End HTTP Request Body ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as module
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/nodes
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: module
DEBUG: X-OPS-TIMESTAMP: 2016-08-21T17:32:07Z
DEBUG: X-OPS-CONTENT-HASH: Jr7yJYDPS+j1+x9GsYFs1HcGIO0=
DEBUG: X-OPS-AUTHORIZATION-1: gOiNdIb5HQc5IhhBanYgDaleyKGurN+D9s2o2R9aGQDxiCgF1VLS8de1topu
DEBUG: X-OPS-AUTHORIZATION-2: ZiLKoS0uF9rTe1tsEAGRA9ZTmQREpzsJwaaLEuuaiKPWX/GxAoeiO7tp699P
DEBUG: X-OPS-AUTHORIZATION-3: nTivDVDAMHAizBV0BbIGtoW0/q9S+4NFbDyiXSnO3JUaLVOZbnt8tAtPq8UA
DEBUG: X-OPS-AUTHORIZATION-4: DsybKZaqOfEMnqZZZHWf7GEM64VzNylsib03xqb3uEKZcw5zVZ7J9KdfyTpD
DEBUG: X-OPS-AUTHORIZATION-5: BClqmW1vw5desIeRqj776BmtmEAHJn7qQx5cWAWt9+uQNCbWLukGTgauLBR2
DEBUG: X-OPS-AUTHORIZATION-6: rnujKG7Dgdjd7TsyGCkHUdguCGTP5n9jW4lnZO8B1A==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 934616f0-3eee-4a0d-84fb-ec9a5bbc1519
DEBUG: Content-Length: 160
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Sun, 21 Aug 2016 17:30:38 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/nodes/module
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 67
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Connecting to ec2-52-207-247-0.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/
knife/bootstrap/templates
DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/knife/
bootstrap/templates
DEBUG: Adding ec2-52-207-247-0.compute-1.amazonaws.com
DEBUG: establishing connection to ec2-52-207-247-0.compute-1.amazonaws.com:0
C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:65:in connect': The requested address is not valid in its context. - connect(2) f or 52.207.247.0 (Errno::EADDRNOTAVAIL) from C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:65:inconnect_internal'
from C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:140:in connect' from C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:338:inblock in tcp'
from C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:232:in each' from C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:232:inforeach'
from C:/opscode/chefdk/embedded/lib/ruby/2.1.0/socket.rb:328:in tcp' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-3.2.0/lib/net/ssh/transport/session.rb:70:ininitialize'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-3.2.0/lib/net/ssh.rb:232:in new' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-3.2.0/lib/net/ssh.rb:232:instart'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:186:in new_session' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session.rb:488:innext_session
'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/server.rb:138:in session' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/net-ssh-multi-1.2.1/lib/net/ssh/multi/session_actions.rb:36:inblock
(2 levels) in sessions'
from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:in call' from C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/logging-2.1.0/lib/logging/diagnostic_context.rb:450:inblock in crea
te_with_logging_context'
PS C:\Users\dchakraborty\chef-repo> cd..
PS C:\Users\dchakraborty> ssh ubuntu@ec2-52-207-247-0.compute-1.amazonaws.com

@mwrock
Copy link
Member

mwrock commented Aug 22, 2016

with a .pem private key use the -i parameter to point to that file. both the ssh and knife bootstrap commands expose that parameter.

@Dev393
Copy link

Dev393 commented Aug 22, 2016

Could you please share me the full cmd with -i parameter?Do i need to append my .pem file path to c:\Program Files\Git\Usr\bin here,currently my .pem file is in download location.

@mwrock
Copy link
Member

mwrock commented Aug 22, 2016

It should be knife bootstrap ec2-52-207-247-0.compute-1.amazonaws.com -x ubuntu -i 'absolute_path/to/your.pem' -N module

@Dev393
Copy link

Dev393 commented Aug 22, 2016

Hi Matt,

Now its working but i can not take this node into my hosted chef where as windows node i can.Please refer to my attach.

I can not see any errors.

PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-54-86-112-241.compute-1.amazonaws.com -x ubuntu -i C:\Users\dchakraborty\Dow
oads\DEV000.pem -N Node2 -VV
INFO: Using configuration from C:/Users/dchakraborty/chef-repo/.chef/knife.rb
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/nodes/Node2
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-22T08:45:32Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: mR3uk0gieJD5a5Ui47PSfgtBIk/cJ+aeejbyABFXboXbX1ONrbgz5Dh+JaHz
DEBUG: X-OPS-AUTHORIZATION-2: lQWG3dCzEDPBqRYKvEcu3jXUsfDjFEQvWLg+yuqntBYGYz55qGBgIcBM4PlX
DEBUG: X-OPS-AUTHORIZATION-3: GXgBTrOPEOxF4aWF3iDxRnd8vVrN19pH7Sqej6iIl6yhvNpXRYgkUzWJ1pr5
DEBUG: X-OPS-AUTHORIZATION-4: BeBRVmp6bVD2cH+XTCLUREgNWEiA5EUmVgkSRLZWJhWuZTdYHI6ZMqlfKUk/
DEBUG: X-OPS-AUTHORIZATION-5: W9e6wbGlqYJWpMaOarVQatMrJQRlQ+KZpL/Xv+jC1z/6gWyRAV0mmBl/BZZG
DEBUG: X-OPS-AUTHORIZATION-6: a4MVBlTuXr4fgdxmNlB5X5rsNqZdrV0jNhalcYm/gw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 0a849b3c-a571-4476-8249-e4ca530e7539
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: date: Mon, 22 Aug 2016 08:44:04 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 36
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'Node2' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/clients/Node2
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-22T08:45:39Z
DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
DEBUG: X-OPS-AUTHORIZATION-1: cqWG2x4ybu3qEGrW+Fit3MVO4d6iXiELCI0Lv9TvgMZR8vtq0uRoRR1WiMf7
DEBUG: X-OPS-AUTHORIZATION-2: DRh8D2W16S4oUhNxNdev8R1lZ5ex6IRHfPIZ4wh61o9e+Y6l/Yw3EoZuiXmp
DEBUG: X-OPS-AUTHORIZATION-3: jxTzEAcmrtlM2VEw7tOH6RdzMlp6POJsk9dPc6N39r0DSHx6hFeoWVeBYRPt
DEBUG: X-OPS-AUTHORIZATION-4: I5LTIJbfzWRKW0B6KG7rG8ZN2XhEcE6Rh8PPeUPIsLWv/iIoDv6j37Kr8EAM
DEBUG: X-OPS-AUTHORIZATION-5: BiEZm1wYnbvMz2WynZEAw0TAvw0UvFCaW1hU4LsgQc1E30xzYsZGo06NgI+o
DEBUG: X-OPS-AUTHORIZATION-6: B2Fq9A6sCwWbZ+eWdDhChCjvaBdwbQFgSW7Owr4xJA==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 0a849b3c-a571-4476-8249-e4ca530e7539
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: date: Mon, 22 Aug 2016 08:44:05 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 38
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["Cannot load client Node2"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
Creating new client for Node2
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as dev911
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/clients
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: dev911
DEBUG: X-OPS-TIMESTAMP: 2016-08-22T08:45:40Z
DEBUG: X-OPS-CONTENT-HASH: FDk5x1GU7xHfXEzCcijPMVBMNe4=
DEBUG: X-OPS-AUTHORIZATION-1: TdPtcNysEWnRs+X+PvM3zsuqLoBPWQ7aqZWeLPwihA2kfCbIyWqIS6TfNI9+
DEBUG: X-OPS-AUTHORIZATION-2: +JZ8w8pUZvnKkMSPqvf+LVZzN6QoC66ZMnmOV5d+fjeVewZSJStfbwr/+ICN
DEBUG: X-OPS-AUTHORIZATION-3: P5SbrK/5lxPRfShVDQT4rE3gHxuCqR8GdOZtVy+DLa/WDk1CWgpqLL3TVpmb
DEBUG: X-OPS-AUTHORIZATION-4: trKc+s6YyBQ5MgTpDrRyW1G5sqSG7yZ4DsScv1J100xDpgRIRm4fIRqW1egi
DEBUG: X-OPS-AUTHORIZATION-5: 2o69I2FCzXUtLY1juBB2GSPjG2h8kPNdWklXh3uMvK47yzx1cWEAIAaPw5PU
DEBUG: X-OPS-AUTHORIZATION-6: zeGud5xKM1AD7eqcfJatnJhFWCNUlLhlZximmOzmBw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 0a849b3c-a571-4476-8249-e4ca530e7539
DEBUG: Content-Length: 506
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Mon, 22 Aug 2016 08:44:07 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/clients/Node2
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 683
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Creating new node for Node2
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as Node2
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating PUT to https://api.chef.io/organizations/infosystem/nodes/Node2
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: Node2
DEBUG: X-OPS-TIMESTAMP: 2016-08-22T08:45:41Z
DEBUG: X-OPS-CONTENT-HASH: NTzVatq4RzJxBFM+bV55wjG6waM=
DEBUG: X-OPS-AUTHORIZATION-1: rjJN57vXn2eTBnZrH9XL3qSCjRmEnTI7LGoe/1bT0pIhybZUMTH8dWa7wEQZ
DEBUG: X-OPS-AUTHORIZATION-2: j83u0fm5RfYKjVNDqaP+XUCn9vLSH9lX6H5nTY5TSFZMSl/0lJ75vgJkZl7a
DEBUG: X-OPS-AUTHORIZATION-3: YVZv08Rv8MY2b1WhqyntBzH/k//vLlCB9YJnfXwLtD6mbNHwhZxMLZmZf9xd
DEBUG: X-OPS-AUTHORIZATION-4: LufF09kw/NAxar7WTmmxDRO9oCLN5xTBPrqX1bT+/bCdfJ/AGIGpSn+65EJW
DEBUG: X-OPS-AUTHORIZATION-5: jN5D97blJ2MRL3FdOpyDPT4D1YNILj6zgGhS8nJLdmnOJD50WBm122U51XmK
DEBUG: X-OPS-AUTHORIZATION-6: WnBnAkLUNOQmpIGCrLBAB8YC4V59DaamfAfk2TDcxw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 0a849b3c-a571-4476-8249-e4ca530e7539
DEBUG: Content-Length: 159
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 404 Object Not Found
DEBUG: date: Mon, 22 Aug 2016 08:44:08 GMT
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 36
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: ---- HTTP Response Body ----
DEBUG: {"error":["node 'Node2' not found"]}
DEBUG: ---- End HTTP Response Body -----
DEBUG: ---- HTTP Request Body ----
DEBUG: {"name":"Node2","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","defaul
:{},"override":{},"run_list":[]}
DEBUG: ---- End HTTP Request Body ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Expected JSON response, but got content-type ''
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
INFO: HTTP Request Returned 404 Object Not Found: error
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
DEBUG: Signing the request as Node2
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/nodes
DEBUG: ---- HTTP Request Header Data: ----
DEBUG: Content-Type: application/json
DEBUG: Accept: application/json
DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
DEBUG: X-Ops-Server-API-Version: 1
DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
DEBUG: X-OPS-USERID: Node2
DEBUG: X-OPS-TIMESTAMP: 2016-08-22T08:45:43Z
DEBUG: X-OPS-CONTENT-HASH: NTzVatq4RzJxBFM+bV55wjG6waM=
DEBUG: X-OPS-AUTHORIZATION-1: dly3dta7dL0W7iQnAmDQ8vmPhmzK8AexZengN30hTgAFsDxzaIbsG2njNo7b
DEBUG: X-OPS-AUTHORIZATION-2: PvBNgss1O2UKJLIVpqUi2LUgANFoUnAENYOJFI0BGUZkb0s079nltRFlVNqW
DEBUG: X-OPS-AUTHORIZATION-3: ou0kl+T7Gbn+8WQXetX8PR4qOoz/i3Q8Yf929cJSRWZ6mPX7AFW0azSj9mtQ
DEBUG: X-OPS-AUTHORIZATION-4: q3ozU3ow5IiBWLqrb/05atv1IMV6yOasqIESaQ9QiqeIkhd3Xauh30kicW1P
DEBUG: X-OPS-AUTHORIZATION-5: 2qzaC5fI9C3S0IgtSm0N5kKh+h3rzUfNzpBUrMh/HforAbcfsQG+QoYJ36XG
DEBUG: X-OPS-AUTHORIZATION-6: r6iXzIqCNPtluRh7RdiMtKnJoFWGOOLI/XMvoCTnIw==
DEBUG: HOST: api.chef.io:443
DEBUG: X-REMOTE-REQUEST-ID: 0a849b3c-a571-4476-8249-e4ca530e7539
DEBUG: Content-Length: 159
DEBUG: ---- End HTTP Request Header Data ----
DEBUG: ---- HTTP Status and Header Data: ----
DEBUG: HTTP 1.1 201 Created
DEBUG: content-type: application/json
DEBUG: date: Mon, 22 Aug 2016 08:44:10 GMT
DEBUG: location: https://api.chef.io/organizations/infosystem/nodes/Node2
DEBUG: server: openresty/1.9.7.2
DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402
DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"}
DEBUG: content-length: 66
DEBUG: connection: Close
DEBUG: ---- End HTTP Status/Header Data ----
DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response
DEBUG: Content-Length validated correctly.
DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
Connecting to ec2-54-86-112-241.compute-1.amazonaws.com
DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/che
knife/bootstrap/templates
DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/knif
bootstrap/templates
DEBUG: Adding ec2-54-86-112-241.compute-1.amazonaws.com
DEBUG: establishing connection to ec2-54-86-112-241.compute-1.amazonaws.com:22
DEBUG: connection established
INFO: negotiating protocol version
DEBUG: local is SSH-2.0-Ruby/Net::SSH_3.2.0 i386-mingw32' DEBUG: remote isSSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7'
INFO: sending KEXINIT
DEBUG: queueing packet nr 0 type 20 len 1684
DEBUG: sent 1688 bytes
DEBUG: read 1380 bytes
DEBUG: read 268 bytes
DEBUG: received packet nr 0 type 20 len 1644
INFO: got KEXINIT from server
INFO: negotiating algorithms
DEBUG: negotiated:

  • kex: diffie-hellman-group-exchange-sha1
  • host_key: ecdsa-sha2-nistp256
  • encryption_server: aes128-cbc
  • encryption_client: aes128-cbc
  • hmac_client: hmac-sha1
  • hmac_server: hmac-sha1
  • compression_client: none
  • compression_server: none
  • language_client:
  • language_server:
    DEBUG: exchanging keys
    DEBUG: queueing packet nr 1 type 34 len 20
    DEBUG: sent 24 bytes
    DEBUG: read 152 bytes
    DEBUG: received packet nr 1 type 31 len 148
    DEBUG: queueing packet nr 2 type 32 len 140
    DEBUG: sent 144 bytes
    DEBUG: read 376 bytes
    DEBUG: received packet nr 2 type 33 len 356
    DEBUG: queueing packet nr 3 type 21 len 20
    DEBUG: sent 24 bytes
    DEBUG: received packet nr 3 type 21 len 12
    DEBUG: beginning authentication of ubuntu' DEBUG: queueing packet nr 4 type 5 len 28 DEBUG: sent 52 bytes DEBUG: read 52 bytes DEBUG: received packet nr 4 type 6 len 28 DEBUG: trying none DEBUG: queueing packet nr 5 type 50 len 44 DEBUG: sent 68 bytes DEBUG: read 52 bytes DEBUG: received packet nr 5 type 51 len 28 DEBUG: allowed methods: publickey DEBUG: none failed DEBUG: trying publickey DEBUG: connecting to ssh-agent ERROR: could not connect to ssh-agent DEBUG: trying publickey (bf:b7:c6:97:5e:ea:b2:ea:e0:08:98:5b:8b:76:d8:fc) DEBUG: queueing packet nr 6 type 50 len 348 DEBUG: sent 372 bytes DEBUG: read 324 bytes DEBUG: received packet nr 6 type 60 len 300 DEBUG: queueing packet nr 7 type 50 len 620 DEBUG: sent 644 bytes DEBUG: read 36 bytes DEBUG: received packet nr 7 type 52 len 12 DEBUG: publickey succeeded (bf:b7:c6:97:5e:ea:b2:ea:e0:08:98:5b:8b:76:d8:fc) DEBUG: queueing packet nr 8 type 90 len 44 DEBUG: sent 68 bytes DEBUG: read 52 bytes DEBUG: received packet nr 8 type 91 len 28 INFO: channel_open_confirmation: 0 0 0 32768 INFO: sending channel request "pty-req" DEBUG: queueing packet nr 9 type 98 len 60 INFO: sending channel request "exec" DEBUG: queueing packet nr 10 type 98 len 5868 DEBUG: sent 5976 bytes DEBUG: read 352 bytes DEBUG: received packet nr 9 type 93 len 28 INFO: channel_window_adjust: 0 +2097152 DEBUG: received packet nr 10 type 99 len 12 INFO: channel_success: 0 DEBUG: received packet nr 11 type 94 len 188 INFO: channel_data: 0 159b ec2-54-86-112-241.compute-1.amazonaws.com -----> Installing Chef Omnibus (-v 12) ec2-54-86-112-241.compute-1.amazonaws.com downloading https://omnitruck-direct.chef.io/chef/install.sh ec2-54-86-112-241.compute-1.amazonaws.com to file /tmp/install.sh.2015/install.sh DEBUG: received packet nr 12 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com trying wget... DEBUG: read 696 bytes DEBUG: received packet nr 13 type 94 len 44 INFO: channel_data: 0 19b DEBUG: received packet nr 14 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com ubuntu 14.04 x86_64 DEBUG: received packet nr 15 type 94 len 76 INFO: channel_data: 0 52b DEBUG: received packet nr 16 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Getting information for chef stable 12 for ubuntu... DEBUG: received packet nr 17 type 94 len 108 INFO: channel_data: 0 84b DEBUG: received packet nr 18 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com downloading https://www.chef.io/stable/chef/metadata?v=12&p=ubuntu&pv=14.04&m=x86_64 DEBUG: received packet nr 19 type 94 len 60 INFO: channel_data: 0 43b DEBUG: received packet nr 20 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com to file /tmp/install.sh.2019/metadata.txt DEBUG: received packet nr 21 type 94 len 28 INFO: channel_data: 0 14b DEBUG: received packet nr 22 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com trying wget... DEBUG: read 240 bytes DEBUG: read 52 bytes DEBUG: received packet nr 23 type 94 len 28 INFO: channel_data: 0 4b DEBUG: read 168 bytes DEBUG: received packet nr 24 type 94 len 28 INFO: channel_data: 0 1b DEBUG: received packet nr 25 type 94 len 60 INFO: channel_data: 0 40b DEBUG: read 52 bytes DEBUG: received packet nr 26 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com sha1 72a0a10ba5684d1e51590c1bc022bcb2e99348c6 DEBUG: read 52 bytes DEBUG: received packet nr 27 type 94 len 28 INFO: channel_data: 0 6b DEBUG: read 168 bytes DEBUG: received packet nr 28 type 94 len 28 INFO: channel_data: 0 1b DEBUG: read 52 bytes DEBUG: received packet nr 29 type 94 len 92 INFO: channel_data: 0 64b DEBUG: received packet nr 30 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com sha256 973c2bc9a84822158ba7c0c360d0a25c97420f293ccbe5d8019615a411460785 DEBUG: received packet nr 31 type 94 len 28 INFO: channel_data: 0 3b DEBUG: received packet nr 32 type 94 len 28 INFO: channel_data: 0 1b DEBUG: received packet nr 33 type 94 len 92 INFO: channel_data: 0 70b DEBUG: received packet nr 34 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com url https://packages.chef.io/stable/ubuntu/14.04/chef_12.13.37-1_amd64.deb DEBUG: read 784 bytes DEBUG: received packet nr 35 type 94 len 28 INFO: channel_data: 0 7b DEBUG: received packet nr 36 type 94 len 28 INFO: channel_data: 0 1b DEBUG: received packet nr 37 type 94 len 28 INFO: channel_data: 0 8b DEBUG: received packet nr 38 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com version 12.13.37 DEBUG: received packet nr 39 type 94 len 60 INFO: channel_data: 0 39b DEBUG: received packet nr 40 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com downloaded metadata file looks valid... DEBUG: received packet nr 41 type 94 len 108 INFO: channel_data: 0 82b DEBUG: received packet nr 42 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com downloading https://packages.chef.io/stable/ubuntu/14.04/chef_12.13.37-1_amd64.deb DEBUG: received packet nr 43 type 94 len 76 INFO: channel_data: 0 56b DEBUG: received packet nr 44 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com to file /tmp/install.sh.2019/chef_12.13.37-1_amd64.deb DEBUG: received packet nr 45 type 94 len 28 INFO: channel_data: 0 14b DEBUG: received packet nr 46 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com trying wget... DEBUG: read 136 bytes DEBUG: received packet nr 47 type 94 len 60 INFO: channel_data: 0 36b DEBUG: received packet nr 48 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Comparing checksum with sha256sum... DEBUG: read 240 bytes DEBUG: read 100 bytes DEBUG: received packet nr 49 type 94 len 44 INFO: channel_data: 0 18b DEBUG: received packet nr 50 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Installing chef 12 DEBUG: read 276 bytes DEBUG: received packet nr 51 type 94 len 44 INFO: channel_data: 0 23b DEBUG: received packet nr 52 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com installing with dpkg... DEBUG: received packet nr 53 type 94 len 76 INFO: channel_data: 0 61b DEBUG: received packet nr 54 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com dpkg: error: requested operation requires superuser privilege DEBUG: received packet nr 55 type 94 len 44 INFO: channel_data: 0 19b DEBUG: received packet nr 56 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Installation failed DEBUG: received packet nr 57 type 94 len 28 INFO: channel_data: 0 11b DEBUG: received packet nr 58 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Version: 12 DEBUG: read 2768 bytes DEBUG: received packet nr 59 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com DEBUG: received packet nr 60 type 94 len 92 INFO: channel_data: 0 72b DEBUG: received packet nr 61 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Please file a Bug Report at https://github.com/chef/omnitruck/issues/new DEBUG: received packet nr 62 type 94 len 108 INFO: channel_data: 0 88b DEBUG: received packet nr 63 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Alternatively, feel free to open a Support Ticket at https://www.chef.io/support/tickets DEBUG: received packet nr 64 type 94 len 92 INFO: channel_data: 0 71b DEBUG: received packet nr 65 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com More Chef support resources can be found at https://www.chef.io/support DEBUG: received packet nr 66 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com DEBUG: received packet nr 67 type 94 len 108 INFO: channel_data: 0 83b DEBUG: received packet nr 68 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Please include as many details about the problem as possible i.e., how to reproduce DEBUG: received packet nr 69 type 94 len 92 INFO: channel_data: 0 78b DEBUG: received packet nr 70 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com the problem (if possible), type of the Operating System and its version, etc., DEBUG: received packet nr 71 type 94 len 92 INFO: channel_data: 0 71b DEBUG: received packet nr 72 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com and any other relevant details that might help us with troubleshooting. DEBUG: received packet nr 73 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com DEBUG: received packet nr 74 type 94 len 28 INFO: channel_data: 0 7b DEBUG: received packet nr 75 type 94 len 60 INFO: channel_data: 0 39b DEBUG: received packet nr 76 type 94 len 44 INFO: channel_data: 0 19b DEBUG: received packet nr 77 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com mkdir: cannot create directory ‘/etc/chef’: Permission denied DEBUG: received packet nr 78 type 94 len 28 INFO: channel_data: 0 9b DEBUG: received packet nr 79 type 94 len 76 INFO: channel_data: 0 57b DEBUG: received packet nr 80 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com sh: 179: cannot create /etc/chef/client.pem: Directory nonexistent DEBUG: received packet nr 81 type 94 len 28 INFO: channel_data: 0 7b DEBUG: received packet nr 82 type 94 len 60 INFO: channel_data: 0 40b DEBUG: received packet nr 83 type 94 len 44 INFO: channel_data: 0 27b DEBUG: received packet nr 84 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com chmod: cannot access ‘/etc/chef/client.pem’: No such file or directory DEBUG: received packet nr 85 type 94 len 28 INFO: channel_data: 0 9b DEBUG: received packet nr 86 type 94 len 76 INFO: channel_data: 0 56b DEBUG: received packet nr 87 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com sh: 215: cannot create /etc/chef/client.rb: Directory nonexistent DEBUG: received packet nr 88 type 94 len 28 INFO: channel_data: 0 9b DEBUG: received packet nr 89 type 94 len 76 INFO: channel_data: 0 62b DEBUG: received packet nr 90 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com sh: 223: cannot create /etc/chef/first-boot.json: Directory nonexistent DEBUG: received packet nr 91 type 94 len 60 INFO: channel_data: 0 37b DEBUG: received packet nr 92 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com Starting the first Chef Client run... DEBUG: received packet nr 93 type 94 len 28 INFO: channel_data: 0 9b DEBUG: received packet nr 94 type 94 len 44 INFO: channel_data: 0 22b DEBUG: received packet nr 95 type 94 len 28 INFO: channel_data: 0 2b ec2-54-86-112-241.compute-1.amazonaws.com sh: 230: chef-client: not found DEBUG: received packet nr 96 type 96 len 12 INFO: channel_eof: 0 DEBUG: received packet nr 97 type 98 len 44 INFO: channel_request: 0 exit-status false DEBUG: received packet nr 98 type 97 len 12 INFO: channel_close: 0 DEBUG: queueing packet nr 11 type 97 len 28 INFO: ec2-54-86-112-241.compute-1.amazonaws.com delete channel 0 which closed locally and remotely INFO: closing remaining channels (0 open) PS C:\Users\dchakraborty\chef-repo> knife bootstrap ec2-54-86-112-241.compute-1.amazonaws.com -x ubuntu -i C:\Users\dchakraborty\Dow oads\DEV000.pem -N Module -VV INFO: Using configuration from C:/Users/dchakraborty/chef-repo/.chef/knife.rb DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as dev911 DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/nodes/Module DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-Ops-Server-API-Version: 1 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; DEBUG: X-OPS-USERID: dev911 DEBUG: X-OPS-TIMESTAMP: 2016-08-22T10:07:43Z DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk= DEBUG: X-OPS-AUTHORIZATION-1: Nm05VGDNCx36KVEHmCFeMFTNTEotzDUwc/hmYMw501z2x8RoPPP2DEQasTK/ DEBUG: X-OPS-AUTHORIZATION-2: aHCnxw59bH3sPY0iHfaw7cgripsrzxr5/I16IWFQ+22vAFb0qrgRHittElQ4 DEBUG: X-OPS-AUTHORIZATION-3: tKBhsZ1ghmSNV0uHkQv3/tLUFHcIwqVCpofCxu5ABUPPvXdg2oCwYm5ou7ej DEBUG: X-OPS-AUTHORIZATION-4: +NqSHaOBoG1bJJEqYlJA1XDVSSDHGMgNt4l0FKkji/yXl0uAGPn71PzncQmY DEBUG: X-OPS-AUTHORIZATION-5: 1/Rkvh71ouiq6AVQTeo2AnDEH010U3vGGXli6hnwSJL/qsNkORlXisjBSCO7 DEBUG: X-OPS-AUTHORIZATION-6: Crol1gCZf1hq9TTsMm0qJ/KP6l8HhXPm3JlKQj7YuA== DEBUG: HOST: api.chef.io:443 DEBUG: X-REMOTE-REQUEST-ID: 2c651610-9665-45a7-a634-996f4fbd544b DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 404 Object Not Found DEBUG: date: Mon, 22 Aug 2016 10:06:17 GMT DEBUG: server: openresty/1.9.7.2 DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402 DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} DEBUG: content-length: 37 DEBUG: connection: Close DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: ---- HTTP Response Body ---- DEBUG: {"error":["node 'Module' not found"]} DEBUG: ---- End HTTP Response Body ----- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Content-Length validated correctly. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response DEBUG: Expected JSON response, but got content-type '' DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response INFO: HTTP Request Returned 404 Object Not Found: error DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as dev911 DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating GET to https://api.chef.io/organizations/infosystem/clients/Module DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-Ops-Server-API-Version: 1 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; DEBUG: X-OPS-USERID: dev911 DEBUG: X-OPS-TIMESTAMP: 2016-08-22T10:07:53Z DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk= DEBUG: X-OPS-AUTHORIZATION-1: Evgmm3IGWFCZ11+SOVQi9chc1GiEDXU0ceLHJs9pekZnREfQb9c9uABC/VpY DEBUG: X-OPS-AUTHORIZATION-2: dGf0Yfe/wkG11gomQaQOEA7LwqoWRvDxCmY+0dubXlkmeSBm6KIK5i6nFD+P DEBUG: X-OPS-AUTHORIZATION-3: pjTe47/5lm/+K6MQbvFO3q8Ra2CimFNap3D0OKRL/ZDtvacUXM4GDWnC9rdr DEBUG: X-OPS-AUTHORIZATION-4: msFQwCabTrYAUGVg2mmNpQzm5vcYHtN0SHNRhzDWiAXQ0vsUveHCZdL1em8T DEBUG: X-OPS-AUTHORIZATION-5: fSSGR93IvlPu33CwkqNmUpziX+U9IekzqdQraeCU5xrr/3h2kAT73u+gEw/r DEBUG: X-OPS-AUTHORIZATION-6: pLFZnNzTwUXV8dBUSkONoNqH6PduQg235koVNK9f2A== DEBUG: HOST: api.chef.io:443 DEBUG: X-REMOTE-REQUEST-ID: 2c651610-9665-45a7-a634-996f4fbd544b DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 404 Object Not Found DEBUG: date: Mon, 22 Aug 2016 10:06:19 GMT DEBUG: server: openresty/1.9.7.2 DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402 DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} DEBUG: content-length: 39 DEBUG: connection: Close DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: ---- HTTP Response Body ---- DEBUG: {"error":["Cannot load client Module"]} DEBUG: ---- End HTTP Response Body ----- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Content-Length validated correctly. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response DEBUG: Expected JSON response, but got content-type '' DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response INFO: HTTP Request Returned 404 Object Not Found: error Creating new client for Module DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as dev911 DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/clients DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Content-Type: application/json DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-Ops-Server-API-Version: 1 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; DEBUG: X-OPS-USERID: dev911 DEBUG: X-OPS-TIMESTAMP: 2016-08-22T10:07:54Z DEBUG: X-OPS-CONTENT-HASH: QiIMquHGfZz32g2DGEAq2RMzF5I= DEBUG: X-OPS-AUTHORIZATION-1: jywmF8QnL4CQSIOIw+1wOcc7KdEhDwHic+D46btsuOCrQhnbH2olxBlEYv6N DEBUG: X-OPS-AUTHORIZATION-2: N3657z5wfqpsSEKDOWO2qB/ouv/JKERxnrESk7p1zdkCd4A0TonO5VNyj1+l DEBUG: X-OPS-AUTHORIZATION-3: mghcQyZaGNryVJ+jHH3zKgbRFHh9+yZeYTsqzD8ZoOHvLFWe9WBRAmGklpRM DEBUG: X-OPS-AUTHORIZATION-4: QKp/SN5bOeaoRdz/dAeJFxcFoiT7JlVyZD7dbE0tJjyD15mkpMjHEE1XQrhz DEBUG: X-OPS-AUTHORIZATION-5: XdfjmCQ2CpdSZf9xJxr1hSAa0arSSF30YugrrGdHtVsxPtoZ8paRHNCfcXer DEBUG: X-OPS-AUTHORIZATION-6: W+HsO2yT8y7A/FA+NKKKHXrTytSdu2IdoFbQazcUlg== DEBUG: HOST: api.chef.io:443 DEBUG: X-REMOTE-REQUEST-ID: 2c651610-9665-45a7-a634-996f4fbd544b DEBUG: Content-Length: 507 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 201 Created DEBUG: content-type: application/json DEBUG: date: Mon, 22 Aug 2016 10:06:20 GMT DEBUG: location: https://api.chef.io/organizations/infosystem/clients/Module DEBUG: server: openresty/1.9.7.2 DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402 DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} DEBUG: content-length: 685 DEBUG: connection: Close DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Content-Length validated correctly. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response Creating new node for Module DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as Module DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating PUT to https://api.chef.io/organizations/infosystem/nodes/Module DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Content-Type: application/json DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-Ops-Server-API-Version: 1 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; DEBUG: X-OPS-USERID: Module DEBUG: X-OPS-TIMESTAMP: 2016-08-22T10:07:55Z DEBUG: X-OPS-CONTENT-HASH: e9P4fu2fCtFav2SjBzcl7q2sRHk= DEBUG: X-OPS-AUTHORIZATION-1: e3XRdWQFc+s6cxrw1F/BREkCGojS+1nQF2E2PhT2snmENWmegrsfJfrMyBKw DEBUG: X-OPS-AUTHORIZATION-2: D3gE7Jak9xALJLwDrD/Ucb98POF8Dx3umZYMUZviCKPji+fpug9gF5FICXFG DEBUG: X-OPS-AUTHORIZATION-3: bSTcD0UBBmJM9xrc8uCZy0YREHmZWlVNv53PhKgvxLL76ScyCsIuzqHawX4s DEBUG: X-OPS-AUTHORIZATION-4: /Fl2c96wqmn7Ak+VYyldNo/Ypunrwg90U72R3YqO4fA2U+MSZ1kbnIhp5w/3 DEBUG: X-OPS-AUTHORIZATION-5: 0tlWK2fouizk7l3y9Xq9Yha9G5hhLdzeClvw03Q0Jwxmsh7ljLT3mbUpcOII DEBUG: X-OPS-AUTHORIZATION-6: rMLBOeMa9t2SvRglhQfLEVtDMyhU5RkIpumIMxsGgw== DEBUG: HOST: api.chef.io:443 DEBUG: X-REMOTE-REQUEST-ID: 2c651610-9665-45a7-a634-996f4fbd544b DEBUG: Content-Length: 160 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 404 Object Not Found DEBUG: date: Mon, 22 Aug 2016 10:06:21 GMT DEBUG: server: openresty/1.9.7.2 DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402 DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} DEBUG: content-length: 37 DEBUG: connection: Close DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: ---- HTTP Response Body ---- DEBUG: {"error":["node 'Module' not found"]} DEBUG: ---- End HTTP Response Body ----- DEBUG: ---- HTTP Request Body ---- DEBUG: {"name":"Module","chef_environment":"_default","json_class":"Chef::Node","automatic":{},"normal":{},"chef_type":"node","defau ":{},"override":{},"run_list":[]} DEBUG: ---- End HTTP Request Body ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Content-Length validated correctly. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response DEBUG: Expected JSON response, but got content-type '' DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response INFO: HTTP Request Returned 404 Object Not Found: error DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request DEBUG: Signing the request as Module DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request DEBUG: Initiating POST to https://api.chef.io/organizations/infosystem/nodes DEBUG: ---- HTTP Request Header Data: ---- DEBUG: Content-Type: application/json DEBUG: Accept: application/json DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3 DEBUG: X-Ops-Server-API-Version: 1 DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1; DEBUG: X-OPS-USERID: Module DEBUG: X-OPS-TIMESTAMP: 2016-08-22T10:07:57Z DEBUG: X-OPS-CONTENT-HASH: e9P4fu2fCtFav2SjBzcl7q2sRHk= DEBUG: X-OPS-AUTHORIZATION-1: AiQRiTcwqvfZgDCCdt/9LiY57n1ASOu4RFqcOTwjOW/U+43KP3bFUaFL+gsr DEBUG: X-OPS-AUTHORIZATION-2: IWR1LT0QXQPC6Hl1AEhaSmhPRo2c+4/3fFqVw226odRUmwmSfDOcrzi7PIos DEBUG: X-OPS-AUTHORIZATION-3: wrEM5E++HzFny3pbyit2HXBQX8clh5UhMPol07VQhfam5fQuNSnC8YfDvYJ0 DEBUG: X-OPS-AUTHORIZATION-4: ZlVeSUr9xIN5vSWnx0A2e1rZHMuFs1mS6iNj4F8W3toJ0D2NnENwt7TGrdyE DEBUG: X-OPS-AUTHORIZATION-5: cWLNvujQyQcQybEPzwWdDcJXfOnCAh5OIZknsnfGxnZMfAqfZUv2dSFwvG3A DEBUG: X-OPS-AUTHORIZATION-6: Dife1NNGuXMgE9zUgLfqaSJP1lHwyJRXOsyO4N0WGQ== DEBUG: HOST: api.chef.io:443 DEBUG: X-REMOTE-REQUEST-ID: 2c651610-9665-45a7-a634-996f4fbd544b DEBUG: Content-Length: 160 DEBUG: ---- End HTTP Request Header Data ---- DEBUG: ---- HTTP Status and Header Data: ---- DEBUG: HTTP 1.1 201 Created DEBUG: content-type: application/json DEBUG: date: Mon, 22 Aug 2016 10:06:23 GMT DEBUG: location: https://api.chef.io/organizations/infosystem/nodes/Module DEBUG: server: openresty/1.9.7.2 DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.8.0+20160728104402 DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"1","response_version":"1"} DEBUG: content-length: 67 DEBUG: connection: Close DEBUG: ---- End HTTP Status/Header Data ---- DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_response DEBUG: Content-Length validated correctly. DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response Connecting to ec2-54-86-112-241.compute-1.amazonaws.com DEBUG: Looking for bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/che knife/bootstrap/templates DEBUG: Found bootstrap template in C:/opscode/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.12.15-universal-mingw32/lib/chef/knif bootstrap/templates DEBUG: Adding ec2-54-86-112-241.compute-1.amazonaws.com DEBUG: establishing connection to ec2-54-86-112-241.compute-1.amazonaws.com:22 DEBUG: connection established INFO: negotiating protocol version DEBUG: local isSSH-2.0-Ruby/Net::SSH_3.2.0 i386-mingw32'
    DEBUG: remote is `SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2.7'
    INFO: sending KEXINIT
    DEBUG: queueing packet nr 0 type 20 len 1684
    DEBUG: sent 1688 bytes
    DEBUG: read 1460 bytes
    DEBUG: read 188 bytes
    DEBUG: received packet nr 0 type 20 len 1644
    INFO: got KEXINIT from server
    INFO: negotiating algorithms
    DEBUG: negotiated:
  • kex: diffie-hellman-group-exchange-sha1
  • host_key: ecdsa-sha2-nistp256
  • encryption_server: aes128-cbc
  • encryption_client: aes128-cbc
  • hmac_client: hmac-sha1
  • hmac_server: hmac-sha1
  • compression_client: none
  • compression_server: none
  • language_client:
  • language_server:
    DEBUG: exchanging keys
    DEBUG: queueing packet nr 1 type 34 len 20
    DEBUG: sent 24 bytes
    DEBUG: read 152 bytes
    DEBUG: received packet nr 1 type 31 len 148
    DEBUG: queueing packet nr 2 type 32 len 140
    DEBUG: sent 144 bytes
    DEBUG: read 376 bytes
    DEBUG: received packet nr 2 type 33 len 356
    DEBUG: queueing packet nr 3 type 21 len 20
    DEBUG: sent 24 bytes
    DEBUG: received packet nr 3 type 21 len 12
    DEBUG: beginning authentication of `ubuntu'
    DEBUG: queueing packet nr 4 type 5 len 28
    DEBUG: sent 52 bytes
    DEBUG: read 52 bytes
    DEBUG: received packet nr 4 type 6 len 28
    DEBUG: trying none
    DEBUG: queueing packet nr 5 type 50 len 44
    DEBUG: sent 68 bytes
    DEBUG: read 52 bytes
    DEBUG: received packet nr 5 type 51 len 28
    DEBUG: allowed methods: publickey
    DEBUG: none failed
    DEBUG: trying publickey
    DEBUG: connecting to ssh-agent
    ERROR: could not connect to ssh-agent
    DEBUG: trying publickey (bf:b7:c6:97:5e:ea:b2:ea:e0:08:98:5b:8b:76:d8:fc)
    DEBUG: queueing packet nr 6 type 50 len 348
    DEBUG: sent 372 bytes
    DEBUG: read 324 bytes
    DEBUG: received packet nr 6 type 60 len 300
    DEBUG: queueing packet nr 7 type 50 len 620
    DEBUG: sent 644 bytes
    DEBUG: read 36 bytes
    DEBUG: received packet nr 7 type 52 len 12
    DEBUG: publickey succeeded (bf:b7:c6:97:5e:ea:b2:ea:e0:08:98:5b:8b:76:d8:fc)
    DEBUG: queueing packet nr 8 type 90 len 44
    DEBUG: sent 68 bytes
    DEBUG: read 52 bytes
    DEBUG: received packet nr 8 type 91 len 28
    INFO: channel_open_confirmation: 0 0 0 32768
    INFO: sending channel request "pty-req"
    DEBUG: queueing packet nr 9 type 98 len 60
    INFO: sending channel request "exec"
    DEBUG: queueing packet nr 10 type 98 len 5868
    DEBUG: sent 5976 bytes
    DEBUG: read 300 bytes
    DEBUG: received packet nr 9 type 93 len 28
    INFO: channel_window_adjust: 0 +2097152
    DEBUG: received packet nr 10 type 99 len 12
    INFO: channel_success: 0
    DEBUG: received packet nr 11 type 94 len 188
    INFO: channel_data: 0 161b
    ec2-54-86-112-241.compute-1.amazonaws.com -----> Installing Chef Omnibus (-v 12)
    ec2-54-86-112-241.compute-1.amazonaws.com downloading https://omnitruck-direct.chef.io/chef/install.sh
    ec2-54-86-112-241.compute-1.amazonaws.com to file /tmp/install.sh.2205/install.sh
    ec2-54-86-112-241.compute-1.amazonaws.com trying wget...
    DEBUG: read 712 bytes
    DEBUG: received packet nr 12 type 94 len 44
    INFO: channel_data: 0 19b
    DEBUG: received packet nr 13 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com ubuntu 14.04 x86_64
    DEBUG: received packet nr 14 type 94 len 76
    INFO: channel_data: 0 52b
    DEBUG: received packet nr 15 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Getting information for chef stable 12 for ubuntu...
    DEBUG: received packet nr 16 type 94 len 124
    INFO: channel_data: 0 97b
    DEBUG: received packet nr 17 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com downloading https://omnitruck-direct.chef.io/stable/chef/metadata?v=12&p=ubuntu&pv=14.04&m
    86_64
    DEBUG: received packet nr 18 type 94 len 60
    INFO: channel_data: 0 43b
    DEBUG: received packet nr 19 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com to file /tmp/install.sh.2209/metadata.txt
    DEBUG: received packet nr 20 type 94 len 28
    INFO: channel_data: 0 14b
    DEBUG: received packet nr 21 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com trying wget...
    DEBUG: read 784 bytes
    DEBUG: received packet nr 22 type 94 len 28
    INFO: channel_data: 0 4b
    DEBUG: received packet nr 23 type 94 len 28
    INFO: channel_data: 0 1b
    DEBUG: received packet nr 24 type 94 len 60
    INFO: channel_data: 0 40b
    DEBUG: received packet nr 25 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com sha1 72a0a10ba5684d1e51590c1bc022bcb2e99348c6
    DEBUG: received packet nr 26 type 94 len 28
    INFO: channel_data: 0 6b
    DEBUG: received packet nr 27 type 94 len 28
    INFO: channel_data: 0 1b
    DEBUG: received packet nr 28 type 94 len 92
    INFO: channel_data: 0 64b
    DEBUG: received packet nr 29 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com sha256 973c2bc9a84822158ba7c0c360d0a25c97420f293ccbe5d8019615a411460785
    DEBUG: received packet nr 30 type 94 len 28
    INFO: channel_data: 0 3b
    DEBUG: received packet nr 31 type 94 len 28
    INFO: channel_data: 0 1b
    DEBUG: received packet nr 32 type 94 len 92
    INFO: channel_data: 0 70b
    DEBUG: received packet nr 33 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com url https://packages.chef.io/stable/ubuntu/14.04/chef_12.13.37-1_amd64.deb
    DEBUG: read 784 bytes
    DEBUG: received packet nr 34 type 94 len 28
    INFO: channel_data: 0 7b
    DEBUG: received packet nr 35 type 94 len 28
    INFO: channel_data: 0 1b
    DEBUG: received packet nr 36 type 94 len 28
    INFO: channel_data: 0 8b
    DEBUG: received packet nr 37 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com version 12.13.37
    DEBUG: received packet nr 38 type 94 len 60
    INFO: channel_data: 0 39b
    DEBUG: received packet nr 39 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com downloaded metadata file looks valid...
    DEBUG: received packet nr 40 type 94 len 108
    INFO: channel_data: 0 82b
    DEBUG: received packet nr 41 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com downloading https://packages.chef.io/stable/ubuntu/14.04/chef_12.13.37-1_amd64.deb
    DEBUG: received packet nr 42 type 94 len 76
    INFO: channel_data: 0 56b
    DEBUG: received packet nr 43 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com to file /tmp/install.sh.2209/chef_12.13.37-1_amd64.deb
    DEBUG: received packet nr 44 type 94 len 28
    INFO: channel_data: 0 14b
    DEBUG: received packet nr 45 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com trying wget...
    DEBUG: read 136 bytes
    DEBUG: received packet nr 46 type 94 len 60
    INFO: channel_data: 0 36b
    DEBUG: received packet nr 47 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Comparing checksum with sha256sum...
    DEBUG: read 616 bytes
    DEBUG: received packet nr 48 type 94 len 44
    INFO: channel_data: 0 18b
    DEBUG: received packet nr 49 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Installing chef 12
    DEBUG: received packet nr 50 type 94 len 44
    INFO: channel_data: 0 23b
    DEBUG: received packet nr 51 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com installing with dpkg...
    DEBUG: received packet nr 52 type 94 len 76
    INFO: channel_data: 0 61b
    DEBUG: received packet nr 53 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com dpkg: error: requested operation requires superuser privilege
    DEBUG: received packet nr 54 type 94 len 44
    INFO: channel_data: 0 19b
    DEBUG: received packet nr 55 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Installation failed
    DEBUG: received packet nr 56 type 94 len 28
    INFO: channel_data: 0 11b
    DEBUG: received packet nr 57 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Version: 12
    DEBUG: read 2768 bytes
    DEBUG: received packet nr 58 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com
    DEBUG: received packet nr 59 type 94 len 92
    INFO: channel_data: 0 72b
    DEBUG: received packet nr 60 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Please file a Bug Report at https://github.com/chef/omnitruck/issues/new
    DEBUG: received packet nr 61 type 94 len 108
    INFO: channel_data: 0 88b
    DEBUG: received packet nr 62 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Alternatively, feel free to open a Support Ticket at https://www.chef.io/support/tickets
    DEBUG: received packet nr 63 type 94 len 92
    INFO: channel_data: 0 71b
    DEBUG: received packet nr 64 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com More Chef support resources can be found at https://www.chef.io/support
    DEBUG: received packet nr 65 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com
    DEBUG: received packet nr 66 type 94 len 108
    INFO: channel_data: 0 83b
    DEBUG: received packet nr 67 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Please include as many details about the problem as possible i.e., how to reproduce
    DEBUG: received packet nr 68 type 94 len 92
    INFO: channel_data: 0 78b
    DEBUG: received packet nr 69 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com the problem (if possible), type of the Operating System and its version, etc.,
    DEBUG: received packet nr 70 type 94 len 92
    INFO: channel_data: 0 71b
    DEBUG: received packet nr 71 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com and any other relevant details that might help us with troubleshooting.
    DEBUG: received packet nr 72 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com
    DEBUG: received packet nr 73 type 94 len 28
    INFO: channel_data: 0 7b
    DEBUG: received packet nr 74 type 94 len 60
    INFO: channel_data: 0 39b
    DEBUG: received packet nr 75 type 94 len 44
    INFO: channel_data: 0 19b
    DEBUG: received packet nr 76 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com mkdir: cannot create directory ‘/etc/chef’: Permission denied
    DEBUG: received packet nr 77 type 94 len 28
    INFO: channel_data: 0 9b
    DEBUG: received packet nr 78 type 94 len 76
    INFO: channel_data: 0 57b
    DEBUG: received packet nr 79 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com sh: 179: cannot create /etc/chef/client.pem: Directory nonexistent
    DEBUG: received packet nr 80 type 94 len 28
    INFO: channel_data: 0 7b
    DEBUG: received packet nr 81 type 94 len 60
    INFO: channel_data: 0 40b
    DEBUG: received packet nr 82 type 94 len 44
    INFO: channel_data: 0 27b
    DEBUG: received packet nr 83 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com chmod: cannot access ‘/etc/chef/client.pem’: No such file or directory
    DEBUG: received packet nr 84 type 94 len 28
    INFO: channel_data: 0 9b
    DEBUG: received packet nr 85 type 94 len 76
    INFO: channel_data: 0 56b
    DEBUG: received packet nr 86 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com sh: 215: cannot create /etc/chef/client.rb: Directory nonexistent
    DEBUG: received packet nr 87 type 94 len 28
    INFO: channel_data: 0 9b
    DEBUG: received packet nr 88 type 94 len 76
    INFO: channel_data: 0 62b
    DEBUG: received packet nr 89 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com sh: 223: cannot create /etc/chef/first-boot.json: Directory nonexistent
    DEBUG: received packet nr 90 type 94 len 60
    INFO: channel_data: 0 37b
    DEBUG: received packet nr 91 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com Starting the first Chef Client run...
    DEBUG: received packet nr 92 type 94 len 28
    INFO: channel_data: 0 9b
    DEBUG: received packet nr 93 type 94 len 44
    INFO: channel_data: 0 22b
    DEBUG: received packet nr 94 type 94 len 28
    INFO: channel_data: 0 2b
    ec2-54-86-112-241.compute-1.amazonaws.com sh: 230: chef-client: not found
    DEBUG: received packet nr 95 type 96 len 12
    INFO: channel_eof: 0
    DEBUG: received packet nr 96 type 98 len 44
    INFO: channel_request: 0 exit-status false
    DEBUG: received packet nr 97 type 97 len 12
    INFO: channel_close: 0
    DEBUG: queueing packet nr 11 type 97 len 28
    INFO: ec2-54-86-112-241.compute-1.amazonaws.com delete channel 0 which closed locally and remotely
    INFO: closing remaining channels (0 open)
    chef

@thommay
Copy link
Contributor

thommay commented Aug 22, 2016

Buried deep in there is "dpkg: error: requested operation requires superuser privilege "; you need to use --sudo in your bootstrap command.

At Chef, we use GitHub Issues to track bugs and feature requests. Questions like "How do I .... with Chef?" are better answered by our awesome community on the Chef mailing lists, or on StackOverflow. (Please pick only one place to ask your question, however, as it's considered impolite to post the same question to multiple forums.)

You can find information about joining and asking questions on our mailing lists here. On StackOverflow, please tag your question with the "chef" label so that it shows up in this list.

Please don't add any more detail to this ticket. Instead, please post to the chef mailing list as detailed above if you still can't get going.

@Dev393
Copy link

Dev393 commented Aug 22, 2016

Thanks a lot Matt for help.
Sure i will not post any more comments here.

@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants