Skip to content

Instantly share code, notes, and snippets.

@cahlan
Created January 27, 2014 21:37
Show Gist options
  • Save cahlan/8657862 to your computer and use it in GitHub Desktop.
Save cahlan/8657862 to your computer and use it in GitHub Desktop.
[2014-01-24T16:06:25-07:00] INFO: script[Add recurrent script if needed] ran successfully
================================================================================
Error executing action `run` on resource 'script[Bundling gems]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '5'
---- Begin output of "bash" "/tmp/chef-script20140124-7890-34jol6" ----
STDOUT: Gem::RemoteFetcher::FetchError: SocketError: getaddrinfo: Name or service not known (http://rubygems.org/gems/rake-0.9.2.2.gem)
An error occurred while installing rake (0.9.2.2), and Bundler cannot continue.
Make sure that `gem install rake -v '0.9.2.2'` succeeds before bundling.
STDERR:
---- End output of "bash" "/tmp/chef-script20140124-7890-34jol6" ----
Ran "bash" "/tmp/chef-script20140124-7890-34jol6" returned 5
Resource Declaration:
---------------------
# In /var/chef/cache/cookbooks/scan-app-worker/recipes/ruby-workers.rb
313: script 'Bundling gems' do
314: interpreter 'bash'
315: cwd release_path
316: user 'scan'
317: code "bundle install --quiet #{[:production, :staging].include?(run_env) ? '--deployment --without development test' : ''} --path #{bundle_path}"
318: end
319:
Compiled Resource:
------------------
# Declared in /var/chef/cache/cookbooks/scan-app-worker/recipes/ruby-workers.rb:313:in `block (3 levels) in from_file'
script("Bundling gems") do
action "run"
retries 0
retry_delay 2
command "\"bash\" \"/tmp/chef-script20140124-7890-34jol6\""
backup 5
cwd "/home/scan/services/visibility/releases/a4db4f1d163ffd71d76d669b282846bff5b722f3"
returns 0
user "scan"
code "bundle install --quiet --path /home/scan/services/visibility/shared/bundle"
interpreter "bash"
cookbook_name "scan-app-worker"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment