Skip to content

Instantly share code, notes, and snippets.

@ChrisLundquist
Created December 22, 2012 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisLundquist/4358358 to your computer and use it in GitHub Desktop.
Save ChrisLundquist/4358358 to your computer and use it in GitHub Desktop.
chef-rbenv 0.7.0 bug
[2012-12-22T09:13:29+00:00] INFO: Processing git[/usr/local/rbenv] action checkout (rbenv::system_install line 61)
[2012-12-22T09:13:34+00:00] INFO: git[/usr/local/rbenv] cloning repo git://github.com/sstephenson/rbenv.git to /usr/local/rbenv
[2012-12-22T09:13:40+00:00] INFO: git[/usr/local/rbenv] checked out branch: master reference: c3fe192243bff9a00866d81af38d9012bfba419a
[2012-12-22T09:13:40+00:00] INFO: Processing bash[Initialize rbenv (system)] action run (rbenv::system_install line 80)
================================================================================
Error executing action `run` on resource 'bash[Initialize rbenv (system)]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '127'
---- Begin output of "bash" "/tmp/chef-script20121222-2112-xsc9ab" ----
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 85: rbenv-commands: command not found
---- End output of "bash" "/tmp/chef-script20121222-2112-xsc9ab" ----
Ran "bash" "/tmp/chef-script20121222-2112-xsc9ab" returned 127
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rbenv/libraries/chef_rbenv_recipe_helpers.rb
79:
80: bash "Initialize rbenv (#{opts[:user] || 'system'})" do
81: code %{PATH="#{prefix}/bin:$PATH" #{prefix}/libexec/rbenv-init -}
82: environment({'RBENV_ROOT' => prefix}.merge(init_env))
83: user opts[:user] if opts[:user]
84: group opts[:group] if opts[:group]
85: end
86:
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/rbenv/libraries/chef_rbenv_recipe_helpers.rb:80:in `initialize_rbenv'
bash("Initialize rbenv (system)") do
action "run"
retries 0
retry_delay 2
command "\"bash\" \"/tmp/chef-script20121222-2112-xsc9ab\""
backup 5
environment {"RBENV_ROOT"=>"/usr/local/rbenv"}
returns 0
code "PATH=\"/usr/local/rbenv/bin:$PATH\" /usr/local/rbenv/libexec/rbenv-init -"
interpreter "bash"
cookbook_name :rbenv
recipe_name "system_install"
end
[2012-12-22T09:13:41+00:00] ERROR: Running exception handlers
[2012-12-22T09:13:41+00:00] ERROR: Exception handlers complete
[2012-12-22T09:13:41+00:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2012-12-22T09:13:41+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-script20121222-2112-xsc9ab" ----
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 85: rbenv-commands: command not found
---- End output of "bash" "/tmp/chef-script20121222-2112-xsc9ab" ----
Ran "bash" "/tmp/chef-script20121222-2112-xsc9ab" returned 127
[vagrant command] ran in 79.81000000000392 seconds.
/Users/clundquist/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/jamie-0.1.0.alpha13/lib/jamie.rb:627:in `rescue in run_command': Expected process to exit with [0], but received '231' (Jamie::ShellOut::ShellCommandFailed)
---- Begin output of vagrant provision web-centos6 ----
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment