Details
-
Type:
Bug
-
Status:
Confirmed
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 10.16.2
-
Fix Version/s: None
-
Component/s: Chef Client, Knife
-
Environment:
Any!

Description
When using knife behind a proxy (or anywhere that you use a proxy and the Chef::CookbookUploader class) we fail to configure the proxy settings for RestClient. This causes the first stage of the cookbook upload command to complete (it uses the normal Chef::REST route) but the first files to S3 to fail due to the bad proxy.
Fix is to set the RestClient.proxy before making the RestClient::Resource object in Chef::CookbookUploader.
You can work around this by adding the following to your config file:
require 'rest-client'
RestClient.proxy = "yourproxy"