popularity question answers views user  
0
Proxy server settings

Hi,

We are behind a proxy server which is causing issues when Chef tries to download remote files.

In the /etc/chef/client.rb file we have defined the following:

Chef::Config.http_proxy “http://PROXY_IP:80” Chef::Config.http_proxy_user “USERNAME” Chef::Config.http_proxy_pass “PASSWORD”

However, Chef doesnt seem to use the Proxy details above.

Running:

chef-client -c /etc/chef/client.rb

[Tue, 14 May 2013 13:06:49 +0100] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out [Tue, 14 May 2013 13:06:49 +0100] DEBUG: Net::HTTPServerException: 407 “Proxy Authentication Required” /usr/lib/ruby/1.8/net/http.rb:2105:in error!' /usr/lib/ruby/vendor_ruby/chef/rest.rb:289:inraw_http_request' /usr/lib/ruby/vendor_ruby/chef/rest.rb:370:in retriable_rest_request' /usr/lib/ruby/vendor_ruby/chef/rest.rb:256:inraw_http_request' /usr/lib/ruby/vendor_ruby/chef/rest.rb:250:in api_request' /usr/lib/ruby/vendor_ruby/chef/rest.rb:140:inget_rest' /usr/lib/ruby/vendor_ruby/chef/node.rb:604:in load' /usr/lib/ruby/vendor_ruby/chef/node.rb:588:infind_or_create' /usr/lib/ruby/vendor_ruby/chef/client.rb:294:in load_node' /usr/lib/ruby/vendor_ruby/chef/client.rb:409:indo_run' /usr/lib/ruby/vendor_ruby/chef/client.rb:176:in run' /usr/lib/ruby/vendor_ruby/chef/application.rb:140:inrun_chef_client' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:274:in run_application' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:267:inloop' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:267:in run_application' /usr/lib/ruby/vendor_ruby/chef/application.rb:72:inrun' /usr/bin/chef-client:25 [Tue, 14 May 2013 13:06:49 +0100] FATAL: Net::HTTPServerException: 407 “Proxy Authentication Required”

Any help is appreciated.

Thanks.

more →
1 45