Skip to content

@maxlazio /gist:3a8410c08c654a95c826 secret
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
chef err stack output
[2012-10-29T08:21:39+00:00] INFO: Processing rvm_gem[bundler] action install (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb line 48)
================================================================================
Error executing action `install` on resource 'rvm_gem[bundler]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" ----
STDOUT:
STDERR: Ruby nil@global is not installed.
---- End output of bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" ----
Ran bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" returned 1
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/libraries/rvm_rubygems_package.rb:64:in `gem_paths'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:57:in `gem_package_wrapper'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:35:in `class_from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:34:in `each'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:34:in `class_from_file'
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb
47: def gem_package_wrapper(exec_action, ruby_global_gemset)
48: g = rvm_gem new_resource.package_name do
49: ruby_string ruby_global_gemset
50: source new_resource.source if new_resource.source
51: options new_resource.options if new_resource.options
52: version new_resource.version if new_resource.version
53: gem_binary new_resource.gem_binary if new_resource.gem_binary
54: user new_resource.user
55: action :nothing
56: end
57: g.run_action(exec_action)
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:48:in `gem_package_wrapper'
rvm_gem("bundler") do
retry_delay 2
ruby_string "nil@global"
user "vagrant"
retries 0
action [:nothing]
cookbook_name :rvm
package_name "bundler"
provider Chef::Provider::Package::RVMRubygems
end
================================================================================
Error executing action `install` on resource 'rvm_global_gem[bundler]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
rvm_gem[bundler] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb line 48) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" ----
STDOUT:
STDERR: Ruby nil@global is not installed.
---- End output of bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" ----
Ran bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" returned 1
Cookbook Trace:
---------------
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/libraries/rvm_rubygems_package.rb:64:in `gem_paths'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:57:in `gem_package_wrapper'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:35:in `class_from_file'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:34:in `each'
/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb:34:in `class_from_file'
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb
182: opts[:global_gems].each do |gem|
183: rvm_global_gem gem[:name] do
184: user opts[:user]
185: [:version, :action, :options, :source].each do |attr|
186: send(attr, gem[attr]) if gem[attr]
187: end
188: end
189: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/libraries/chef_rvm_recipe_helpers.rb:183:in `install_rubies'
rvm_global_gem("bundler") do
retry_delay 2
user "vagrant"
retries 0
recipe_name "user"
action :install
cookbook_name :rvm
package_name "bundler"
end
[2012-10-29T08:21:41+00:00] ERROR: Running exception handlers
[2012-10-29T08:21:41+00:00] ERROR: Exception handlers complete
[2012-10-29T08:21:41+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2012-10-29T08:21:41+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: rvm_global_gem[bundler] (rvm::user line 183) had an error: Mixlib::ShellOut::ShellCommandFailed: rvm_gem[bundler] (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/rvm/providers/global_gem.rb line 48) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" ----
STDOUT:
STDERR: Ruby nil@global is not installed.
---- End output of bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" ----
Ran bash -c "source /home/vagrant/.rvm/scripts/rvm && rvm nil@global do gem env gempath" returned 1
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
Something went wrong with that request. Please try again.