simple_deploy icon indicating copy to clipboard operation
simple_deploy copied to clipboard

Gracefully handle connection timeouts

Open thbishop opened this issue 13 years ago • 0 comments

# simple_deploy deploy -e preprod -n foo -a chef_repo=my_sha
2012-12-27 22:20:48 -0800 INFO : Read chef_repo=my_sha
2012-12-27 22:20:52 -0800 INFO : Updating foo.
2012-12-27 22:20:53 -0800 INFO : Adding artifact attribute: {"ChefRepoURL"=>"s3://my-bucket/chef/my_sha.tar.gz"}
/Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation/error.rb:15:in `process': undefined method `response' for #<Excon::Errors::Timeout: connect timeout reached> (NoMethodError)
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation.rb:45:in `rescue in describe_stack'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation.rb:43:in `describe_stack'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/aws/cloud_formation.rb:61:in `stack_status'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/stack_reader.rb:18:in `status'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:46:in `current'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:27:in `create_failed?'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:31:in `stable?'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:36:in `block in wait_for_stable'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:35:in `upto'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:35:in `each'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/status.rb:35:in `wait_for_stable'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/stack_updater.rb:27:in `update'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack/stack_updater.rb:17:in `update_stack_if_parameters_changed'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/stackster-0.4.1/lib/stackster/stack.rb:34:in `update'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/stack.rb:37:in `update'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/cli/deploy.rb:73:in `block (2 levels) in deploy'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/cli/shared.rb:43:in `rescue_stackster_exceptions_and_exit'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/cli/deploy.rb:72:in `block in deploy'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/cli/deploy.rb:59:in `each'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/cli/deploy.rb:59:in `deploy'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/lib/simple_deploy/cli.rb:39:in `start'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/gems/simple_deploy-0.6.5/bin/simple_deploy:6:in `<top (required)>'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/bin/simple_deploy:19:in `load'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/bin/simple_deploy:19:in `<main>'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
    from /Users/tbishop/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'

tbishop in ~ (22:21:55 || 1.9.3-p327 || master*)
# 

thbishop avatar Dec 28 '12 06:12 thbishop