Skip to content

Instantly share code, notes, and snippets.

@hedgehog
Created April 22, 2011 02:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hedgehog/935890 to your computer and use it in GitHub Desktop.
Save hedgehog/935890 to your computer and use it in GitHub Desktop.
exception from vagrant chef_solo provisioner (chef 0.10.0.rc.0)
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Loading Recipe zlib via include_recipe
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Found recipe default in cookbook zlib
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Loading Recipe xml via include_recipe
[chef] /tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:203:in `read': stderr
[chef] : : stderr
[chef] No such file or directory - /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/distro/debian/etc/init.d/chef-expander: stderr
[chef] (: stderr
[chef] Errno::ENOENT: stderr
[chef] )
: stderr
[chef] from /tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:203:in `from_file'
: stderr
[chef] from /tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:202:in `each'
: stderr
[chef] from /tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:202:in `from_file'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/cookbook_version.rb:472:in `load_recipe'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:94:in `load'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:91:in `each'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:91:in `load'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:55:in `initialize'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:155:in `new'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:155:in `run'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `run_application'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:62:in `run'
: stderr
[chef] from /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
: stderr
[chef] from /usr/bin/chef-solo:19:in `load'
: stderr
[chef] from /usr/bin/chef-solo:19
: stderr
[chef] 19:07:57 -0700] DEBUG: Found recipe default in cookbook xml
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Setting link[/etc/chef/webui.rb] to the state of the prior link[/etc/chef/webui.rb]
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Setting link[/etc/chef/expander.rb] to the state of the prior link[/etc/chef/expander.rb]
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Setting directory[/var/lib/chef] to the state of the prior directory[/var/lib/chef]
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Setting directory[/var/run/chef] to the state of the prior directory[/var/run/chef]
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Setting directory[/var/run/chef] to the state of the prior directory[/var/run/chef]
[Thu, 21 Apr 2011 19:07:57 -0700] ERROR: Running exception handlers
[Thu, 21 Apr 2011 19:07:57 -0700] ERROR: Exception handlers complete
[Thu, 21 Apr 2011 19:07:57 -0700] DEBUG: Re-raising exception: Errno::ENOENT - No such file or directory - /usr/lib/ruby/gems/1.8/gems/chef-0.9.12/distro/debian/etc/init.d/chef-expander
/tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:203:in `read'
/tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:203:in `from_file'
/tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:202:in `each'
/tmp/vagrant-chef/cookbooks-0/chef-server/recipes/rubygems-install.rb:202:in `from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/cookbook_version.rb:472:in `load_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:40:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/mixin/language_include_recipe.rb:27:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:94:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:91:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:91:in `load'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/run_context.rb:55:in `initialize'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:155:in `new'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/client.rb:155:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:190:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `loop'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application/solo.rb:181:in `run_application'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/../lib/chef/application.rb:62:in `run'
/usr/lib/ruby/gems/1.8/gems/chef-0.9.12/bin/chef-solo:25
/usr/bin/chef-solo:19:in `load'
/usr/bin/chef-solo:19
: stdout
[chef] : stdout
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!
cd /tmp/vagrant-chef
chef-solo -c solo.rb -j dna.json
The output of the command prior to failing is outputted below:
[no output]
Vagrant::Config.run do |config|
@cs_root_path = File.dirname(File.absolute_path(__FILE__))
@cs_box = "chef"
@cs_box_url = "#{File.dirname(@cs_root_path)}/lucid64_4.0.4.box"
@cs_nodename = "chef"
@cs_tld = "private.org"
@cs_ip = "33.33.33.254" # Host-only networking
@cs_port = 4000
@cs_ssh_port = 2200
@cs_webui_port = 4040
@cs_kitchen = @cs_root_path
@cs_validation_client_name = "chef-validator"
config.vm.define :chef do |csc|
csc.send :eval, IO.read("#{@cs_root_path}/hobos/vm.bo")
csc.vm.box = "#{@cs_box}"
csc.vm.box_url = "#{@cs_box_url}"
csc.vm.forward_port("chefs", @cs_port, @cs_port)
csc.vm.forward_port("chefs_web", @cs_webui_port, @cs_webui_port)
csc.vm.forward_port("ssh", 22, @cs_ssh_port, :auto => true)
csc.vm.network(@cs_ip)
csc.vm.share_folder("chef", "~/chef", "#{@cs_root_path}/mnt/chef" )
csc.vm.share_folder("chef-server-etc", "/etc/chef", "#{@cs_kitchen}/mnt/etc" )
csc.vm.provision :chef_solo do |chef|
chef.log_level = :debug # :info or :debug
chef.node_name = @cs_nodename
chef.cookbooks_path = [
File.expand_path("#{@cs_kitchen}/cookbooks"),
File.expand_path("#{@cs_kitchen}/site-cookbooks")]
chef.add_recipe("hosts::chefserver")
chef.add_recipe("apt")
chef.add_recipe("build-essential")
chef.add_recipe("chef-server::rubygems-install")
chef.json.merge!({
:chef=> {
:name=> @cs_nodename,
:validation_client_name=> @cs_validation_client_name,
:url_type=>"http",
:server_fqdn=> "#{@cs_nodename}.#{@cs_tld}",
:server_port=> "#{@cs_port}",
:webui_port=> "#{@cs_webui_port}",
:webui_enabled=> true,
}
})
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment