Skip to content

Instantly share code, notes, and snippets.

@ahill00
Created June 28, 2013 19:13
Show Gist options
  • Save ahill00/5887274 to your computer and use it in GitHub Desktop.
Save ahill00/5887274 to your computer and use it in GitHub Desktop.
================================================================================
Error executing action `run` on resource 'execute[run rake cf:bootstrap]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of su - vagrant -c /vagrant/bin/cf_bootstrap
----
STDOUT:
STDERR: /vagrant/bin/cf_bootstrap: line 5: /vagrant/logs/cf_bootstrap.log: Permission denied
---- End output of su - vagrant -c /vagrant/bin/cf_bootstrap
----
Ran su - vagrant -c /vagrant/bin/cf_bootstrap
returned 1
Resource Declaration:
---------------------
# In /tmp/vagrant-chef-1/chef-solo-1/cookbooks/cloudfoundry/recipes/cf_bootstrap.rb
3: execute "run rake cf:bootstrap" do
4: command <<-BASH
5: su - vagrant -c /vagrant/bin/cf_bootstrap
6: BASH
7: not_if { ::File.exists?(LOG_FILE)}
8: end
Compiled Resource:
------------------
# Declared in /tmp/vagrant-chef-1/chef-solo-1/cookbooks/cloudfoundry/recipes/cf_bootstrap.rb:3:in `from_file'
execute("run rake cf:bootstrap") do
action "run"
retries 0
retry_delay 2
command " su - vagrant -c /vagrant/bin/cf_bootstrap\n"
backup 5
returns 0
cookbook_name :cloudfoundry
recipe_name "cf_bootstrap"
not_if { #code block }
end
[2013-06-28T14:12:38-05:00] INFO: Running queued delayed notifications before re-raising exception
[2013-06-28T14:12:38-05:00] ERROR: Running exception handlers
[2013-06-28T14:12:38-05:00] ERROR: Exception handlers complete
[2013-06-28T14:12:38-05:00] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out
[2013-06-28T14:12:38-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[run rake cf:bootstrap] (cloudfoundry::cf_bootstrap line 3) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of su - vagrant -c /vagrant/bin/cf_bootstrap
----
STDOUT:
STDERR: /vagrant/bin/cf_bootstrap: line 5: /vagrant/logs/cf_bootstrap.log: Permission denied
---- End output of su - vagrant -c /vagrant/bin/cf_bootstrap
----
Ran su - vagrant -c /vagrant/bin/cf_bootstrap
returned 1
Chef never successfully completed! Any errors should be visible in the
output above. Please fix your recipes so that they properly complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment