Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash while offline #52

Closed
pathawks opened this issue Dec 22, 2013 · 2 comments
Closed

Crash while offline #52

pathawks opened this issue Dec 22, 2013 · 2 comments

Comments

@pathawks
Copy link

If one tries to s3_website push while not connected to the internet, the program will just crash and burn without providing any proper error message.

Deploying _site/*
Calculating diff //System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `initialize': getaddrinfo: nodename nor servname provided, or not known (SocketError)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:66:in `timeout'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:877:in `connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:857:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/session.rb:118:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:208:in `_create_session'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:193:in `session_for'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool.rb:171:in `request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/net/http/connection_pool/connection.rb:173:in `request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/http/net_http_handler.rb:66:in `handle'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:231:in `block in make_sync_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:267:in `retry_server_errors'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:227:in `make_sync_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:472:in `block (2 levels) in client_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:355:in `log_client_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:441:in `block in client_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:337:in `return_or_raise'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/client.rb:440:in `client_request'
    from (eval):3:in `list_objects'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/s3/object_collection.rb:297:in `list_request'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/s3/paginated_collection.rb:29:in `_each_item'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/collection/with_limit_and_next_token.rb:54:in `_each_batch'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/collection.rb:82:in `each_batch'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/core/collection.rb:49:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.8.5/lib/aws/s3/object_collection.rb:282:in `each'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/aws_sdk_s3.rb:24:in `map'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/aws_sdk_s3.rb:24:in `in_parallel_or_sequentially'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/aws_sdk_s3.rb:19:in `do_internal_load'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/data-sources/data_source.rb:8:in `get_fileys'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/comparison.rb:28:in `select_in_outer_array'
    from /Library/Ruby/Gems/2.0.0/gems/filey-diff-1.4.2/lib/filey-diff/comparison.rb:11:in `list_changed'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/diff_helper.rb:11:in `block in resolve_files_to_upload'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/diff_helper.rb:34:in `with_progress_indicator'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/diff_helper.rb:4:in `resolve_files_to_upload'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/uploader.rb:49:in `upload_files'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/uploader.rb:14:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/lib/s3_website/tasks.rb:8:in `push'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/bin/s3_website:52:in `push'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
    from /Library/Ruby/Gems/2.0.0/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
    from /Library/Ruby/Gems/2.0.0/gems/s3_website-1.6.1/bin/s3_website:59:in `<top (required)>'
    from /usr/bin/s3_website:23:in `load'
    from /usr/bin/s3_website:23:in `<main>'
@laurilehmijoki
Copy link
Owner

Good point. Let's implement a systematic way of reporting errors.

@laurilehmijoki
Copy link
Owner

The version 1.6.4 contains a systematic way of reporting errors.

From now on, error reports will not include stack trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants