Created
September 2, 2013 04:31
-
-
Save martin2110/6409224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@cnode01 code]# chef-apply tdi.rb | |
Recipe: (chef-apply cookbook)::(chef-apply recipe) | |
* user[tdi] action create (up to date) | |
* template[/tmp/tdi.txt] action create | |
================================================================================ | |
Error executing action `create` on resource 'template[/tmp/tdi.txt]' | |
================================================================================ | |
NoMethodError | |
------------- | |
undefined method `preferred_filename_on_disk_location' for nil:NilClass | |
Resource Declaration: | |
--------------------- | |
# In tdi.rb | |
14: template "/tmp/tdi.txt" do | |
15: source "tdi.erb" | |
16: mode 0440 | |
17: owner "root" | |
18: group "root" | |
19: end | |
Compiled Resource: | |
------------------ | |
# Declared in tdi.rb:14:in `run_chef_recipe' | |
template("/tmp/tdi.txt") do | |
provider Chef::Provider::Template | |
action "create" | |
retries 0 | |
retry_delay 2 | |
path "/tmp/tdi.txt" | |
backup 5 | |
atomic_update true | |
source "tdi.erb" | |
cookbook_name "(chef-apply cookbook)" | |
recipe_name "(chef-apply recipe)" | |
mode 288 | |
owner "root" | |
group "root" | |
end | |
[2013-09-01T21:29:21-07:00] FATAL: Stacktrace dumped to | |
/var/chef/cache/chef-stacktrace.out | |
[2013-09-01T21:29:21-07:00] FATAL: NoMethodError: template[/tmp/tdi.txt] | |
((chef-apply cookbook)::(chef-apply recipe) line 14) had an error: | |
NoMethodError: undefined method `preferred_filename_on_disk_location' | |
for nil:NilClass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment