Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Won't work, any ideas? #7

Open
joegoggins opened this issue Jan 10, 2013 · 9 comments
Open

Won't work, any ideas? #7

joegoggins opened this issue Jan 10, 2013 · 9 comments

Comments

@joegoggins
Copy link

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

@DanThiffault
Copy link
Owner

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?

@joegoggins
Copy link
Author

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
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:
$ echo $SHELL
/bin/bash

On Thu, Jan 10, 2013 at 7:43 PM, Dan Thiffault [email protected]:

echo $SHELL

@DanThiffault
Copy link
Owner

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.

@markmcconachie
Copy link

Use a newer version of the ruby_build cookbook

@DanThiffault
Copy link
Owner

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.

@DanThiffault
Copy link
Owner

@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.

@JustinAiken
Copy link

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!

@DanThiffault
Copy link
Owner

@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.

@JustinAiken
Copy link

It was just the latest of all of them:

https://gist.github.com/JustinAiken/5169844

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants