On Wed, Apr 11, 2012 at 08:53:57AM +1200, AJ Christensen wrote:
include cookbook 'apt' before you try to install packages.
Thanks, added.
error 100 is a generic failure, usually apt-get update needs to be run
-- a new source may have been added but not fetched, etc.
Still same. Here is the very first run, right after xen-create-image, running
"knife bootstrap". We see
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: execute[apt-get-update] sh(apt-get update)
[Wed, 11 Apr 2012 16:42:28 +0100] INFO: execute[apt-get-update] ran successfully
However, normally, there is "apt-get update" output in between.
Any ideas?
Logfile created on Wed Apr 11 16:42:09 +0100 2012 by logger.rb/22285
[Wed, 11 Apr 2012 16:42:09 +0100] INFO: Daemonizing..
[Wed, 11 Apr 2012 16:42:09 +0100] INFO: Forked, in 5769. Priveleges: 0 0
[Wed, 11 Apr 2012 16:42:24 +0100] INFO: *** Chef 0.10.8 ***
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Client key /etc/chef/client.pem is not present - registering
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Run List is [role[debian], role[apt]]
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Run List expands to [apt, packages, ntp, chef-client, users::sysadmins, sudo]
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Starting Chef Run for t12.src.gla.ac.uk
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Running start handlers
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Start handlers complete.
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Loading cookbooks [apt, chef-client, ntp, packages, sudo, users]
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Storing updated cookbooks/sudo/recipes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:25 +0100] INFO: Storing updated cookbooks/sudo/attributes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/sudo/README.md in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/sudo/metadata.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/sudo/metadata.json in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/packages/recipes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/packages/attributes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/packages/README.md in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/packages/metadata.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/resources/repository.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/providers/repository.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/recipes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/recipes/cacher-client.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/recipes/cacher-ng.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/CONTRIBUTING in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/LICENSE in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/README.md in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/metadata.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/CHANGELOG.md in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/apt/metadata.json in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/recipes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/recipes/delete_validation.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/recipes/config.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/recipes/service.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/attributes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/README.md in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/metadata.rb in the cache.
[Wed, 11 Apr 2012 16:42:26 +0100] INFO: Storing updated cookbooks/chef-client/metadata.json in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/users/recipes/sysadmins.rb in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/users/README.md in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/users/metadata.rb in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/ntp/recipes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/ntp/attributes/default.rb in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/ntp/README.md in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/ntp/metadata.rb in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Storing updated cookbooks/ntp/metadata.json in the cache.
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: Processing execute[apt-get-update] action run (apt::default line 22)
[Wed, 11 Apr 2012 16:42:27 +0100] INFO: execute[apt-get-update] sh(apt-get update)
[Wed, 11 Apr 2012 16:42:28 +0100] INFO: execute[apt-get-update] ran successfully
[Wed, 11 Apr 2012 16:42:28 +0100] INFO: Processing execute[apt-get update] action nothing (apt::default line 29)
[Wed, 11 Apr 2012 16:42:28 +0100] INFO: Processing package[update-notifier-common] action install (apt::default line 36)
[Wed, 11 Apr 2012 16:42:32 +0100] ERROR: package[update-notifier-common] (apt::default line 36) has had an error
[Wed, 11 Apr 2012 16:42:32 +0100] ERROR: package[update-notifier-common] (/var/cache/chef/cookbooks/apt/recipes/default.rb:36:in from_file') had an error: package[update-notifier-common] (apt::default line 36) had an error: Chef::Exceptions::Exec: apt-get -q -y install update-notifier-common=0.99.3debian8 returned 100, expected 0 /usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:127:in
handle_command_failures'
/usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:74:in run_command' /usr/lib/ruby/vendor_ruby/chef/mixin/command.rb:142:in
run_command_with_systems_locale'
/usr/lib/ruby/vendor_ruby/chef/provider/package/apt.rb:92:in install_package' /usr/lib/ruby/vendor_ruby/chef/provider/package.rb:60:in
action_install'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:440:in send' /usr/lib/ruby/vendor_ruby/chef/resource.rb:440:in
run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:45:in run_action' /usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in
converge'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in each' /usr/lib/ruby/vendor_ruby/chef/runner.rb:81:in
converge'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:94:in execute_each_resource' /usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in
call'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:116:in call_iterator_block' /usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:85:in
step'
/usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:104:in iterate' /usr/lib/ruby/vendor_ruby/chef/resource_collection/stepable_iterator.rb:55:in
each_with_index'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:92:in execute_each_resource' /usr/lib/ruby/vendor_ruby/chef/runner.rb:76:in
converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:312:in converge' /usr/lib/ruby/vendor_ruby/chef/client.rb:160:in
run'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:239:in run_application' /usr/lib/ruby/vendor_ruby/chef/application/client.rb:229:in
loop'
/usr/lib/ruby/vendor_ruby/chef/application/client.rb:229:in run_application' /usr/lib/ruby/vendor_ruby/chef/application.rb:67:in
run'
/usr/bin/chef-client:25
[Wed, 11 Apr 2012 16:42:32 +0100] ERROR: Running exception handlers
[Wed, 11 Apr 2012 16:42:32 +0100] FATAL: Saving node information to /var/cache/chef/failed-run-data.json
[Wed, 11 Apr 2012 16:42:32 +0100] ERROR: Exception handlers complete
[Wed, 11 Apr 2012 16:42:32 +0100] ERROR: Chef::Exceptions::Exec: package[update-notifier-common] (apt::default line 36) had an error: Chef::Exceptions::Exec: apt-get -q -y install update-notifier-common=0.99.3debian8 returned 100, expected 0
[Wed, 11 Apr 2012 16:42:32 +0100] FATAL: Stacktrace dumped to /var/cache/chef/chef-stacktrace.out
[Wed, 11 Apr 2012 16:42:32 +0100] ERROR: Sleeping for 1800 seconds before trying again
Motiejus