Skip to content

Instantly share code, notes, and snippets.

@ramontayag
Last active December 10, 2015 08:08
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 ramontayag/4405741 to your computer and use it in GitHub Desktop.
Save ramontayag/4405741 to your computer and use it in GitHub Desktop.
[2012-12-29T10:15:44+01:00] WARN: remote_file is deprecated for fetching files from cookbooks. Use cookbook_file instead
[2012-12-29T10:15:44+01:00] WARN: From remote_file[/var/lib/postgresql/9.2/main/server.crt] on /tmp/chef-solo/cookbooks/postgresql/recipes/server_debian.rb:84:in `block in from_file'
================================================================================
Error executing action `create` on resource 'remote_file[/var/lib/postgresql/9.2/main/server.crt]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'postgresql' (1.0.1) does not contain a file at any of these locations:
files/ubuntu-10.04//tmp/chef-solo/files/postgresql_keys/server.crt
files/ubuntu//tmp/chef-solo/files/postgresql_keys/server.crt
files/default//tmp/chef-solo/files/postgresql_keys/server.crt
Resource Declaration:
---------------------
# In /tmp/chef-solo/cookbooks/postgresql/recipes/server_debian.rb
84: remote_file target_file do
85: source file_path
86: owner "postgres"
87: group "postgres"
88: end
89: end
Compiled Resource:
------------------
# Declared in /tmp/chef-solo/cookbooks/postgresql/recipes/server_debian.rb:84:in `block in from_file'
remote_file("/var/lib/postgresql/9.2/main/server.crt") do
provider Chef::Provider::RemoteFile
action "create"
retries 0
retry_delay 2
path "/var/lib/postgresql/9.2/main/server.crt"
backup 5
source "/tmp/chef-solo/files/postgresql_keys/server.crt"
cookbook_name :postgresql
recipe_name "server_debian"
owner "postgres"
group "postgres"
end
[2012-12-29T10:15:44+01:00] ERROR: Running exception handlers
[2012-12-29T10:15:44+01:00] ERROR: Exception handlers complete
[2012-12-29T10:15:44+01:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2012-12-29T10:15:44+01:00] FATAL: Chef::Exceptions::FileNotFound: remote_file[/var/lib/postgresql/9.2/main/server.crt] (postgresql::server_debian line 84) had an error: Chef::Exceptions::FileNotFound: Cookbook 'postgresql' (1.0.1) does not contain a file at any of these locations:
files/ubuntu-10.04//tmp/chef-solo/files/postgresql_keys/server.crt
files/ubuntu//tmp/chef-solo/files/postgresql_keys/server.crt
files/default//tmp/chef-solo/files/postgresql_keys/server.crt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment