Skip to content

Instantly share code, notes, and snippets.

@jmink
Created December 18, 2015 14:57
Show Gist options
  • Save jmink/03c08492e174977bccac to your computer and use it in GitHub Desktop.
Save jmink/03c08492e174977bccac to your computer and use it in GitHub Desktop.
================================================================================
Error executing action `create` on resource 'cookbook_file[/var/chef/cache/packages-chef-io-public.key]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'apt-chef' (0.2.1) does not contain a file at any of these locations:
files/ubuntu-14.04/file:///opt/opscode/embedded/keys/packages-chef-io-public.key
files/ubuntu/file:///opt/opscode/embedded/keys/packages-chef-io-public.key
files/default/file:///opt/opscode/embedded/keys/packages-chef-io-public.key
files/file:///opt/opscode/embedded/keys/packages-chef-io-public.key
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/apt/providers/repository.rb
97: cookbook_file cached_keyfile do
98: source new_resource.key
99: cookbook new_resource.cookbook
100: mode 00644
101: sensitive new_resource.sensitive if respond_to?(:sensitive)
102: action :create
103: end
104:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/apt/providers/repository.rb:97:in `install_key_from_uri'
cookbook_file("/var/chef/cache/packages-chef-io-public.key") do
provider Chef::Provider::CookbookFile
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
path "/var/chef/cache/packages-chef-io-public.key"
backup 5
atomic_update true
source "file:///opt/opscode/embedded/keys/packages-chef-io-public.key"
declared_type :cookbook_file
cookbook_name "apt-chef"
mode 420
end
[2015-12-18T14:52:55+00:00] INFO: Running queued delayed notifications before re-raising exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment