2016-12-21 11 views
1

AWSは、すべてのサービスが正常に動作していると報告しますが、AWS CLIを介してすべてのS3要求に対してエラー104 '接続をピアによってリセットする'昨日はうまくいきました。これを修正する方法について何か提案がありますか?ここでS3へのAWS CLIアクセスでエラーが返される104

$ aws --version 
aws-cli/1.11.32 Python/2.6.6 Linux/2.6.32-642.11.1.el6.x86_64 botocore/1.4.89 

$ aws s3 ls s3:// 
('Connection aborted.', error(104, 'Connection reset by peer')) 

$ aws s3api list-buckets 
('Connection aborted.', error(104, 'Connection reset by peer')) 

リスト・バケットは、デバッグ情報とコマンドです:私は「架橋」とS3は魔法の仕事を始めに、「NAT」からネットワークの私のVMを切り替える

$ aws s3api list-buckets --debug 
2016-12-21 09:25:11,926 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/1.11.32 Python/2.6.6 Linux/2.6.32-642.11.1.el6.x86_64 botocore/1.4.89 
2016-12-21 09:25:11,927 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['s3api', 'list-buckets', '--debug'] 
2016-12-21 09:25:11,927 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 
2016-12-21 09:25:11,927 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler 
2016-12-21 09:25:11,929 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.6/site-packages/botocore/data/s3/2006-03-01/service-2.json 
2016-12-21 09:25:11,988 - MainThread - botocore.hooks - DEBUG - Event service-data-loaded.s3: calling handler 
2016-12-21 09:25:11,988 - MainThread - botocore.handlers - DEBUG - Registering retry handlers for service: s3 
2016-12-21 09:25:11,990 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3api: calling handler 
2016-12-21 09:25:11,992 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.6/site-packages/botocore/data/s3/2006-03-01/waiters-2.json 
2016-12-21 09:25:11,993 - MainThread - awscli.clidriver - DEBUG - OrderedDict() 
2016-12-21 09:25:11,994 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.list-buckets: calling handler 
2016-12-21 09:25:11,994 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.list-buckets: calling handler 
2016-12-21 09:25:11,994 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.list-buckets: calling handler 
2016-12-21 09:25:11,996 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.6/site-packages/botocore/data/s3/2006-03-01/paginators-1.json 
2016-12-21 09:25:11,996 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.list-buckets: calling handler 
2016-12-21 09:25:11,996 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.s3api.list-buckets: calling handler > 
2016-12-21 09:25:11,997 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.s3api.list-buckets: calling handler > 
2016-12-21 09:25:11,997 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.s3.list-buckets.cli-input-json: calling handler 
2016-12-21 09:25:11,997 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.s3.list-buckets.generate-cli-skeleton: calling handler 
2016-12-21 09:25:11,997 - MainThread - botocore.hooks - DEBUG - Event calling-command.s3api.list-buckets: calling handler > 
2016-12-21 09:25:11,997 - MainThread - botocore.hooks - DEBUG - Event calling-command.s3api.list-buckets: calling handler > 
2016-12-21 09:25:11,998 - MainThread - botocore.credentials - DEBUG - Looking for credentials via: env 
2016-12-21 09:25:11,998 - MainThread - botocore.credentials - INFO - Found credentials in environment variables. 
2016-12-21 09:25:11,998 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/lib/python2.6/site-packages/botocore/data/endpoints.json 
2016-12-21 09:25:12,030 - MainThread - botocore.client - DEBUG - Registering retry handlers for service: s3 
2016-12-21 09:25:12,033 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler 
2016-12-21 09:25:12,033 - MainThread - botocore.hooks - DEBUG - Event creating-client-class.s3: calling handler 
2016-12-21 09:25:12,034 - MainThread - botocore.args - DEBUG - The s3 config key is not a dictionary type, ignoring its value of: None 
2016-12-21 09:25:12,037 - MainThread - botocore.endpoint - DEBUG - Setting s3 timeout as (60, 60) 
2016-12-21 09:25:12,037 - MainThread - botocore.client - DEBUG - Defaulting to S3 virtual host style addressing with path style addressing fallback. 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler > 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event before-parameter-build.s3.ListBuckets: calling handler 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event before-call.s3.ListBuckets: calling handler 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event before-call.s3.ListBuckets: calling handler > 
2016-12-21 09:25:12,038 - MainThread - botocore.endpoint - DEBUG - Making request for OperationModel(name=ListBuckets) (verify_ssl=True) with params: {'body': '', 'url': u'https://s3.amazonaws.com/', 'headers': {'User-Agent': 'aws-cli/1.11.32 Python/2.6.6 Linux/2.6.32-642.11.1.el6.x86_64 botocore/1.4.89'}, 'context': {'client_region': 'us-east-1', 'signing': {'bucket': None}, 'has_streaming_input': False, 'client_config': }, 'query_string': '', 'url_path': u'/', 'method': u'GET'} 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: calling handler > 
2016-12-21 09:25:12,038 - MainThread - botocore.hooks - DEBUG - Event before-sign.s3.ListBuckets: calling handler 
2016-12-21 09:25:12,039 - MainThread - botocore.auth - DEBUG - Calculating signature using hmacv1 auth. 
2016-12-21 09:25:12,039 - MainThread - botocore.auth - DEBUG - HTTP request method: GET 
2016-12-21 09:25:12,039 - MainThread - botocore.auth - DEBUG - StringToSign: 
GET 


Wed, 21 Dec 2016 14:25:12 GMT 
/
2016-12-21 09:25:12,044 - MainThread - botocore.endpoint - DEBUG - Sending http request: 
2016-12-21 09:25:12,044 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Starting new HTTPS connection (1): s3.amazonaws.com 
2016-12-21 09:25:12,078 - MainThread - botocore.endpoint - DEBUG - ConnectionError received when sending HTTP request. 
Traceback (most recent call last): 
    File "/usr/lib/python2.6/site-packages/botocore/endpoint.py", line 204, in _get_response 
    proxies=self.proxies, timeout=self.timeout) 
    File "/usr/lib/python2.6/site-packages/botocore/vendored/requests/sessions.py", line 573, in send 
    r = adapter.send(request, **kwargs) 
    File "/usr/lib/python2.6/site-packages/botocore/vendored/requests/adapters.py", line 415, in send 
    raise ConnectionError(err, request=request) 
ConnectionError: ('Connection aborted.', error(104, 'Connection reset by peer')) 
+0

ここでは、VMの使用方法、および他の「特別な」ネットワーク構成がある場合は、それを明記しておく必要があります。一見すると、潜在的なネットワークの問題を持つベアメタルマシンが疑わしいでしょう。 –

答えて

1

。それが動作を停止したとき、私は手動で何も変更していませんでした。私は、VMware社がネットワーク自体を変更していないことを願っています。しかし、エラー104が発生した場合は、ネットワーク設定を確認してください。

+0

ここではエラーで検索している人は誰でも、時には古典的なawsリージョンにないバケットを使用しようとしているので、しばらく待つか古いバケットを使用することができます。 (ここには、https://github.com/aws/aws-cli/issues/634#issuecomment-40778786の詳しい説明へのリンクがあります) –

6

私はこれも経験しましたが、S3バケットが存在する地域を指定すると問題は解決しました。

aws s3 --region ap-southeast-1 cp file100Mb.zip s3://mybucket.domain.xyz/path/ 

あなたの方法がわかります。

+0

ありがとう!なんらかの理由で、URLに追加された領域では動作しませんでしたが、 '--region'パラメータでうまく動作します。 –

関連する問題