Skip to content

Instantly share code, notes, and snippets.

@carvil
Created October 6, 2012 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carvil/3845225 to your computer and use it in GitHub Desktop.
Save carvil/3845225 to your computer and use it in GitHub Desktop.
chef-client output with unchanged recipe
[2012-10-06T16:22:22+01:00] DEBUG: Streaming download from http://s3.amazonaws.com/downloads.basho.com/riak/1.2/1.2.0/riak_1.2.0.tar.gz to tempfile /tmp/chef-rest20121006-12984-1x0mmzj
================================================================================
Error executing action `create` on resource 'remote_file[/var/chef/cache/riak_1.2.0.tar.gz]'
================================================================================
Net::HTTPServerException
------------------------
403 "Forbidden"
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/riak/recipes/default.rb
67: remote_file "#{Chef::Config[:file_cache_path]}/#{package_file}" do
68: source package_uri
69: owner "root"
70: mode 0644
71: checksum node['riak']['package']['source_checksum']
72: not_if { File.exists?("#{Chef::Config[:file_cache_path]}/#{package_file}") }
73: end
74:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/riak/recipes/default.rb:67:in `from_file'
remote_file("/var/chef/cache/riak_1.2.0.tar.gz") do
provider Chef::Provider::RemoteFile
action "create"
retries 0
retry_delay 2
path "/var/chef/cache/riak_1.2.0.tar.gz"
backup 5
source "http://s3.amazonaws.com/downloads.basho.com/riak/1.2/1.2.0/riak_1.2.0.tar.gz"
cookbook_name "riak"
recipe_name "default"
owner "root"
mode 420
checksum "e4ca096e5bd8813872dbb182678e91953ec8a5f110030b86a2821496217346a1"
not_if { #code block }
end
[2012-10-06T16:22:22+01:00] DEBUG: Re-raising exception: Net::HTTPServerException - remote_file[/var/chef/cache/riak_1.2.0.tar.gz] (riak::default line 67) had an error: Net::HTTPServerException: 403 "Forbidden"
/opt/chef/embedded/lib/ruby/1.9.1/net/http.rb:2632:in `error!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment