The ubuntu cookbook giving an error

I am running the unmodified ubuntu recipe and it gives me the following error.

[Tue, 03 Jan 2012 00:36:01 +1300] INFO: *** Chef 0.10.8 ***
[Tue, 03 Jan 2012 00:36:02 +1300] INFO: Setting the run_list to
[“role[base]”] from JSON
[Tue, 03 Jan 2012 00:36:02 +1300] INFO: Run List is [role[base]]
[Tue, 03 Jan 2012 00:36:02 +1300] INFO: Run List expands to [apt,
ubuntu, base_packages, openssl, openssh, cron, logrotate, rsyslog,
rsync, sudo, git, build-essential, fail2ban, admin_user]
[Tue, 03 Jan 2012 00:36:02 +1300] INFO: Starting Chef Run for localhost
[Tue, 03 Jan 2012 00:36:02 +1300] INFO: Running start handlers
[Tue, 03 Jan 2012 00:36:02 +1300] INFO: Start handlers complete.
[Tue, 03 Jan 2012 00:36:03 +1300] ERROR: Running exception handlers
[Tue, 03 Jan 2012 00:36:03 +1300] ERROR: Exception handlers complete
[Tue, 03 Jan 2012 00:36:03 +1300] FATAL: Stacktrace dumped to
/media/sf_tim/source/digital_dialogue/dd-infrastructure/chef-stacktrace.out
[Tue, 03 Jan 2012 00:36:03 +1300] FATAL:
Chef::Exceptions::ResourceNotFound: Cannot find a resource matching
execute[apt-get update] (did you define it first?)

I presume that his resource is defined in the apt recipe?

Hi

On Mon, Jan 2, 2012 at 3:40 AM, Tim Uckun timuckun@gmail.com wrote:

[Tue, 03 Jan 2012 00:36:03 +1300] FATAL:
Chef::Exceptions::ResourceNotFound: Cannot find a resource matching
execute[apt-get update] (did you define it first?)

I presume that his resource is defined in the apt recipe?

My guess is that the problem is that one of your recipes is notifying
"execute[apt-get update]" but in some recent versions of the apt
cookbook the resource name is "apt-get-update".

Hello,

On Mon, Jan 2, 2012 at 11:20 AM, Steven Danna steve@opscode.com wrote:

Hi

On Mon, Jan 2, 2012 at 3:40 AM, Tim Uckun timuckun@gmail.com wrote:

[Tue, 03 Jan 2012 00:36:03 +1300] FATAL:
Chef::Exceptions::ResourceNotFound: Cannot find a resource matching
execute[apt-get update] (did you define it first?)

I presume that his resource is defined in the apt recipe?

My guess is that the problem is that one of your recipes is notifying
"execute[apt-get update]" but in some recent versions of the apt
cookbook the resource name is "apt-get-update".

Correct. The latest apt cookbook should resolve this.

--
Opscode, Inc
Joshua Timberman, Technical Program Manager
IRC, Skype, Twitter, Github: jtimberman

Correct. The latest apt cookbook should resolve this.

I tried to download the latest cookbook like this

knife cookbook download -n apt

and got the error..

ERROR: ArgumentError: Cannot sign the request without a client name,
check that :node_name is assigned

Can somebody decode that for me?

my knife.rb looks like this I am using chef solo.

current_dir = File.dirname(FILE)
log_level :info
log_location STDOUT
cache_type 'BasicFile'
cache_options( :path => "#{current_dir}/checksums" )
cookbook_path ["#{current_dir}/../cookbooks",
"#{current_dir}/../site-cookbooks"]
client_key "#{current_dir}/timuckun.pem"

On 3 January 2012 10:59, Tim Uckun timuckun@gmail.com wrote:

Correct. The latest apt cookbook should resolve this.

I tried to download the latest cookbook like this

knife cookbook download -n apt

You want 'knife cookbook site download apt'. You could use 'knife
cookbook site install apt' to take care of the
download/vendor/blahblah git stuff.

--AJ

and got the error..

ERROR: ArgumentError: Cannot sign the request without a client name,
check that :node_name is assigned

Can somebody decode that for me?

my knife.rb looks like this I am using chef solo.

current_dir = File.dirname(FILE)
log_level :info
log_location STDOUT
cache_type 'BasicFile'
cache_options( :path => "#{current_dir}/checksums" )
cookbook_path ["#{current_dir}/../cookbooks",
"#{current_dir}/../site-cookbooks"]
client_key "#{current_dir}/timuckun.pem"