Skip to content

Instantly share code, notes, and snippets.

@tarky
Created November 10, 2014 08: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 tarky/ce55e4acdba7c732c1be to your computer and use it in GitHub Desktop.
Save tarky/ce55e4acdba7c732c1be to your computer and use it in GitHub Desktop.
Setupping OpsWorks on Vagrant
==> default: ================================================================================
==> default: Error executing action `run` on resource 'ruby_block[Install the cookbooks specified in the Berksfile and their dependencies]'
==> default: ================================================================================
==> default:
==> default:
==> default: Mixlib::ShellOut::ShellCommandFailed
==> default: ------------------------------------
==> default: Expected process to exit with [0], but received '1'
==> default: ---- Begin output of /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks --debug ----
==> default: STDOUT:
==> default: STDERR: /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/bundler-1.5.3/lib/bundler/rubygems_integration.rb:240:in `block in replace_gem': berkshelf is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
==> default: from /opt/aws/opsworks/local/bin/berks:22:in `<main>'
==> default: ---- End output of /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks --debug ----
==> default: Ran /opt/aws/opsworks/local/bin/berks vendor /opt/aws/opsworks/current/berkshelf-cookbooks --debug returned 1
==> default:
==> default:
==> default:
==> default: Cookbook Trace:
==> default: ---------------
==> default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks/opsworks_commons/libraries/shellout.rb:8:in `shellout'
==> default: /tmp/vagrant-chef-3/chef-solo-1/cookbooks/opsworks_berkshelf/providers/runner.rb:13:in `block (3 levels) in class_from_file'
==> default:
==> default:
==> default: Resource Declaration:
==> default: ---------------------
==> default: # In /tmp/vagrant-chef-3/chef-solo-1/cookbooks/opsworks_berkshelf/providers/runner.rb
==> default:
==> default: 11: ruby_block 'Install the cookbooks specified in the Berksfile and their dependencies' do
==> default: 12: block do
==> default: 13: Chef::Log.info OpsWorks::ShellOut.shellout(
==> default: 14: berks_install_command,
==> default: 15: :cwd => ::File.dirname(OpsWorks::Berkshelf.berksfile),
==> default: 16: :environment => {
==> default: 17: "BERKSHELF_PATH" => Opsworks::InstanceAgent::Environment.berkshelf_cache_path
==> default: 18: }
==> default: 19: )
==> default: 20: end
==> default: 21:
==> default: 22: only_if do
==> default: 23: OpsWorks::Berkshelf.berkshelf_installed? && OpsWorks::Berkshelf.berksfile_available?
==> default: 24: end
==> default: 25: end
==> default: 26: end
==> default:
==> default:
==> default:
==> default: Compiled Resource:
==> default: ------------------
==> default: # Declared in /tmp/vagrant-chef-3/chef-solo-1/cookbooks/opsworks_berkshelf/providers/runner.rb:11:in `block in class_from_file'
==> default:
==> default: ruby_block("Install the cookbooks specified in the Berksfile and their dependencies") do
==> default: action "run"
==> default: retries 0
==> default: retry_delay 2
==> default: block_name "Install the cookbooks specified in the Berksfile and their dependencies"
==> default: cookbook_name :opsworks_berkshelf
==> default: block #<Proc:0x007f52281d07c8@/tmp/vagrant-chef-3/chef-solo-1/cookbooks/opsworks_berkshelf/providers/runner.rb:12>
==> default: only_if { #code block }
==> default: end
==> default:
==> default:
==> default:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment