Created
August 19, 2009 23:11
-
-
Save bpo/170693 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# chef solo failure. | |
# notes: | |
# - this machine does not have a 'domain' assigned by ohai (hostname -f has no dots in it) | |
# - ubuntu 9.04, fresh installation | |
# sudo chef-solo -c ~/solo.rb -j ~/bootstrap.json -r http://s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz | |
[Wed, 19 Aug 2009 23:05:17 +0000] INFO: Starting Chef Solo Run | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/node/attribute.rb:372:in `method_missing': Attribute domain is not defined! (ArgumentError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/node.rb:236:in `send' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/node.rb:236:in `method_missing' | |
from /tmp/chef-solo/cookbooks/chef/attributes/server.rb:33:in `from_file' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:73:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:71:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:71:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:68:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:117:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:116:in `each_value' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:116:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:67:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:376:in `converge' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:103:in `run_solo' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/solo.rb:191:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/solo.rb:183:in `loop' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/solo.rb:183:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application.rb:57:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/bin/chef-solo:26 | |
from /usr/bin/chef-solo:19:in `load' | |
from /usr/bin/chef-solo:19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~# cat bootstrap.json | |
{ "chef": { "server_fqdn": "chef.example.com" }, "recipes": "chef::client" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /var/chef/cache/cookbooks/chef/attributes/server.rb is a slightly modified version of the one from the s3 bundle. | |
# the salient bit where the error happens is the same: | |
# server.rb:33: chef[:server_fqdn] = "#{chef[:server_hostname]}.#{domain}" unless chef.has_key?(:server_fqdn) | |
# chef-client --server https://chef.doloreslabs.com -j bootstrap.json | |
[Wed, 19 Aug 2009 23:14:36 +0000] INFO: Starting Chef Run | |
/usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/node/attribute.rb:372:in `method_missing': Attribute domain is not defined! (ArgumentError) | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/node.rb:236:in `send' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/node.rb:236:in `method_missing' | |
from /var/chef/cache/cookbooks/chef/attributes/server.rb:33:in `from_file' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:73:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:71:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook.rb:71:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:68:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:117:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:116:in `each_value' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/cookbook_loader.rb:116:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/compile.rb:67:in `load_attributes' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:376:in `converge' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/client.rb:82:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:186:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:178:in `loop' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application/client.rb:178:in `run_application' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/lib/chef/application.rb:57:in `run' | |
from /usr/lib/ruby/gems/1.8/gems/chef-0.7.8/bin/chef-client:26 | |
from /usr/bin/chef-client:19:in `load' | |
from /usr/bin/chef-client:19 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment