Skip to content

Instantly share code, notes, and snippets.

@baldurrensch
Created July 8, 2014 01:12
Show Gist options
  • Save baldurrensch/c0b32749c32770f1b9e1 to your computer and use it in GitHub Desktop.
Save baldurrensch/c0b32749c32770f1b9e1 to your computer and use it in GitHub Desktop.
Opsworks Log file
Cookbook Trace:
---------------
/var/lib/aws/opsworks/cache/cookbooks/opsworks_commons/libraries/shellout.rb:8:in `shellout'
/var/lib/aws/opsworks/cache/cookbooks/opsworks_berkshelf/providers/runner.rb:13:in `block (3 levels) in class_from_file'
Resource Declaration:
---------------------
# In /var/lib/aws/opsworks/cache/cookbooks/opsworks_berkshelf/providers/runner.rb
11: ruby_block 'Install the cookbooks specified in the Berksfile and their dependencies' do
12: block do
13: Chef::Log.info OpsWorks::ShellOut.shellout(
14: berks_install_command,
15: :cwd => ::File.dirname(OpsWorks::Berkshelf.berksfile),
16: :environment => {
17: "BERKSHELF_PATH" => Opsworks::InstanceAgent::Environment.berkshelf_cache_path
18: }
19: )
20: end
21:
22: only_if do
23: OpsWorks::Berkshelf.berkshelf_installed? && OpsWorks::Berkshelf.berksfile_available?
24: end
25: end
26: end
Compiled Resource:
------------------
# Declared in /var/lib/aws/opsworks/cache/cookbooks/opsworks_berkshelf/providers/runner.rb:11:in `block in class_from_file'
ruby_block("Install the cookbooks specified in the Berksfile and their dependencies") do
action "run"
retries 0
retry_delay 2
block_name "Install the cookbooks specified in the Berksfile and their dependencies"
cookbook_name "opsworks_berkshelf"
block #<Proc:0x007f1147f1df38@/var/lib/aws/opsworks/cache/cookbooks/opsworks_berkshelf/providers/runner.rb:12>
only_if { #code block }
end
[2014-07-07T23:48:29+00:00] INFO: Running queued delayed notifications before re-raising exception
[2014-07-07T23:48:29+00:00] ERROR: Running exception handlers
[2014-07-07T23:48:29+00:00] ERROR: Exception handlers complete
[2014-07-07T23:48:29+00:00] FATAL: Stacktrace dumped to /var/lib/aws/opsworks/cache/chef-stacktrace.out
[2014-07-07T23:48:29+00:00] ERROR: ruby_block[Install the cookbooks specified in the Berksfile and their dependencies] (/var/lib/aws/opsworks/cache/cookbooks/opsworks_berkshelf/providers/runner.rb line 11) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/aws/opsworks/local/bin/berks install --path /opt/aws/opsworks/current/berkshelf-cookbooks ----
STDOUT: Using lockbox (0.1.0) from metadata
STDERR: /opt/aws/opsworks/local/lib/ruby/2.0.0/open-uri.rb:223:in `open_loop': redirection forbidden: http://cookbooks.opscode.com/api/v1/cookbooks/composer/versions/1.0.3/download -> https://s3.amazonaws.com/community-files.opscode.com/cookbook_versions/tarballs/6887/original/composer.tgz?1401554130 (RuntimeError)
from /opt/aws/opsworks/local/lib/ruby/2.0.0/open-uri.rb:149:in `open_uri'
from /opt/aws/opsworks/local/lib/ruby/2.0.0/open-uri.rb:689:in `open'
from /opt/aws/opsworks/local/lib/ruby/2.0.0/open-uri.rb:34:in `open'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/community_rest.rb:173:in `block in stream'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/retryable-1.3.5/lib/retryable.rb:17:in `retryable'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/community_rest.rb:172:in `stream'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/community_rest.rb:99:in `download'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/locations/site_location.rb:44:in `download'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/downloader.rb:119:in `download_location'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/downloader.rb:88:in `block in download'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/downloader.rb:84:in `each'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/downloader.rb:84:in `download'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/resolver.rb:137:in `install_source'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/resolver.rb:57:in `add_source'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/resolver.rb:30:in `block in initialize'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/resolver.rb:29:in `each'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/resolver.rb:29:in `initialize'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/berksfile.rb:665:in `new'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/berksfile.rb:665:in `resolve'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/berksfile.rb:418:in `install'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/cli.rb:153:in `install'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/lib/berkshelf/cli.rb:21:in `dispatch'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /opt/aws/opsworks/local/lib/ruby/gems/2.0.0/gems/berkshelf-2.0.14/bin/berks:6:in `<top (required)>'
from /opt/aws/opsworks/local/bin/berks:23:in `load'
from /opt/aws/opsworks/local/bin/berks:23:in `<main>'
---- End output of /opt/aws/opsworks/local/bin/berks install --path /opt/aws/opsworks/current/berkshelf-cookbooks ----
Ran /opt/aws/opsworks/local/bin/berks install --path /opt/aws/opsworks/current/berkshelf-cookbooks returned 1
[2014-07-07T23:48:29+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment