Template Net::HTTPServerException 403 "Forbidden"

Hi,

I am getting this weird error during a chef-client run, while creating a template

  ================================================================================
  Error executing action `create` on resource 'template[zabbix_agentd.conf]'
  ================================================================================

Net::HTTPServerException

403 “Forbidden”

Chef Server version
chef-server-core-12.17.33-1.el7.x86_64

Chef client version
chef_version=13.8.0
platform=windows
platform_version=6.3.9600
ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
program_name=C:/opscode/chef/bin/chef-client
executable=C:/opscode/chef/bin/chef-client

debug log,
"X-Ops-Authorization-5"=>"mx90uBQzeuy4JdZCLnXJkSHX48Q2KO7WYgyb4YYHZ5gm3A3r6aQuUngp+/ta", "X-Ops-Authorization-6"=>"baMXmpPuArPCZh27T3n6PXZ7Gf56K2yU99FRyY41pg=="}
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_request
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_request
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_request
[2018-03-01T16:15:50+00:00] DEBUG: Initiating GET to https://chefserver2.testdrive.local/organizations/testdrivelocal
[2018-03-01T16:15:50+00:00] DEBUG: Initiating GET to https://chefserver2.testdrive.local/organizations/testdrivelocal
[2018-03-01T16:15:50+00:00] DEBUG: ---- HTTP Request Header Data: ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- HTTP Request Header Data: ----
[2018-03-01T16:15:50+00:00] DEBUG: Accept: application/json
[2018-03-01T16:15:50+00:00] DEBUG: Accept: application/json
[2018-03-01T16:15:50+00:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2018-03-01T16:15:50+00:00] DEBUG: Accept-Encoding: gzip;q=1.0,deflate;q=0.6,identity;q=0.3
[2018-03-01T16:15:50+00:00] DEBUG: X-Ops-Server-API-Version: 0
[2018-03-01T16:15:50+00:00] DEBUG: X-Ops-Server-API-Version: 0
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-SIGN: algorithm=sha1;version=1.1;
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-USERID: prodtestwin
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-USERID: prodtestwin
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-TIMESTAMP: 2018-03-01T16:15:50Z
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-TIMESTAMP: 2018-03-01T16:15:50Z
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-CONTENT-HASH: 2jmj7l5rSw0yVb/vlWAYkK/YBwk=
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-1: mp+4RPLjUDfy/PDEIxprwjaKi304xQV+a/CAKNedBztU7TTH2Uyq7+9eosWt
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-1: mp+4RPLjUDfy/PDEIxprwjaKi304xQV+a/CAKNedBztU7TTH2Uyq7+9eosWt
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-2: 7GTSLE4qbnjlQfb9h6oBW9U0Pea61Dg7dsdBveOtieuZJfELvTrwB/1dF/rF
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-2: 7GTSLE4qbnjlQfb9h6oBW9U0Pea61Dg7dsdBveOtieuZJfELvTrwB/1dF/rF
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-3: qhRh/XnkgpRPzGiV3LPOUV24JOQ+Q0LnEGCd3G0n393aYc1WY4IKsBxZPLRl
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-3: qhRh/XnkgpRPzGiV3LPOUV24JOQ+Q0LnEGCd3G0n393aYc1WY4IKsBxZPLRl
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-4: FW26IHO66W15LtAX5apdDM8OKiB+8NvMneS547NrDephMuxAgdMWTArp1sL/
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-4: FW26IHO66W15LtAX5apdDM8OKiB+8NvMneS547NrDephMuxAgdMWTArp1sL/
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-5: mx90uBQzeuy4JdZCLnXJkSHX48Q2KO7WYgyb4YYHZ5gm3A3r6aQuUngp+/ta
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-5: mx90uBQzeuy4JdZCLnXJkSHX48Q2KO7WYgyb4YYHZ5gm3A3r6aQuUngp+/ta
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-6: baMXmpPuArPCZh27T3n6PXZ7Gf56K2yU99FRyY41pg==
[2018-03-01T16:15:50+00:00] DEBUG: X-OPS-AUTHORIZATION-6: baMXmpPuArPCZh27T3n6PXZ7Gf56K2yU99FRyY41pg==
[2018-03-01T16:15:50+00:00] DEBUG: HOST: chefserver2.testdrive.local:443
[2018-03-01T16:15:50+00:00] DEBUG: HOST: chefserver2.testdrive.local:443
[2018-03-01T16:15:50+00:00] DEBUG: X-REMOTE-REQUEST-ID: 81f849c2-56af-4ea8-bb7c-44af7d61c437
[2018-03-01T16:15:50+00:00] DEBUG: X-REMOTE-REQUEST-ID: 81f849c2-56af-4ea8-bb7c-44af7d61c437
[2018-03-01T16:15:50+00:00] DEBUG: ---- End HTTP Request Header Data ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- End HTTP Request Header Data ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- HTTP Status and Header Data: ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- HTTP Status and Header Data: ----
[2018-03-01T16:15:50+00:00] DEBUG: HTTP 1.1 403 Forbidden
[2018-03-01T16:15:50+00:00] DEBUG: HTTP 1.1 403 Forbidden
[2018-03-01T16:15:50+00:00] DEBUG: server: openresty/1.11.2.1
[2018-03-01T16:15:50+00:00] DEBUG: server: openresty/1.11.2.1
[2018-03-01T16:15:50+00:00] DEBUG: date: Thu, 01 Mar 2018 16:15:50 GMT
[2018-03-01T16:15:50+00:00] DEBUG: date: Thu, 01 Mar 2018 16:15:50 GMT
[2018-03-01T16:15:50+00:00] DEBUG: content-length: 37
[2018-03-01T16:15:50+00:00] DEBUG: content-length: 37
[2018-03-01T16:15:50+00:00] DEBUG: connection: close
[2018-03-01T16:15:50+00:00] DEBUG: connection: close
[2018-03-01T16:15:50+00:00] DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"0","response_version":"0"}
[2018-03-01T16:15:50+00:00] DEBUG: x-ops-server-api-version: {"min_version":"0","max_version":"1","request_version":"0","response_version":"0"}
[2018-03-01T16:15:50+00:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
[2018-03-01T16:15:50+00:00] DEBUG: x-ops-api-info: flavor=cs;version=12.0.0;oc_erchef=12.17.29
[2018-03-01T16:15:50+00:00] DEBUG: ---- End HTTP Status/Header Data ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- End HTTP Status/Header Data ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- HTTP Response Body ----
[2018-03-01T16:15:50+00:00] DEBUG: ---- HTTP Response Body ----
[2018-03-01T16:15:50+00:00] DEBUG: {"error":["missing read permission"]}
[2018-03-01T16:15:50+00:00] DEBUG: {"error":["missing read permission"]}
[2018-03-01T16:15:50+00:00] DEBUG: ---- End HTTP Response Body -----
[2018-03-01T16:15:50+00:00] DEBUG: ---- End HTTP Response Body -----
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::ValidateContentLength#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: No content-length information collected for the streamed download, cannot identify streamed download.
[2018-03-01T16:15:50+00:00] DEBUG: No content-length information collected for the streamed download, cannot identify streamed download.
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::APIVersions#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::RemoteRequestID#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Authenticator#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::Decompressor#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::CookieManager#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONOutput#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_stream_complete
[2018-03-01T16:15:50+00:00] DEBUG: Chef::HTTP calling Chef::HTTP::JSONInput#handle_stream_complete

I use the same cookbook on CHEF server version 11 and chef-client version 12.x and it is just working fine all these times.

Can you please put me in the right direction ?

Thanks and Regards,

A

Chef client 12 it works just fine