Won't work, any ideas?
Opened this issue · 9 comments
Hi there Dan,
Thanks for putting this repo together, I followed the instructions exactly and got this:
[2013-01-10T22:28:13+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[Initialize rbenv (system)](rbenv::system_install line 80) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '127'
---- Begin output of "bash" "/tmp/chef-script20130110-1203-1gm7o6d-0" ----
STDOUT: export PATH="/usr/local/rbenv/shims:${PATH}"
source "/usr/local/rbenv/libexec/../completions/rbenv.bash"
rbenv rehash 2>/dev/null
STDERR: /usr/local/rbenv/libexec/rbenv-init: line 88: rbenv-commands: command not found
---- End output of "bash" "/tmp/chef-script20130110-1203-1gm7o6d-0" ----
Ran "bash" "/tmp/chef-script20130110-1203-1gm7o6d-0" returned 127
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
If you have any ideas about why this might happen--I'd love to hear them.
Thanks,
-joe
Sorry about that. I just tried a fresh checkout on my system and it worked so I'm guessing its an env difference between the two of us. I'll keep trying to reproduce on my end. Can you tell me your:
Host
- OS
- ruby -v
- vagrant -v
From Vagrant using vagrant ssh
- ruby -v
- uname -a
- echo $SHELL
Is this a green or existing application?
Hi Dan,
Thanks for looking into this.
-----------------------Some details for my machine:
~: ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.2]
~: echo $SHELL
/bin/bash
~: which ruby
/Users/goggins/.rbenv/shims/ruby
~: uname -a # OS X 10.7.5
Darwin <host_removed> 11.4.2 ... x64
-------------------Vagrant box:
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]
vagrant@precise64:$ uname -a$ echo $SHELL
Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux
vagrant@precise64:
/bin/bash
On Thu, Jan 10, 2013 at 7:43 PM, Dan Thiffault notifications@github.comwrote:
echo $SHELL
Well its definitely not using the rbenv like its supposed to. On the vagrant box do you have a file /tmp/ruby-build.[d+].log? If so can you attach it? Otherwise can you attach /tmp/vagrant-chef-1/dna.json? If you see any other interesting *log files under /tmp/vagrant-chef feel free to share as well.
Use a newer version of the ruby_build cookbook
As of #8 you can now change the ruby version as a config attribute. Hopefully that helps. If you're still stuck let me know where you are currently.
@joegoggins just realized you are having the same problem with awesome app. Give the ruby version thing a try and let me know. Sorry for the cross-posting.
I had this same issue, ended up fixing it by using the latest version of all git'd cookbooks in the Cheffile.
Thanks for the great tool!
@JustinAiken would you mind sharing the versions you're currently using? If we can get a snapshot that works for everyone I'll update the repository. Glad the tool is working out for you.
It was just the latest of all of them: