sous-chefs / homebrew

Development repository for the homebrew cookbook
https://supermarket.chef.io/cookbooks/homebrew
Apache License 2.0
152 stars 136 forks source link

Error executing action `create` on resource 'template[/etc/profile.d/jdk.sh]' #133

Closed aktarali closed 6 years ago

aktarali commented 6 years ago

================================================================================ Error executing action create on resource 'template[/etc/profile.d/jdk.sh]'

Chef::Exceptions::FileNotFound
------------------------------
Cookbook 'java' (2.0.1) does not contain a file at any of these locations:
  templates/centos-7.5.1804/jdk.sh.erb
  templates/centos/jdk.sh.erb
  templates/default/jdk.sh.erb
  templates/jdk.sh.erb

Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/java/recipes/set_java_home.rb

 23: template '/etc/profile.d/jdk.sh' do
 24:   source 'jdk.sh.erb'
 25:   mode '0755'
 26: end
 27:

Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/java/recipes/set_java_home.rb:23:in `from_file'

template("/etc/profile.d/jdk.sh") do
  action [:create]
  retries 0
  retry_delay 2
  default_guard_interpreter :default
  source "jdk.sh.erb"
  declared_type :template
  cookbook_name "java"
  recipe_name "set_java_home"
  mode "0755"
  atomic_update true
  path "/etc/profile.d/jdk.sh"
end

[2018-05-25T10:47:29+00:00] INFO: Running queued delayed notifications before re-raising exception chef-client --version Chef: 12.8.1

Running handlers: [2018-05-25T10:47:29+00:00] ERROR: Running exception handlers Running handlers complete [2018-05-25T10:47:29+00:00] ERROR: Exception handlers complete Chef Client failed. 2 resources updated in 07 seconds [2018-05-25T10:47:29+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out [2018-05-25T10:47:29+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report [2018-05-25T10:47:29+00:00] ERROR: template[/etc/profile.d/jdk.sh] (java::set_java_home line 23) had an error: Chef::Exceptions::FileNotFound: Cookbook 'java' (2.0.1) does not contain a file at any of these locations: templates/centos-7.5.1804/jdk.sh.erb templates/centos/jdk.sh.erb templates/default/jdk.sh.erb templates/jdk.sh.erb [2018-05-25T10:47:29+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

aktarali commented 6 years ago

Sorry, wrong Cookbook