atmos/cinderella — Issue #54: RVM error during installation of Homebrew
Author: pjkelly
Created: 2011-11-03 17:30:02+00:00
State: open

My installation is erroring out consistently at the `updating homebrew from github` step of installation. I should note that I'm on Lion and I previously had Cinderella installed on Snow Leopard. I went and uninstalled everything to start fresh on Lion, and now I'm running into this. Also, when I open a new terminal window, I get the same shell output: `$rvm_path is not set. rvm cannot load.`

```

hemera:~ pjkelly$ curl -L https://github.com/atmos/cinderella/raw/master/bootstrap.sh -o - | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1233 100 1233 0 0 689 0 0:00:01 0:00:01 --:--:-- 10721
Ensuring we have the latest version of cinderella installed
A first time install takes about 45 minutes on a modern machine
You need to upgrade rubygems to 1.7.2
Password:
Cinderella installed successfully
[Thu, 03 Nov 2011 10:26:32 -0700] INFO: *** Chef 0.10.4 ***
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Setting the run_list to ["homebrew", "homebrew::misc", "mvim::cli", "ruby", "ruby::rbenv", "homebrew::dbs", "node", "python", "erlang"] from JSON
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Run List is [recipe[homebrew], recipe[homebrew::misc], recipe[mvim::cli], recipe[ruby], recipe[ruby::rbenv], recipe[homebrew::dbs], recipe[node], recipe[python], recipe[erlang]]
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Run List expands to [homebrew, homebrew::misc, mvim::cli, ruby, ruby::rbenv, homebrew::dbs, node, python, erlang]
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Starting Chef Run for hemera.local
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing directory[/Users/pjkelly/Developer] action create (homebrew::default line 14)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing directory[/Users/pjkelly/Developer/tmp] action create (homebrew::default line 18)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing directory[/Users/pjkelly/.cinderella] action create (homebrew::default line 22)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing execute[download homebrew installer] action run (homebrew::default line 26)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing script[cleaning legacy artifacts] action run (homebrew::default line 32)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: script[cleaning legacy artifacts] sh("bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-tfqoc5-0")
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: script[cleaning legacy artifacts] ran successfully
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing template[/Users/pjkelly/.cinderella.profile] action create (homebrew::default line 44)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing execute[include cinderella environment into defaults for ~/.bash_profile] action run (homebrew::default line 53)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: execute[include cinderella environment into defaults for ~/.bash_profile] sh(if [ -f ~/.bash_profile ]; then echo 'source ~/.cinderella.profile' >> ~/.bash_profile; fi)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: execute[include cinderella environment into defaults for ~/.bash_profile] ran successfully
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing execute[include cinderella environment into defaults for ~/.bashrc] action run (homebrew::default line 53)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: execute[include cinderella environment into defaults for ~/.bashrc] sh(if [ -f ~/.bashrc ]; then echo 'source ~/.cinderella.profile' >> ~/.bashrc; fi)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: execute[include cinderella environment into defaults for ~/.bashrc] ran successfully
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing execute[include cinderella environment into defaults for ~/.zshrc] action run (homebrew::default line 53)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: execute[include cinderella environment into defaults for ~/.zshrc] sh(if [ -f ~/.zshrc ]; then echo 'source ~/.cinderella.profile' >> ~/.zshrc; fi)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: execute[include cinderella environment into defaults for ~/.zshrc] ran successfully
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing execute[setup cinderella profile sourcing in ~/.profile] action run (homebrew::default line 59)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing homebrew[git] action install (homebrew::default line 64)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: homebrew[git] installed version 1.7.7.2
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: Processing script[ensure the git remote is installed] action run (homebrew::default line 66)
[Thu, 03 Nov 2011 10:26:34 -0700] INFO: script[ensure the git remote is installed] sh("bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-106ywfy-0")

$rvm_path is not set. rvm cannot load.[Thu, 03 Nov 2011 10:26:35 -0700] INFO: script[ensure the git remote is installed] ran successfully
[Thu, 03 Nov 2011 10:26:35 -0700] INFO: Processing script[updating homebrew from github] action run (homebrew::default line 80)
[Thu, 03 Nov 2011 10:26:35 -0700] INFO: script[updating homebrew from github] sh("bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0")

$rvm_path is not set. rvm cannot load.[Thu, 03 Nov 2011 10:26:35 -0700] ERROR: script[updating homebrew from github] (homebrew::default line 80) has had an error
[Thu, 03 Nov 2011 10:26:35 -0700] ERROR: script[updating homebrew from github] (/Users/pjkelly/.cinderella/cookbooks/homebrew/recipes/default.rb:80:in `from_file') had an error:
script[updating homebrew from github] (homebrew::default line 80) had an error: Expected process to exit with [0], but received '128'
---- Begin output of "bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0" ----
STDOUT: $rvm_path is not set. rvm cannot load.
STDERR:
---- End output of "bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0" ----
Ran "bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0" returned 128
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/shell_out.rb:207:in `invalid!'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/shell_out.rb:193:in `error!'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/mixin/shell_out.rb:36:in `shell_out!'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/execute.rb:58:in `action_run'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/provider/script.rb:33:in `action_run'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `send'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource.rb:437:in `run_action'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:45:in `run_action'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `each'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:81:in `converge'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:94:in `execute_each_resource'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:116:in `call_iterator_block'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:85:in `step'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:104:in `iterate'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection/stepable_iterator.rb:55:in `each_with_index'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/resource_collection.rb:92:in `execute_each_resource'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/runner.rb:76:in `converge'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:312:in `converge'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/client.rb:160:in `run'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:192:in `run_application'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `loop'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application/solo.rb:183:in `run_application'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/../lib/chef/application.rb:67:in `run'
/Library/Ruby/Gems/1.8/gems/chef-0.10.4/bin/chef-solo:25
/usr/bin/chef-solo:19:in `load'
/usr/bin/chef-solo:19
[Thu, 03 Nov 2011 10:26:35 -0700] ERROR: Running exception handlers
[Thu, 03 Nov 2011 10:26:35 -0700] ERROR: Exception handlers complete
[Thu, 03 Nov 2011 10:26:35 -0700] FATAL: Stacktrace dumped to /Users/pjkelly/.cinderella/chef-stacktrace.out
[Thu, 03 Nov 2011 10:26:35 -0700] FATAL: Chef::Exceptions::ShellCommandFailed: script[updating homebrew from github] (homebrew::default line 80) had an error: Expected process to exit with [0], but received '128'
---- Begin output of "bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0" ----
STDOUT: $rvm_path is not set. rvm cannot load.
STDERR:
---- End output of "bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0" ----
Ran "bash" "/var/folders/2m/cb6ks6y92knd5t_r3c57vlsc0000gn/T/chef-script20111103-20635-10249lz-0" returned 128
hemera:~ pjkelly$
```