Skip to content

Instantly share code, notes, and snippets.

@vignesh-v3
Created November 15, 2016 18:40
Show Gist options
  • Save vignesh-v3/f19704d1e727264e6c15cab0181ef6fc to your computer and use it in GitHub Desktop.
Save vignesh-v3/f19704d1e727264e6c15cab0181ef6fc to your computer and use it in GitHub Desktop.
[ec2-user@ip-172-31-12-212 ~]$ sudo chef-client
Starting Chef Client, version 12.16.42
resolving cookbooks for run list: ["motd"]
Synchronizing Cookbooks:
- motd (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 1 resources
Recipe: motd::default
* template[/etc/motd] action create[2016-11-15T18:39:40+00:00] WARN: File /etc/motd managed by template[/etc/motd] is really a symlink. Managing the source file instead.
[2016-11-15T18:39:40+00:00] WARN: Disable this warning by setting `manage_symlink_source true` on the resource
[2016-11-15T18:39:40+00:00] WARN: In a future Chef release, 'manage_symlink_source' will not be enabled by default
================================================================================
Error executing action `create` on resource 'template[/etc/motd]'
================================================================================
Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'motd' (0.1.0) does not contain a file at any of these locations:
templates/amazon-2016.09/motd.erb
templates/amazon/motd.erb
templates/default/motd.erb
templates/motd.erb
This cookbook _does_ contain: ['/var/chef/cache/cookbooks/motd/templates/default/motd.erb.txt']
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/motd/recipes/default.rb
9: template "/etc/motd" do
10: source "motd.erb"
11: mode "0644"
12: end
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/motd/recipes/default.rb:9:in `from_file'
template("/etc/motd") do
action [:create]
retries 0
retry_delay 2
default_guard_interpreter :default
source "motd.erb"
declared_type :template
cookbook_name "motd"
recipe_name "default"
mode "0644"
path "/etc/motd"
end
Platform:
---------
x86_64-linux
Running handlers:
[2016-11-15T18:39:40+00:00] ERROR: Running exception handlers
Running handlers complete
[2016-11-15T18:39:40+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 01 seconds
[2016-11-15T18:39:41+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2016-11-15T18:39:41+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2016-11-15T18:39:41+00:00] ERROR: template[/etc/motd] (motd::default line 9) had an error: Chef::Exceptions::FileNotFound: Cookbook 'motd' (0.1.0) does not contain a file at any of these locations:
templates/amazon-2016.09/motd.erb
templates/amazon/motd.erb
templates/default/motd.erb
templates/motd.erb
This cookbook _does_ contain: ['/var/chef/cache/cookbooks/motd/templates/default/motd.erb.txt']
[2016-11-15T18:39:41+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment