Hi
While I am trying to bootstarp a client receiving error “Failed to register new client, 4 tries remaining” "Response: HTTP 502 - 502 “Bad Gateway”
We have proxy in place but I can communicate to chef hosted server without proxy setting but not able to bootstrap client.
output
[root@VM002 cookbooks]# knife bootstrap 3.8.86.38 -P xxxxx -x root
Doing old-style registration with the validation key at /root/chef-starter/chef-repo/.chef/services-dev-validator.pem...
Delete your validation key in order to use your user credentials instead
Connecting to 3.8.86.38
3.8.86.38 -----> Installing Chef Omnibus (-v 12)
3.8.86.38 trying wget...
3.8.86.38 trying curl...
3.8.86.38 trying perl...
3.8.86.38 trying python...
3.8.86.38 url https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-12.6.0-1.el6.x86_64.rpm
3.8.86.38 md5 8f5686d11c3778c8a61fd50f5020b6e5
3.8.86.38 sha256 152e9aeb3c654db19b2e72cc290ec6d92bf6b40e74807c3eb1a0c828f20c99b9
3.8.86.38 version 12.6.0downloaded metadata file looks valid...
3.8.86.38 downloading https://opscode-omnibus-packages.s3.amazonaws.com/el/6/x86_64/chef-12.6.0-1.el6.x86_64.rpm
3.8.86.38 to file /tmp/install.sh.18390/chef-12.6.0-1.el6.x86_64.rpm
3.8.86.38 trying wget...
3.8.86.38 Comparing checksum with sha256sum...
3.8.86.38 Installing chef 12
3.8.86.38 installing with rpm...
3.8.86.38 warning: /tmp/install.sh.18390/chef-12.6.0-1.el6.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 83ef826a: NOKEY
3.8.86.38 Preparing... ########################################### [100%]
3.8.86.38 1:chef ########################################### [100%]
3.8.86.38 Thank you for installing Chef!
3.8.86.38 Starting the first Chef Client run...
3.8.86.38 Starting Chef Client, version 12.6.0
3.8.86.38 Creating a new client identity for VM002.aimsnew.com using the validator key.
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Failed to register new client, 4 tries remaining
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Response: HTTP 502 - 502 "Bad Gateway"
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Failed to register new client, 3 tries remaining
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Response: HTTP 502 - 502 "Bad Gateway"
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Failed to register new client, 2 tries remaining
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Response: HTTP 502 - 502 "Bad Gateway"
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Failed to register new client, 1 tries remaining
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Response: HTTP 502 - 502 "Bad Gateway"
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Failed to register new client, 0 tries remaining
3.8.86.38 [2016-01-14T08:28:25-05:00] WARN: Response: HTTP 502 - 502 "Bad Gateway"
3.8.86.38
3.8.86.38 Running handlers:
3.8.86.38 [2016-01-14T08:28:25-05:00] ERROR: Running exception handlers
3.8.86.38 Running handlers complete
3.8.86.38 [2016-01-14T08:28:25-05:00] ERROR: Exception handlers complete
3.8.86.38 Chef Client failed. 0 resources updated in 03 seconds
3.8.86.38 [2016-01-14T08:28:25-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
3.8.86.38 [2016-01-14T08:28:25-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
3.8.86.38 [2016-01-14T08:28:25-05:00] ERROR: undefined method `closed?' for nil:NilClass
3.8.86.38 [2016-01-14T08:28:25-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[root@VM002 cookbooks]#
Suppressed the output.
Thank you.