secret
Created

chef err stack output

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
[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.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.