chef-boneyard / chef-provisioning-docker

Docker provisioner for chef-provisioning
Apache License 2.0
92 stars 40 forks source link

403 errors where provisioning to docker #70

Closed mickfeech closed 9 years ago

mickfeech commented 9 years ago

I've been receiving very similar messages that have been experienced with provisioning to aws (https://github.com/chef/chef-provisioning/issues/469) trying to provision to docker.

[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-11-04T09:32:12-05:00] DEBUG: Signing the request as server1
[2015-11-04T09:32:12-05:00] DEBUG: String to sign: 'Method:GET
Hashed Path:3mWqCJcr2509dd2k11DLwRpSHl4=
X-Ops-Content-Hash:2jmj7l5rSw0yVb/vlWAYkK/YBwk=
X-Ops-Timestamp:2015-11-04T14:32:12Z
X-Ops-UserId:server1'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"server1", "X-Ops-Timestamp"=>"2015-11-04T14:32:12Z", "X-Ops-Content-Hash"=>"2jmj7l5rSw0yVb/vlWAYkK/YBwk=", "X-Ops-Authorization-1"=>"SdmjkCyepkKHyMFIQTR1c4HV6PkNiYd1/23qpn7pm2hrHjkCXca3GMSMdxTM", "X-Ops-Authorization-2"=>"IHL9OipB3fHNA2T4zrY+ohAriBrwEf5bcyYnzSz84Y3ktGATA0aoTM2mfkg/", "X-Ops-Authorization-3"=>"qNQ1jfFI6O1ljBv3K3mE5pDuyST4fzgJDQg4aeuHqV5aepY+Bp+8M8u3ZvFD", "X-Ops-Authorization-4"=>"RWeQ4HU1rMt1dzRg1HrsNQPTraIpFG2EDdDhS0uIWvS4lXQCoJ38GQqYdSlC", "X-Ops-Authorization-5"=>"wRVS1RSpM2i7iD5eTvq3+zxS1n24xfJcq5jXZbNMCR5fjT0qZCsXK7+f0Nq5", "X-Ops-Authorization-6"=>"Ag78sfQAyCE0JZiK5WokfWa/W60o1rOU9eKXMdenpA=="}
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-11-04T09:32:12-05:00] DEBUG: Initiating GET to https://server1/organizations/my_org/clients/app.myapp.local
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: Accept: application/json
[2015-11-04T09:32:12-05:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-USERID: server1
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-TIMESTAMP: 2015-11-04T14:32:12Z
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-1: SdmjkCyepkKHyMFIQTR1c4HV6PkNiYd1/23qpn7pm2hrHjkCXca3GMSMdxTM
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-2: IHL9OipB3fHNA2T4zrY+ohAriBrwEf5bcyYnzSz84Y3ktGATA0aoTM2mfkg/
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-3: qNQ1jfFI6O1ljBv3K3mE5pDuyST4fzgJDQg4aeuHqV5aepY+Bp+8M8u3ZvFD
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-4: RWeQ4HU1rMt1dzRg1HrsNQPTraIpFG2EDdDhS0uIWvS4lXQCoJ38GQqYdSlC
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-5: wRVS1RSpM2i7iD5eTvq3+zxS1n24xfJcq5jXZbNMCR5fjT0qZCsXK7+f0Nq5
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-6: Ag78sfQAyCE0JZiK5WokfWa/W60o1rOU9eKXMdenpA==
[2015-11-04T09:32:12-05:00] DEBUG: HOST: server1:443
[2015-11-04T09:32:12-05:00] DEBUG: X-Ops-Server-API-Version: 0
[2015-11-04T09:32:12-05:00] DEBUG: X-REMOTE-REQUEST-ID: dd6e97f5-36b2-4aa5-a4c4-e40249375a90
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: HTTP 1.1 404 Object Not Found
[2015-11-04T09:32:12-05:00] DEBUG: server: openresty/1.7.10.1
[2015-11-04T09:32:12-05:00] DEBUG: date: Wed, 04 Nov 2015 14:32:12 GMT
[2015-11-04T09:32:12-05:00] DEBUG: content-length: 48
[2015-11-04T09:32:12-05:00] DEBUG: connection: close
[2015-11-04T09:32:12-05:00] DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"0","response_version":"0"}
[2015-11-04T09:32:12-05:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.2.0
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Response Body ----
[2015-11-04T09:32:12-05:00] DEBUG: {"error":["Cannot load client app.myapp.local"]}
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Response Body -----
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_request
[2015-11-04T09:32:12-05:00] DEBUG: Signing the request as server1
[2015-11-04T09:32:12-05:00] DEBUG: String to sign: 'Method:POST
Hashed Path:7rYlcOytWR8a1ZiIxpZPRmUy8xA=
X-Ops-Content-Hash:J5TyHmssKcpwEL8FQA32QZI0LeY=
X-Ops-Timestamp:2015-11-04T14:32:12Z
X-Ops-UserId:server1'
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"server1", "X-Ops-Timestamp"=>"2015-11-04T14:32:12Z", "X-Ops-Content-Hash"=>"J5TyHmssKcpwEL8FQA32QZI0LeY=", "X-Ops-Authorization-1"=>"jUEvxi1CSm52Hp1mr7QD3GNRNw+O7Z+2j9np1yi8fC2tqSVnf2sX8ZEJN/bp", "X-Ops-Authorization-2"=>"nHhcJreQrCTTo6Jmno8ru/6JkYjcw5LOjVOFHw1ppllULc/hNb+OrTmBTAhF", "X-Ops-Authorization-3"=>"EDljqAbXPdKM8kEH3JxFxop0vrfnB3vvR1j9UgnusTCjVEH8Wcd0rUsxLQQX", "X-Ops-Authorization-4"=>"ATczcl2AX5S8S5DrqQLZGQZE+DpJEUpmGRy1hQpPcVttc9JJzW0bZAHbSnr1", "X-Ops-Authorization-5"=>"fE6mMxpbK2UjMPBTI27bN8MvHvPfT7QZNdpF+jwOEM+IDWcAM0fbnZFOcIqp", "X-Ops-Authorization-6"=>"R69MJdoYMiLyLEQEAPk43p09znhRYOmQZTGgAHerHg=="}
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2015-11-04T09:32:12-05:00] DEBUG: Initiating POST to https://server1/organizations/my_org/clients
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: Content-Type: application/json
[2015-11-04T09:32:12-05:00] DEBUG: Accept: application/json
[2015-11-04T09:32:12-05:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-USERID: server1
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-TIMESTAMP: 2015-11-04T14:32:12Z
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-CONTENT-HASH: J5TyHmssKcpwEL8FQA32QZI0LeY=
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-1: jUEvxi1CSm52Hp1mr7QD3GNRNw+O7Z+2j9np1yi8fC2tqSVnf2sX8ZEJN/bp
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-2: nHhcJreQrCTTo6Jmno8ru/6JkYjcw5LOjVOFHw1ppllULc/hNb+OrTmBTAhF
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-3: EDljqAbXPdKM8kEH3JxFxop0vrfnB3vvR1j9UgnusTCjVEH8Wcd0rUsxLQQX
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-4: ATczcl2AX5S8S5DrqQLZGQZE+DpJEUpmGRy1hQpPcVttc9JJzW0bZAHbSnr1
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-5: fE6mMxpbK2UjMPBTI27bN8MvHvPfT7QZNdpF+jwOEM+IDWcAM0fbnZFOcIqp
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-6: R69MJdoYMiLyLEQEAPk43p09znhRYOmQZTGgAHerHg==
[2015-11-04T09:32:12-05:00] DEBUG: HOST: server1:443
[2015-11-04T09:32:12-05:00] DEBUG: X-Ops-Server-API-Version: 0
[2015-11-04T09:32:12-05:00] DEBUG: X-REMOTE-REQUEST-ID: dd6e97f5-36b2-4aa5-a4c4-e40249375a90
[2015-11-04T09:32:12-05:00] DEBUG: Content-Length: 586
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: HTTP 1.1 403 Forbidden
[2015-11-04T09:32:12-05:00] DEBUG: server: openresty/1.7.10.1
[2015-11-04T09:32:12-05:00] DEBUG: date: Wed, 04 Nov 2015 14:32:12 GMT
[2015-11-04T09:32:12-05:00] DEBUG: content-length: 39
[2015-11-04T09:32:12-05:00] DEBUG: connection: close
[2015-11-04T09:32:12-05:00] DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"0","response_version":"0"}
[2015-11-04T09:32:12-05:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.2.0
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Response Body ----
[2015-11-04T09:32:12-05:00] DEBUG: {"error":["missing create permission"]}
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Response Body -----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Request Body ----
[2015-11-04T09:32:12-05:00] DEBUG: {"name":"app.myapp.local","clientname":"app.myapp.local","admin":false,"validator":false,"chef_type":"client","public_key":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyMY98wd6iTOBiCxOYfNe\nO/Q+Q8t2e0Iv/GLiBunvRxirsIP2gsTUNbtYaOvUJP6A4nWpv2b7XJXczxVBw9nl\neQKB6qb4t9FIxZaElH7wzp5+74RQkl7jPvkh9qcWZBWcNCa5kRaPEif9unKqG6NM\nS4OhDFdxt6tXqMlVXhk8/PLFXY7/G7Y5JE+k9DqxgpiQFbBeeCjTcQJr6MHvt/Cl\nNh8T3hy2BqQCJyssBSvSIsJfhfc9XNEkcohq3LhBbGyojGWXA9LlUjphGIv010QY\nXP6gCpXD/sTCegbnGdeplUyi62gZZSLcgSNPr5UqTXZVGY0oW+0Fa1JnnV9BEbGx\n/wIDAQAB\n-----END PUBLIC KEY-----\n"}
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Request Body ----
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_response
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_response
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_response
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_response
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_response
[2015-11-04T09:32:12-05:00] DEBUG: Expected JSON response, but got content-type ''
[2015-11-04T09:32:12-05:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_response
[2015-11-04T09:32:12-05:00] INFO: HTTP Request Returned 403 Forbidden: error
[2015-11-04T09:32:12-05:00] INFO: Running queued delayed notifications before re-raising exception
[2015-11-04T09:32:12-05:00] INFO: Running queued delayed notifications before re-raising exception
[2015-11-04T09:32:12-05:00] DEBUG: Re-raising exception: Net::HTTPServerException - machine[app.myapp.local] (tomcat_cluster::default line 12) had an error: Net::HTTPServerException: chef_client[app.myapp.local] (basic_chef_client::block line 145) had an error: Net::HTTPServerException: 403 "Forbidden"
/opt/chefdk/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in `error!'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/http.rb:145:in `request'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/http.rb:126:in `post'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/actor_provider_base.rb:30:in `block in create_actor'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/why_run.rb:52:in `call'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/why_run.rb:52:in `add_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:175:in `converge_by'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/actor_provider_base.rb:29:in `create_actor'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/chef/provider/chef_client.rb:23:in `block in <class:ChefClient>'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/lwrp_base.rb:86:in `instance_eval'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/lwrp_base.rb:86:in `block in action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:144:in `run_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource.rb:585:in `run_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:49:in `run_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in `block (2 levels) in converge'
 /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in `each'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in `block in converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:80:in `converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/basic_chef_client.rb:69:in `block in converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/basic_chef_client.rb:133:in `call'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/basic_chef_client.rb:133:in `with_chef_config'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/basic_chef_client.rb:68:in `converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/basic_chef_client.rb:109:in `converge_block'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-1.4.1/lib/chef/provisioning.rb:12:in `inline_resource'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-1.4.1/lib/chef/provisioning/convergence_strategy/precreate_chef_objects.rb:143:in `create_chef_objects'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-1.4.1/lib/chef/provisioning/convergence_strategy/precreate_chef_objects.rb:27:in `setup_convergence'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-1.4.1/lib/chef/provisioning/convergence_strategy/install_cached.rb:47:in `setup_convergence'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-1.4.1/lib/chef/provisioning/machine/basic_machine.rb:17:in `setup_convergence'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-provisioning-1.4.1/lib/chef/provider/machine.rb:58:in `block in <class:Machine>'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:362:in `action_converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:144:in `run_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource.rb:585:in `run_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:49:in `run_action'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in `block (2 levels) in converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in `each'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:81:in `block in converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:83:in `block in execute_each_resource'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/resource_collection/resource_list.rb:81:in `execute_each_resource'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/runner.rb:80:in `converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:653:in `block in converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:648:in `catch'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:648:in `converge'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:687:in `converge_and_save'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/client.rb:269:in `run'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:270:in `block in fork_chef_client'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:258:in `fork'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:258:in `fork_chef_client'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:224:in `block in run_chef_client'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/local_mode.rb:44:in `with_server_connectivity'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:212:in `run_chef_client'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:408:in `block in interval_run_chef_client'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:398:in `loop'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:398:in `interval_run_chef_client'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application/client.rb:388:in `run_application'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/application.rb:60:in `run'
  /opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/bin/chef-client:26:in `<top (required)>'
  /bin/chef-client:54:in `load'
  /bin/chef-client:54:in `<main>'
[2015-11-04T09:32:12-05:00] ERROR: Running exception handlers
[2015-11-04T09:32:12-05:00] ERROR: Exception handlers complete
[2015-11-04T09:32:12-05:00] INFO: Sending resource update report (run-id: dd6e97f5-36b2-4aa5-a4c4-e40249375a90)
Header hash: {"X-Ops-Sign"=>"algorithm=sha1;version=1.0;", "X-Ops-Userid"=>"server1", "X-Ops-Timestamp"=>"2015-11-04T14:32:12Z", "X-Ops-Content-Hash"=>"5XSRGmqY8rm0jKWTWesRTgdwBFw=", "X-Ops-Authorization-1"=>"o0+77820zTvsFwvlGLycQdB+WBgOqAn9SaIYl2m2AptPic/HuGmSnqECtz4B", "X-Ops-Authorization-2"=>"VzhqBz13e7QbjgJw9KBGOi66zymqtE+3577xnVyyTpkWW/tbe19DS7SP43Rx", "X-Ops-Authorization-3"=>"PScjspFz/zlJUa4wE47y4Nmnety2H+psYnNn8PqwblF6HEDCF4OUPZ+uQCgK", "X-Ops-Authorization-4"=>"5hC7G6/uue/3yFno6fHg4/KoYKZsMvXYGhPG6of9JOziNeWIKVqqxhleQF57", "X-Ops-Authorization-5"=>"6s0NpcPrX3CEXR9j4GLbqQygqE1P+N4I0UIViRHVRmgwxD07hP57bcjT71RK", "X-Ops-Authorization-6"=>"fsTBC3zaoPzHPPgMeE5lx2+Mb60bOJam2xqyfa1rCA=="}
[2015-11-04T09:32:12-05:00] DEBUG: Initiating POST to https://server1/organizations/my_org/reports/nodes/server1/runs/dd6e97f5-36b2-4aa5-a4c4-e40249375a90
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: X-Ops-Reporting-Protocol-Version: 0.1.0
[2015-11-04T09:32:12-05:00] DEBUG: Content-Encoding: gzip
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-USERID: server1
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-TIMESTAMP: 2015-11-04T14:32:12Z
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-CONTENT-HASH: 5XSRGmqY8rm0jKWTWesRTgdwBFw=
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-1: o0+77820zTvsFwvlGLycQdB+WBgOqAn9SaIYl2m2AptPic/HuGmSnqECtz4B
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-2: VzhqBz13e7QbjgJw9KBGOi66zymqtE+3577xnVyyTpkWW/tbe19DS7SP43Rx
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-3: PScjspFz/zlJUa4wE47y4Nmnety2H+psYnNn8PqwblF6HEDCF4OUPZ+uQCgK
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-4: 5hC7G6/uue/3yFno6fHg4/KoYKZsMvXYGhPG6of9JOziNeWIKVqqxhleQF57
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-5: 6s0NpcPrX3CEXR9j4GLbqQygqE1P+N4I0UIViRHVRmgwxD07hP57bcjT71RK
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-AUTHORIZATION-6: fsTBC3zaoPzHPPgMeE5lx2+Mb60bOJam2xqyfa1rCA==
[2015-11-04T09:32:12-05:00] DEBUG: HOST: server1:443
[2015-11-04T09:32:12-05:00] DEBUG: X-Ops-Server-API-Version: 1
[2015-11-04T09:32:12-05:00] DEBUG: X-REMOTE-REQUEST-ID: dd6e97f5-36b2-4aa5-a4c4-e40249375a90
[2015-11-04T09:32:12-05:00] DEBUG: Content-Length: 2120
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: HTTP 1.1 200 OK
[2015-11-04T09:32:12-05:00] DEBUG: server: openresty/1.7.10.1
[2015-11-04T09:32:12-05:00] DEBUG: date: Wed, 04 Nov 2015 14:32:12 GMT
[2015-11-04T09:32:12-05:00] DEBUG: content-type: application/json
[2015-11-04T09:32:12-05:00] DEBUG: content-length: 2
[2015-11-04T09:32:12-05:00] DEBUG: connection: close
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Status/Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: Audit Reports are disabled. Skipping sending reports.
[2015-11-04T09:32:12-05:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2015-11-04T09:32:12-05:00] DEBUG: Net::HTTPServerException: machine[app.myapp.local] (tomcat_cluster::default line 12) had an error: Net::HTTPServerException: chef_client[app.myapp.local] (basic_chef_client::block line 145) had an error: Net::HTTPServerException: 403 "Forbidden"
/opt/chefdk/embedded/lib/ruby/2.1.0/net/http/response.rb:119:in `error!'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/http.rb:145:in `request'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/http.rb:126:in `post'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/actor_provider_base.rb:30:in `block in create_actor'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/why_run.rb:52:in `call'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/mixin/why_run.rb:52:in `add_action'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider.rb:175:in `converge_by'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/cheffish/actor_provider_base.rb:29:in `create_actor'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/cheffish-1.5.0/lib/chef/provider/chef_client.rb:23:in `block in <class:ChefClient>'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/lwrp_base.rb:86:in `instance_eval'
/opt/chefdk/embedded/lib/ruby/gems/2.1.0/gems/chef-12.5.1/lib/chef/provider/lwrp_base.rb:86:in `block in action'
[2015-11-04T09:32:12-05:00] ERROR: machine[app.myapp.local] (tomcat_cluster::default line 12) had an error: Net::HTTPServerException: chef_client[app.myapp.local] (basic_chef_client::block line 145) had an error: Net::HTTPServerException: 403 "Forbidden"
[2015-11-04T09:32:12-05:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
marc- commented 9 years ago

According to

[2015-11-04T09:32:12-05:00] DEBUG: Initiating POST to https://server1/organizations/my_org/clients
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Request Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: Content-Type: application/json
[2015-11-04T09:32:12-05:00] DEBUG: Accept: application/json
[2015-11-04T09:32:12-05:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.0;
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-USERID: server1
[2015-11-04T09:32:12-05:00] DEBUG: X-OPS-TIMESTAMP: 2015-11-04T14:32:12Z
<...>
[2015-11-04T09:32:12-05:00] DEBUG: Content-Length: 586
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Request Header Data ----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Status and Header Data: ----
[2015-11-04T09:32:12-05:00] DEBUG: HTTP 1.1 403 Forbidden
<...>
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Response Body ----
[2015-11-04T09:32:12-05:00] DEBUG: {"error":["missing create permission"]}
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Response Body -----
[2015-11-04T09:32:12-05:00] DEBUG: ---- HTTP Request Body ----
[2015-11-04T09:32:12-05:00] DEBUG: {"name":"app.myapp.local","clientname":"app.myapp.local","admin":false,"validator":false,"chef_type":"client","public_key":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyMY98wd6iTOBiCxOYfNe\nO/Q+Q8t2e0Iv/GLiBunvRxirsIP2gsTUNbtYaOvUJP6A4nWpv2b7XJXczxVBw9nl\neQKB6qb4t9FIxZaElH7wzp5+74RQkl7jPvkh9qcWZBWcNCa5kRaPEif9unKqG6NM\nS4OhDFdxt6tXqMlVXhk8/PLFXY7/G7Y5JE+k9DqxgpiQFbBeeCjTcQJr6MHvt/Cl\nNh8T3hy2BqQCJyssBSvSIsJfhfc9XNEkcohq3LhBbGyojGWXA9LlUjphGIv010QY\nXP6gCpXD/sTCegbnGdeplUyi62gZZSLcgSNPr5UqTXZVGY0oW+0Fa1JnnV9BEbGx\n/wIDAQAB\n-----END PUBLIC KEY-----\n"}
[2015-11-04T09:32:12-05:00] DEBUG: ---- End HTTP Request Body ----

it seem your user doesn't have enough permissions to create new client on chef server. I would take a look at http://jtimberman.housepub.org/blog/2015/02/09/quick-tip-create-a-provisioner-node/ .

mickfeech commented 9 years ago

Thanks. It would have been nice to see that in the chef documentation.