Chef --> cookbook_file error


#1

Hi,

We are trying to copy files from chef server to chef client nodes and
having some problem. example code:

cookbook_file “/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm” do
source "oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm"
mode "0644"
end

and we receive these errors

[2013-02-07T02:06:44-06:00] ERROR:
cookbook_file[/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm]
(sqlplus::default line 11) has had an error
[2013-02-07T02:06:44-06:00] ERROR:
cookbook_file[/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm]
(/var/chef/cache/cookbooks/sqlplus/recipes/default.rb:11:in
`from_file’) had an error:
cookbook_file[/root/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm]
(sqlplus::default line 11) had an error:
Chef::Exceptions::FileNotFound: Cookbook ‘sqlplus’ (0.0.1) does not
contain a file at any of these locations:
files/redhat-5.3/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm
files/redhat/oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm

However, we already have files there in cookbook sqlplus location :

receipe location:

03:10:59 # ls -lrt /var/chef/cookbooks/sqlplus/recipes
total 8
-rw-r–r-- 1 root root 1086 Jan 5 11:50 fifer.rb
-rw-r–r-- 1 root root 1086 Jan 5 11:50 default.rb

Location of files/default:

03:12:16 # ls -lrt /var/chef/cookbooks/sqlplus/files/default
total 46356
-rw-r–r-- 1 root root 851443 Dec 17 12:06
oracle-instantclient11.1-sqlplus-11.1.0.7.0-1.x86_64.rpm
-rw-r–r-- 1 root root 46613626 Dec 17 12:18
oracle-instantclient11.1-basic-11.1.0.7.0-1.x86_64.rpm

Please help me figure this out.

Thanks,
Goutam