Skip to content

Instantly share code, notes, and snippets.

@emmajane
Created February 17, 2014 10:45
Show Gist options
  • Save emmajane/9048437 to your computer and use it in GitHub Desktop.
Save emmajane/9048437 to your computer and use it in GitHub Desktop.
Using Chef 10.12.0 as this is the default package in Ubuntu.
[2014-02-17T10:30:52+00:00] INFO: *** Chef 10.12.0 ***
....
[2014-02-17T10:44:17+00:00] INFO: Discovering pear channel php_pear_channel[pear.drush.org]
[2014-02-17T10:44:22+00:00] INFO: execute[pear channel-discover pear.drush.org] ran successfully
[2014-02-17T10:44:34+00:00] ERROR: php_pear[drush] (drush::pear line 42) has had an error
[2014-02-17T10:44:34+00:00] ERROR: php_pear[drush] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/drush/recipes/pear.rb:42:in `from_file') had an error:
php_pear[drush] (drush::pear line 42) had an error: RuntimeError: Package drush not found in either PEAR or PECL.
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/php/providers/pear.rb:274:in `pecl?'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/php/providers/pear.rb:105:in `load_current_resource'
/usr/lib/ruby/vendor_ruby/chef/resource.rb:471:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:49:in `run_action'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:85:in `block (2 levels) in converge'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:85:in `each'
/usr/lib/ruby/vendor_ruby/chef/runner.rb:85:in `block in converge'
/usr/lib/ruby/vendor_ruby/chef/resource_collection.rb:94:in `block 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:80:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:330:in `converge'
/usr/lib/ruby/vendor_ruby/chef/client.rb:163:in `run'
/usr/lib/ruby/vendor_ruby/chef/application/solo.rb:207:in `block in run_application'
/usr/lib/ruby/vendor_ruby/chef/application/solo.rb:195:in `loop'
/usr/lib/ruby/vendor_ruby/chef/application/solo.rb:195:in `run_application'
/usr/lib/ruby/vendor_ruby/chef/application.rb:70:in `run'
/usr/bin/chef-solo:24:in `<main>'
[2014-02-17T10:44:34+00:00] ERROR: Running exception handlers
[2014-02-17T10:44:34+00:00] ERROR: Exception handlers complete
[2014-02-17T10:44:34+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2014-02-17T10:44:34+00:00] FATAL: RuntimeError: php_pear[drush] (drush::pear line 42) had an error: RuntimeError: Package drush not found in either PEAR or PECL.
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment