I have created a simple wrapper cookbook called oracle-java for the opscode java cookbook, which can be found here: https://github.com/st-h/oracle-java
When I try to run that cookbook it fails since the oracle-java cookbook does not contain the template, which is referenced by the java cookbook. If I copy that template from the java cookbook to the oracle-java cookbook, it works fine. It doesn’t make much sense to me that a wrapper cookbook needs to include templates, that are already present in the wrapped cookbook. What is going on here?
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge…
[2013-11-23T11:41:05+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-23T11:41:05+00:00] INFO: Chef-client pid: 2087
[2013-11-23T11:41:06+00:00] INFO: Setting the run_list to [“recipe[apt]”, “recipe[oracle-java::default]”] from JSON
[2013-11-23T11:41:06+00:00] INFO: Run List is [recipe[apt], recipe[oracle-java::default]]
[2013-11-23T11:41:06+00:00] INFO: Run List expands to [apt, oracle-java::default]
[2013-11-23T11:41:06+00:00] INFO: Starting Chef Run for oracle-java-berkshelf
[2013-11-23T11:41:06+00:00] INFO: Running start handlers
[2013-11-23T11:41:06+00:00] INFO: Start handlers complete.
[2013-11-23T11:41:06+00:00] INFO: Running queued delayed notifications before re-raising exception
[2013-11-23T11:41:06+00:00] ERROR: Running exception handlers
[2013-11-23T11:41:06+00:00] ERROR: Exception handlers complete
[2013-11-23T11:41:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-11-23T11:41:06+00:00] ERROR: template[/usr/local/java/.default.jinfo] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb line 179) had an error: Chef::Exceptions::FileNotFound: Cookbook ‘oracle-java’ (0.1.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
================================================================================
Error executing action create on resource ‘template[/usr/local/java/.default.jinfo]’
Chef::Exceptions::FileNotFound
Cookbook ‘oracle-java’ (0.1.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge…
[2013-11-23T11:41:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I have created a simple wrapper cookbook called oracle-java for the opscode java cookbook, which can be found here: https://github.com/st-h/oracle-java
When I try to run that cookbook it fails since the oracle-java cookbook does not contain the template, which is referenced by the java cookbook. If I copy that template from the java cookbook to the oracle-java cookbook, it works fine. It doesn’t make much sense to me that a wrapper cookbook needs to include templates, that are already present in the wrapped cookbook. What is going on here?
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:05+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-23T11:41:05+00:00] INFO: Chef-client pid: 2087
[2013-11-23T11:41:06+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[oracle-java::default]"] from JSON
[2013-11-23T11:41:06+00:00] INFO: Run List is [recipe[apt], recipe[oracle-java::default]]
[2013-11-23T11:41:06+00:00] INFO: Run List expands to [apt, oracle-java::default]
[2013-11-23T11:41:06+00:00] INFO: Starting Chef Run for oracle-java-berkshelf
[2013-11-23T11:41:06+00:00] INFO: Running start handlers
[2013-11-23T11:41:06+00:00] INFO: Start handlers complete.
[2013-11-23T11:41:06+00:00] INFO: Running queued delayed notifications before re-raising exception
[2013-11-23T11:41:06+00:00] ERROR: Running exception handlers
[2013-11-23T11:41:06+00:00] ERROR: Exception handlers complete
[2013-11-23T11:41:06+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2013-11-23T11:41:06+00:00] ERROR: template[/usr/local/java/.default.jinfo] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb line 179) had an error: Chef::Exceptions::FileNotFound: Cookbook 'oracle-java' (0.1.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
================================================================================
Error executing action create on resource 'template[/usr/local/java/.default.jinfo]'
Chef::Exceptions::FileNotFound
Cookbook 'oracle-java' (0.1.0) does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I would interpret this as a bug in the wrapped cookbook's provider.
Probably worth a ticket at tickets.opscode.com.
It's best practice for providers to hardcode the "cookbook" attribute
in the inline "template" resource, otherwise when people try to wrap
that cookbook, the cookbook that's searched is the caller's rather
than the callee's.
I have created a simple wrapper cookbook called oracle-java for the opscode
java cookbook, which can be found here: https://github.com/st-h/oracle-java
When I try to run that cookbook it fails since the oracle-java cookbook does
not contain the template, which is referenced by the java cookbook. If I
copy that template from the java cookbook to the oracle-java cookbook, it
works fine. It doesn’t make much sense to me that a wrapper cookbook needs
to include templates, that are already present in the wrapped cookbook.
What is going on here?
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:05+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-23T11:41:05+00:00] INFO: Chef-client pid: 2087
[2013-11-23T11:41:06+00:00] INFO: Setting the run_list to ["recipe[apt]",
"recipe[oracle-java::default]"] from JSON
[2013-11-23T11:41:06+00:00] INFO: Run List is [recipe[apt],
recipe[oracle-java::default]]
[2013-11-23T11:41:06+00:00] INFO: Run List expands to [apt,
oracle-java::default]
[2013-11-23T11:41:06+00:00] INFO: Starting Chef Run for
oracle-java-berkshelf
[2013-11-23T11:41:06+00:00] INFO: Running start handlers
[2013-11-23T11:41:06+00:00] INFO: Start handlers complete.
[2013-11-23T11:41:06+00:00] INFO: Running queued delayed notifications
before re-raising exception
[2013-11-23T11:41:06+00:00] ERROR: Running exception handlers
[2013-11-23T11:41:06+00:00] ERROR: Exception handlers complete
[2013-11-23T11:41:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-11-23T11:41:06+00:00] ERROR: template[/usr/local/java/.default.jinfo]
(/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb line 179)
had an error: Chef::Exceptions::FileNotFound: Cookbook 'oracle-java' (0.1.0)
does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
================================================================================
Error executing action create on resource
'template[/usr/local/java/.default.jinfo]'
Chef::Exceptions::FileNotFound
Cookbook 'oracle-java' (0.1.0) does not contain a file at any of these
locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I would interpret this as a bug in the wrapped cookbook's provider.
Probably worth a ticket at tickets.opscode.com.
It's best practice for providers to hardcode the "cookbook" attribute
in the inline "template" resource, otherwise when people try to wrap
that cookbook, the cookbook that's searched is the caller's rather
than the callee's.
I have created a simple wrapper cookbook called oracle-java for the opscode
java cookbook, which can be found here: https://github.com/st-h/oracle-java
When I try to run that cookbook it fails since the oracle-java cookbook does
not contain the template, which is referenced by the java cookbook. If I
copy that template from the java cookbook to the oracle-java cookbook, it
works fine. It doesn’t make much sense to me that a wrapper cookbook needs
to include templates, that are already present in the wrapped cookbook.
What is going on here?
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:05+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-23T11:41:05+00:00] INFO: Chef-client pid: 2087
[2013-11-23T11:41:06+00:00] INFO: Setting the run_list to ["recipe[apt]",
"recipe[oracle-java::default]"] from JSON
[2013-11-23T11:41:06+00:00] INFO: Run List is [recipe[apt],
recipe[oracle-java::default]]
[2013-11-23T11:41:06+00:00] INFO: Run List expands to [apt,
oracle-java::default]
[2013-11-23T11:41:06+00:00] INFO: Starting Chef Run for
oracle-java-berkshelf
[2013-11-23T11:41:06+00:00] INFO: Running start handlers
[2013-11-23T11:41:06+00:00] INFO: Start handlers complete.
[2013-11-23T11:41:06+00:00] INFO: Running queued delayed notifications
before re-raising exception
[2013-11-23T11:41:06+00:00] ERROR: Running exception handlers
[2013-11-23T11:41:06+00:00] ERROR: Exception handlers complete
[2013-11-23T11:41:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-11-23T11:41:06+00:00] ERROR: template[/usr/local/java/.default.jinfo]
(/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb line 179)
had an error: Chef::Exceptions::FileNotFound: Cookbook 'oracle-java' (0.1.0)
does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
================================================================================
Error executing action create on resource
'template[/usr/local/java/.default.jinfo]'
Chef::Exceptions::FileNotFound
Cookbook 'oracle-java' (0.1.0) does not contain a file at any of these
locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I would interpret this as a bug in the wrapped cookbook's provider.
Probably worth a ticket at tickets.opscode.com.
It's best practice for providers to hardcode the "cookbook" attribute
in the inline "template" resource, otherwise when people try to wrap
that cookbook, the cookbook that's searched is the caller's rather
than the callee's.
I have created a simple wrapper cookbook called oracle-java for the opscode
java cookbook, which can be found here: https://github.com/st-h/oracle-java
When I try to run that cookbook it fails since the oracle-java cookbook does
not contain the template, which is referenced by the java cookbook. If I
copy that template from the java cookbook to the oracle-java cookbook, it
works fine. It doesn’t make much sense to me that a wrapper cookbook needs
to include templates, that are already present in the wrapped cookbook.
What is going on here?
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:05+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-23T11:41:05+00:00] INFO: Chef-client pid: 2087
[2013-11-23T11:41:06+00:00] INFO: Setting the run_list to ["recipe[apt]",
"recipe[oracle-java::default]"] from JSON
[2013-11-23T11:41:06+00:00] INFO: Run List is [recipe[apt],
recipe[oracle-java::default]]
[2013-11-23T11:41:06+00:00] INFO: Run List expands to [apt,
oracle-java::default]
[2013-11-23T11:41:06+00:00] INFO: Starting Chef Run for
oracle-java-berkshelf
[2013-11-23T11:41:06+00:00] INFO: Running start handlers
[2013-11-23T11:41:06+00:00] INFO: Start handlers complete.
[2013-11-23T11:41:06+00:00] INFO: Running queued delayed notifications
before re-raising exception
[2013-11-23T11:41:06+00:00] ERROR: Running exception handlers
[2013-11-23T11:41:06+00:00] ERROR: Exception handlers complete
[2013-11-23T11:41:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-11-23T11:41:06+00:00] ERROR: template[/usr/local/java/.default.jinfo]
(/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb line 179)
had an error: Chef::Exceptions::FileNotFound: Cookbook 'oracle-java' (0.1.0)
does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
================================================================================
Error executing action create on resource
'template[/usr/local/java/.default.jinfo]'
Chef::Exceptions::FileNotFound
Cookbook 'oracle-java' (0.1.0) does not contain a file at any of these
locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
I would interpret this as a bug in the wrapped cookbook's provider.
Probably worth a ticket at tickets.opscode.com.
It's best practice for providers to hardcode the "cookbook" attribute
in the inline "template" resource, otherwise when people try to wrap
that cookbook, the cookbook that's searched is the caller's rather
than the callee's.
I have created a simple wrapper cookbook called oracle-java for the opscode
java cookbook, which can be found here: https://github.com/st-h/oracle-java
When I try to run that cookbook it fails since the oracle-java cookbook does
not contain the template, which is referenced by the java cookbook. If I
copy that template from the java cookbook to the oracle-java cookbook, it
works fine. It doesn’t make much sense to me that a wrapper cookbook needs
to include templates, that are already present in the wrapped cookbook.
What is going on here?
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:05+00:00] INFO: *** Chef 11.8.0 ***
[2013-11-23T11:41:05+00:00] INFO: Chef-client pid: 2087
[2013-11-23T11:41:06+00:00] INFO: Setting the run_list to ["recipe[apt]",
"recipe[oracle-java::default]"] from JSON
[2013-11-23T11:41:06+00:00] INFO: Run List is [recipe[apt],
recipe[oracle-java::default]]
[2013-11-23T11:41:06+00:00] INFO: Run List expands to [apt,
oracle-java::default]
[2013-11-23T11:41:06+00:00] INFO: Starting Chef Run for
oracle-java-berkshelf
[2013-11-23T11:41:06+00:00] INFO: Running start handlers
[2013-11-23T11:41:06+00:00] INFO: Start handlers complete.
[2013-11-23T11:41:06+00:00] INFO: Running queued delayed notifications
before re-raising exception
[2013-11-23T11:41:06+00:00] ERROR: Running exception handlers
[2013-11-23T11:41:06+00:00] ERROR: Exception handlers complete
[2013-11-23T11:41:06+00:00] FATAL: Stacktrace dumped to
/var/chef/cache/chef-stacktrace.out
[2013-11-23T11:41:06+00:00] ERROR: template[/usr/local/java/.default.jinfo]
(/tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb line 179)
had an error: Chef::Exceptions::FileNotFound: Cookbook 'oracle-java' (0.1.0)
does not contain a file at any of these locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
================================================================================
Error executing action create on resource
'template[/usr/local/java/.default.jinfo]'
Chef::Exceptions::FileNotFound
Cookbook 'oracle-java' (0.1.0) does not contain a file at any of these
locations:
templates/ubuntu-12.04/oracle.jinfo.erb
templates/ubuntu/oracle.jinfo.erb
templates/default/oracle.jinfo.erb
Resource Declaration:
In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/java/providers/ark.rb
[2013-11-23T11:41:05+00:00] INFO: Forking chef instance to converge...
[2013-11-23T11:41:06+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
Chef run process exited unsuccessfully (exit code 1)
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.