Skip to content

Instantly share code, notes, and snippets.

DEBUG: Loading attributes from /srv/chef/cache/cookbooks/chef/attributes/server_proxy.rb
DEBUG: Loading Attribute chef
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_attribute.rb:45:in `include_attribute': undefined method `[]' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_attribute.rb:32:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_attribute.rb:32:in `include_attribute'
from /srv/chef/cache/cookbooks/chef/attributes/server_proxy.rb:20:in `from_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:83:in `load_attribute_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:76:in `load_attributes'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:75:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:75:in `load_attributes'
@powdahound
powdahound / chef-solo.log
Created June 9, 2010 17:15
Running chef-solo on Ubuntu 10.04
[Wed, 09 Jun 2010 17:14:03 +0000] DEBUG: ---- Begin output of apt-get -q -y install runit=2.0.0-1ubuntu4 ----
[Wed, 09 Jun 2010 17:14:03 +0000] DEBUG: STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
fgetty runit
Suggested packages:
runit-run socklog-run
The following NEW packages will be installed:
fgetty runit
ops1:~/chef-repo > knife search node "*:*" -a hostname
{
"rows": [
{
"id": "ops1.example.com",
"hostname": "ops1"
}
],
"start": 0,
"total": 1
@powdahound
powdahound / chef-solr.log
Created June 5, 2010 18:57
Error starting chef-solr
2010-06-05_18:56:20.21448 2010-06-05 18:56:20.186::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2010-06-05_18:56:20.44520 2010-06-05 18:56:20.443::INFO: jetty-6.1.3
2010-06-05_18:56:20.78129 2010-06-05 18:56:20.781::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@148cc8c{/solr,jar:file:/var/chef/solr-jetty/webapps/solr.war!/}
2010-06-05_18:56:20.81625 java.util.zip.ZipException: error in opening zip file
2010-06-05_18:56:20.81626 at java.util.zip.ZipFile.open(Native Method)
2010-06-05_18:56:20.81626 at java.util.zip.ZipFile.<init>(ZipFile.java:114)
2010-06-05_18:56:20.81627 at java.util.jar.JarFile.<init>(JarFile.java:133)
2010-06-05_18:56:20.81627 at java.util.jar.JarFile.<init>(JarFile.java:97)
2010-06-05_18:56:20.81628 at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp(TagLibConfiguration.java:171)
2010-06-05_18:56:20.81628 at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1215)
#> sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libmysqlclient-dev is a virtual package provided by:
libmysqlclient15-dev 5.1.30really5.0.75-0ubuntu10.3
You should explicitly select one to install.
E: Package libmysqlclient-dev has no installation candidate
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/provider/package/apt.rb:57:in `load_current_resource': apt does not have a version of package libmysqlclient-dev (Chef::Exceptions::Package)
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/resource.rb:262:in `run_action'
from //srv/chef/cache/cookbooks/mysql/recipes/client.rb:28:in `from_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:171:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_recipe.rb:38:in `include_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_recipe.rb:26:in `each'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_recipe.rb:26:in `include_recipe'
from //srv/chef/cache/cookbooks/mysql/recipes/default.rb:1:in `from_file'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:171:in `load_recipe'
from /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin
DEBUG: Processing service[nginx]
DEBUG: service[nginx] using Chef::Provider::Service::Init
DEBUG: service[nginx] you have specified a status command, running..
DEBUG: Executing /usr/bin/sv status nginx
DEBUG: ---- Begin output of /usr/bin/sv status nginx ----
DEBUG: STDOUT: run: nginx: (pid 5291) 186682s; run: log: (pid 8850) 7469492s
DEBUG: STDERR:
DEBUG: ---- End output of /usr/bin/sv status nginx ----
DEBUG: Ran /usr/bin/sv status nginx returned 0
DEBUG: service[nginx]: attempting to enable
#>knife role show test
{
"name": "test",
"default_attributes": {
},
"json_class": "Chef::Role",
"run_list": [
"recipe[echo]"
],
@powdahound
powdahound / chef-client.log
Created May 27, 2010 14:13
Command: chef-client -l debug
DEBUG: Loading plugin ohai_time
DEBUG: Loading plugin network_listeners
DEBUG: Plugin network_listeners threw exception #<LoadError: no such file to load -- sigar> /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/lib/ruby/gems/1.8/gems/ohai-0.5.4/lib/ohai/plugins/network_listeners.rb:19:in `from_file'
/usr/lib/ruby/gems/1.8/gems/ohai-0.5.4/lib/ohai/system.rb:199:in `require_plugin'
/usr/lib/ruby/gems/1.8/gems/ohai-0.5.4/lib/ohai/system.rb:194:in `each'
/usr/lib/ruby/gems/1.8/gems/ohai-0.5.4/lib/ohai/system.rb:194:in `require_plugin'
/usr/lib/ruby/gems/1.8/gems/ohai-0.5.4/lib/ohai/system.rb:126:in `all_plugins'
/usr/lib/ruby/gems/1.8/gems/ohai-0.5.4/lib/ohai/system.rb:119:in `each'
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
why = getattr(selectable, method)()
File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/internet/tcp.py", line 460, in doRead
return self.protocol.dataReceived(data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/protocols/basic.py", line 246, in dataReceived
return self.rawDataReceived(data)
File "/usr/local/lib/python2.6/dist-packages/txredis/protocol.py", line 158, in rawDataReceived
self.setLineMode(extra=rest_data)
File "/usr/local/lib/python2.6/dist-packages/Twisted-8.2.0-py2.6-linux-x86_64.egg/twisted/protocols/basic.py", line 261, in setLineMode