Skip to content

Instantly share code, notes, and snippets.

@mrnugget
Created May 31, 2012 09:56
Show Gist options
  • Select an option

  • Save mrnugget/2842342 to your computer and use it in GitHub Desktop.

Select an option

Save mrnugget/2842342 to your computer and use it in GitHub Desktop.
Output of running chef-solo
include_recipe 'ruby_build'
# chef-rbenv https://github.com/fnichol/chef-rbenv
include_recipe 'rbenv::user'
# rbenv_rehash "Rehashing tflowers' rbenv" do
# user "two-dns"
# end
rbenv_gem 'bundler' do
rbenv_version '1.9.3-p194'
root_path '/home/two-dns/.rbenv'
user 'two-dns'
action :install
end
[Thu, 31 May 2012 09:53:39 +0000] INFO: Processing execute[Install ruby-build] action nothing (ruby_build::default line 38)
[Thu, 31 May 2012 09:53:39 +0000] INFO: Processing directory[/home/vagrant/chef] action create (ruby_build::default line 48)
[Thu, 31 May 2012 09:53:39 +0000] INFO: Processing git[/home/vagrant/chef/ruby-build] action checkout (ruby_build::default line 52)
[Thu, 31 May 2012 09:53:39 +0000] INFO: git[/home/vagrant/chef/ruby-build] cloning repo git://github.com/sstephenson/ruby-build.git to /home/vagrant/chef/ruby-build
[Thu, 31 May 2012 09:53:41 +0000] INFO: git[/home/vagrant/chef/ruby-build] checked out branch: master reference: b53c445c200fd2118867e0d5a36da1384bd99b10
[Thu, 31 May 2012 09:53:41 +0000] INFO: git[/home/vagrant/chef/ruby-build] sending run action to execute[Install ruby-build] (immediate)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing execute[Install ruby-build] action run (ruby_build::default line 38)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing package[git-core] action install (rbenv::user_install line 43)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing package[grep] action install (rbenv::user_install line 43)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing template[/etc/profile.d/rbenv.sh] action create (rbenv::user_install line 24)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing git[/home/two-dns/.rbenv] action checkout (rbenv::user_install line 61)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing bash[Initialize rbenv (two-dns)] action run (rbenv::user_install line 80)
[Thu, 31 May 2012 09:53:41 +0000] INFO: bash[Initialize rbenv (two-dns)] ran successfully
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing log[rbenv-post-init-two-dns] action write (rbenv::user_install line 87)
[Thu, 31 May 2012 09:53:41 +0000] INFO: rbenv-post-init-two-dns
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing rbenv_ruby[1.9.3-p194 (two-dns)] (two-dns) action install (rbenv::user line 27)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing rbenv_global[1.9.3-p194 (two-dns)] (two-dns) action create (rbenv::user line 34)
[Thu, 31 May 2012 09:53:41 +0000] INFO: Processing rbenv_gem[1.9.3-p194::bundler] (two-dns) action install (main::default line 37)
[Thu, 31 May 2012 09:53:41 +0000] ERROR: rbenv_gem[1.9.3-p194::bundler] (two-dns) (main::default line 37) has had an error
[Thu, 31 May 2012 09:53:41 +0000] ERROR: rbenv_gem[1.9.3-p194::bundler] (two-dns) (/home/vagrant/chef/cookbooks/main/recipes/default.rb:37:in `from_file') had an error:
rbenv_gem[1.9.3-p194::bundler] (two-dns) (main::default line 37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'
---- Begin output of env gempath ----
STDOUT:
STDERR: env: gempath: No such file or directory
---- End output of env gempath ----
Ran env gempath returned 127
/var/lib/gems/1.9.1/gems/mixlib-shellout-1.0.0.rc.1/lib/mixlib/shellout.rb:242:in `invalid!'
/var/lib/gems/1.9.1/gems/mixlib-shellout-1.0.0.rc.1/lib/mixlib/shellout.rb:228:in `error!'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/mixin/shell_out.rb:36:in `shell_out!'
/home/vagrant/chef/cookbooks/rbenv/libraries/chef_rbenv_mixin.rb:30:in `shell_out!'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/rubygems.rb:257:in `gem_paths'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/rubygems.rb:271:in `gem_specification'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/rubygems.rb:89:in `installed_versions'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/rubygems.rb:410:in `matching_installed_versions'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/rubygems.rb:393:in `current_version'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/provider/package/rubygems.rb:426:in `load_current_resource'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource.rb:453:in `run_action'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/runner.rb:49:in `run_action'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/runner.rb:85:in `block (2 levels) in converge'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/runner.rb:85:in `each'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/runner.rb:85:in `block in converge'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection.rb:94:in `block in execute_each_resource'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/resource_collection.rb:92:in `execute_each_resource'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/runner.rb:80:in `converge'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/client.rb:330:in `converge'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/client.rb:163:in `run'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/application/solo.rb:207:in `block in run_application'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/application/solo.rb:195:in `loop'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/application/solo.rb:195:in `run_application'
/var/lib/gems/1.9.1/gems/chef-0.10.10/lib/chef/application.rb:70:in `run'
/var/lib/gems/1.9.1/gems/chef-0.10.10/bin/chef-solo:25:in `<top (required)>'
/usr/local/bin/chef-solo:19:in `load'
/usr/local/bin/chef-solo:19:in `<main>'
[Thu, 31 May 2012 09:53:41 +0000] ERROR: Running exception handlers
[Thu, 31 May 2012 09:53:41 +0000] ERROR: Exception handlers complete
[Thu, 31 May 2012 09:53:41 +0000] FATAL: Stacktrace dumped to /home/vagrant/chef/chef-stacktrace.out
[Thu, 31 May 2012 09:53:41 +0000] FATAL: Mixlib::ShellOut::ShellCommandFailed: rbenv_gem[1.9.3-p194::bundler] (two-dns) (main::default line 37) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'
---- Begin output of env gempath ----
STDOUT:
STDERR: env: gempath: No such file or directory
---- End output of env gempath ----
Ran env gempath returned 127
{
"rbenv": {
"user_installs": [
{ "user": "two-dns",
"rubies": ["1.9.3-p194"],
"global": "1.9.3-p194"
}
]
},
"run_list": ["recipe[main]"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment