Aws-cli: aws s3 ls - tidak bisa ls ember

Dibuat pada 1 Apr 2015  ·  3Komentar  ·  Sumber: aws/aws-cli

[ jaffer@data-aw-prod ~]$ aws --version
aws-cli/1.7.18 Python/2.6.9 Linux/3.14.35-28.38.amzn1.x86_64
[ jaffer@data-aw-prod ~]$

[ jaffer@data-aw-prod ~]$ aws s3 ls --debug
01-04-2015 11:56:42.132 - MainThread - awscli.clidriver - DEBUG - Versi CLI: aws-cli/1.7.18 Python/2.6.9 Linux/3.14.35-28.38.amzn1.x86_64, versi botocore: 0.99 .0
01-04-2015 11:56:42.132 - MainThread - awscli.clidriver - DEBUG - Argumen yang dimasukkan ke CLI: ['s3', 'ls', '--debug']
01-04-2015 11:56:42,132 - MainThread - botocore.hooks - DEBUG - Diinisialisasi sesi acara: penangan panggilan
01-04-2015 11:56:42,132 - MainThread - botocore.hooks - DEBUG - Diinisialisasi sesi acara: penangan panggilan
01-04-2015 11:56:42,133 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: call handler
01-04-2015 11:56:42,134 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.s3.anonymous: calling handler
01-04-2015 11:56:42,134 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ls: calling handler
01-04-2015 11:56:42,135 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.paths: calling handler
01-04-2015 11:56:42,135 - MainThread - botocore.hooks - DEBUG - Acara load-cli-arg.custom.ls.summarize: calling handler
01-04-2015 11:56:42,135 - MainThread - botocore.hooks - DEBUG - Proses acara-cli-arg.custom.ls: call handler
01-04-2015 11:56:42,135 - MainThread - awscli.argprocess - DEBUG - Struktur yang terdeteksi: skalar
01-04-2015 11:56:42,135 - MainThread - botocore.hooks - DEBUG - Acara load-cli-arg.custom.ls.anonymous: calling handler
01-04-2015 11:56:42,135 - MainThread - botocore.hooks - DEBUG - Acara load-cli-arg.custom.ls.human-readable: calling handler
01-04-2015 11:56:42,135 - MainThread - botocore.hooks - DEBUG - Proses acara-cli-arg.custom.ls: call handler
01-04-2015 11:56:42,136 - MainThread - awscli.argprocess - DEBUG - Struktur yang terdeteksi: skalar
01-04-2015 11:56:42,136 - MainThread - botocore.hooks - DEBUG - Acara load-cli-arg.custom.ls.page-size: calling handler
01-04-2015 11:56:42,136 - MainThread - botocore.credentials - DEBUG - Mencari kredensial melalui: env
01-04-2015 11:56:42,136 - MainThread - botocore.credentials - INFO - Ditemukan kredensial dalam variabel lingkungan.
01-04-2015 11:56:42.215 - MainThread - botocore.client - DEBUG - Mendaftarkan penangan coba lagi untuk layanan: s3
01-04-2015 11:56:42.215 - MainThread - botocore.client - DEBUG - Mendaftarkan penangan coba lagi untuk layanan: s3
01-04-2015 11:56:42.221 - MainThread - botocore.hooks - DEBUG - Acara sebelum-panggilan.s3.ListBuckets: penangan panggilan
01-04-2015 11:56:42.221 - MainThread - botocore.endpoint - DEBUG - Membuat permintaan untuk(verify_ssl=True) dengan params: {'query_string': '', 'headers': {}, 'url_path': '/', 'body': '', 'method': u'GET'}
01-04-2015 11:56:42.221 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: call handler>
01-04-2015 11:56:42.221 - MainThread - botocore.hooks - DEBUG - Acara sebelum-tanda.s3.ListBuckets: call handler
01-04-2015 11:56:42.222 - MainThread - botocore.auth - DEBUG - Menghitung tanda tangan menggunakan v4 auth.
01-04-2015 11:56:42.222 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
DAPATKAN
/

host: s3.us-east.amazonaws.com
agen pengguna
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- tanggal:20150401T155642Z

host;agen-pengguna;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
01-04-2015 11:56:42.222 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155642Z
20150401/us-timur/s3/aws4_request
e0002ea5e32486a5cd7a2014cf22368b82951adb37d010bd31ffd4ec5a5c3b5b
01-04-2015 11:56:42.222 - MainThread - botocore.auth - DEBUG - Tanda tangan:
183a8b6e48fe85f9713139c4763e1af3ba68c8b5aa38fdb03d0fe38d65e8ee2c
01-04-2015 11:56:42.228 - MainThread - botocore.endpoint - DEBUG - Mengirim permintaan http: 01-04-2015 11:56:42.229 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Memulai koneksi HTTPS baru (1): s3.us-east.amazonaws.com
01-04-2015 11:56:42.231 - MainThread - botocore.hooks - DEBUG - Event need-retry.s3.ListBuckets: call handler
01-04-2015 11:56:42.231 - MainThread - botocore.retryhandler - DEBUG - perlu coba lagi, pengecualian yang dapat dicoba lagi tertangkap: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
Traceback (panggilan terakhir terakhir):
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 265, di _should_retry
kembalikan self._checker(attempt_number, response, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 313, di __call__
tertangkap_pengecualian)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 222, dalam panggilan
kembalikan self._check_caught_exception(attempt_number, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 355, di _check_caught_exception
naikkan catch_exception
EndpointConnectionError: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
01-04-2015 11:56:42,232 - MainThread - botocore.retryhandler - DEBUG - Perlu coba lagi, tindakan: 0.322988676199
01-04-2015 11:56:42,232 - MainThread - botocore.endpoint - DEBUG - Respons diterima untuk mencoba lagi, tidur selama 0,322988676199 detik
01-04-2015 11:56:42,555 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: call handler>
01-04-2015 11:56:42.556 - MainThread - botocore.hooks - DEBUG - Acara sebelum-tanda.s3.ListBuckets: call handler
01-04-2015 11:56:42.556 - MainThread - botocore.auth - DEBUG - Menghitung tanda tangan menggunakan v4 auth.
01-04-2015 11:56:42.556 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
DAPATKAN
/

host: s3.us-east.amazonaws.com
agen pengguna
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- tanggal:20150401T155642Z

host;agen-pengguna;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
01-04-2015 11:56:42.557 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155642Z
20150401/us-timur/s3/aws4_request
e0002ea5e32486a5cd7a2014cf22368b82951adb37d010bd31ffd4ec5a5c3b5b
01-04-2015 11:56:42.557 - MainThread - botocore.auth - DEBUG - Tanda tangan:
183a8b6e48fe85f9713139c4763e1af3ba68c8b5aa38fdb03d0fe38d65e8ee2c
01-04-2015 11:56:42.557 - MainThread - botocore.endpoint - DEBUG - Mengirim permintaan http: 01-04-2015 11:56:42.558 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Memulai koneksi HTTPS baru (2): s3.us-east.amazonaws.com
01-04-2015 11:56:42,559 - MainThread - botocore.hooks - DEBUG - Event need-retry.s3.ListBuckets: call handler
01-04-2015 11:56:42.559 - MainThread - botocore.retryhandler - DEBUG - perlu coba lagi, pengecualian yang dapat dicoba lagi tertangkap: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
Traceback (panggilan terakhir terakhir):
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 265, di _should_retry
kembalikan self._checker(attempt_number, response, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 313, di __call__
tertangkap_pengecualian)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 222, dalam panggilan
kembalikan self._check_caught_exception(attempt_number, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 355, di _check_caught_exception
naikkan catch_exception
EndpointConnectionError: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
01-04-2015 11:56:42.559 - MainThread - botocore.retryhandler - DEBUG - Perlu coba lagi, tindakan: 0.75575215895
01-04-2015 11:56:42,559 - MainThread - botocore.endpoint - DEBUG - Respons diterima untuk mencoba lagi, tidur selama 0,75575215895 detik
01-04-2015 11:56:43.316 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: call handler>
01-04-2015 11:56:43.317 - MainThread - botocore.hooks - DEBUG - Acara sebelum-sign.s3.ListBuckets: memanggil handler
01-04-2015 11:56:43.317 - MainThread - botocore.auth - DEBUG - Menghitung tanda tangan menggunakan v4 auth.
01-04-2015 11:56:43.317 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
DAPATKAN
/

host: s3.us-east.amazonaws.com
agen pengguna
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- tanggal:20150401T155643Z

host;agen-pengguna;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
01-04-2015 11:56:43.317 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155643Z
20150401/us-timur/s3/aws4_request
2b218ca18cc6f59827d9cc6ccc4c222ed77e7b2b9e1fd6aa4242e406e7e404ec
01-04-2015 11:56:43.318 - MainThread - botocore.auth - DEBUG - Tanda tangan:
1e99b5f508a30bfa547607d915aec56f9667e6c6db66dc65643202822314c377
01-04-2015 11:56:43.318 - MainThread - botocore.endpoint - DEBUG - Mengirim permintaan http: 01-04-2015 11:56:43.319 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Memulai koneksi HTTPS baru (3): s3.us-east.amazonaws.com
01-04-2015 11:56:43,320 - MainThread - botocore.hooks - DEBUG - Event need-retry.s3.ListBuckets: call handler
01-04-2015 11:56:43,320 - MainThread - botocore.retryhandler - DEBUG - perlu coba lagi, pengecualian yang dapat dicoba lagi tertangkap: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
Traceback (panggilan terakhir terakhir):
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 265, di _should_retry
kembalikan self._checker(attempt_number, response, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 313, di __call__
tertangkap_pengecualian)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 222, dalam panggilan
kembalikan self._check_caught_exception(attempt_number, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 355, di _check_caught_exception
naikkan catch_exception
EndpointConnectionError: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
01-04-2015 11:56:43,320 - MainThread - botocore.retryhandler - DEBUG - Perlu coba lagi, tindakan: 2.18930448654
01-04-2015 11:56:43,320 - MainThread - botocore.endpoint - DEBUG - Respons diterima untuk mencoba lagi, tidur selama 2.18930448654 detik
01-04-2015 11:56:45.512 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: call handler>
01-04-2015 11:56:45,512 - MainThread - botocore.hooks - DEBUG - Acara sebelum-tanda.s3.ListBuckets: call handler
01-04-2015 11:56:45,513 - MainThread - botocore.auth - DEBUG - Menghitung tanda tangan menggunakan v4 auth.
01-04-2015 11:56:45.513 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
DAPATKAN
/

host: s3.us-east.amazonaws.com
agen pengguna
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- tanggal:20150401T155645Z

host;agen-pengguna;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
01-04-2015 11:56:45,513 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155645Z
20150401/us-timur/s3/aws4_request
48ccbdbf0fd162f787956abaeec2bcc73a92b5cd03e23bbfcf20f9721cd629cf
01-04-2015 11:56:45.513 - MainThread - botocore.auth - DEBUG - Tanda tangan:
715db569aa580b92850617e41db4d78d4a8eb5ccc51018bf3500272d98bb1502
01-04-2015 11:56:45.513 - MainThread - botocore.endpoint - DEBUG - Mengirim permintaan http: 01-04-2015 11:56:45,514 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Memulai koneksi HTTPS baru (4): s3.us-east.amazonaws.com
01-04-2015 11:56:45,515 - MainThread - botocore.hooks - DEBUG - Event need-retry.s3.ListBuckets: call handler
01-04-2015 11:56:45,515 - MainThread - botocore.retryhandler - DEBUG - perlu coba lagi, pengecualian yang dapat dicoba lagi tertangkap: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
Traceback (panggilan terakhir terakhir):
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 265, di _should_retry
kembalikan self._checker(attempt_number, response, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 313, di __call__
tertangkap_pengecualian)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 222, dalam panggilan
kembalikan self._check_caught_exception(attempt_number, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 355, di _check_caught_exception
naikkan catch_exception
EndpointConnectionError: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
01-04-2015 11:56:45,515 - MainThread - botocore.retryhandler - DEBUG - Perlu coba lagi, tindakan: 0,576300993129
01-04-2015 11:56:45,515 - MainThread - botocore.endpoint - DEBUG - Respons diterima untuk mencoba lagi, tidur selama 0,576300993129 detik
01-04-2015 11:56:46,092 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: call handler>
01-04-2015 11:56:46,092 - MainThread - botocore.hooks - DEBUG - Event before-sign.s3.ListBuckets: call handler
01-04-2015 11:56:46,093 - MainThread - botocore.auth - DEBUG - Menghitung tanda tangan menggunakan v4 auth.
01-04-2015 11:56:46,093 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
DAPATKAN
/

host: s3.us-east.amazonaws.com
agen pengguna
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- tanggal:20150401T155646Z

host;agen-pengguna;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
01-04-2015 11:56:46,093 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150401T155646Z
20150401/us-timur/s3/aws4_request
18c5d85e0996b1ed77b2e06c0cc78b476cdb1a25d05a13f665c82a9066d61ef4
01-04-2015 11:56:46,093 - MainThread - botocore.auth - DEBUG - Tanda tangan:
d6c4ab22c43a2765e219ebe83cdebbbdae61c6b300445fec73f67ff0bc526507
01-04-2015 11:56:46.094 - MainThread - botocore.endpoint - DEBUG - Mengirim permintaan http: 01-04-2015 11:56:46.094 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Memulai koneksi HTTPS baru (5): s3.us-east.amazonaws.com
01-04-2015 11:56:46.095 - MainThread - botocore.hooks - DEBUG - Event need-retry.s3.ListBuckets: call handler
01-04-2015 11:56:46.095 - MainThread - awscli.clidriver - DEBUG - Pengecualian tertangkap di main()
Traceback (panggilan terakhir terakhir):
File "/usr/local/lib/python2.6/site-packages/awscli/clidriver.py", baris 183, di main
kembalikan command_table parsed_args.command
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", baris 190, dalam panggilan
parsing_globals)
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", baris 187, dalam panggilan
kembalikan self._run_main(parsed_args, parsed_globals)
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", baris 324, di _run_main
self._list_all_buckets()
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", baris 383, di _list_all_buckets
response_data = self.client.list_buckets()
File "/usr/local/lib/python2.6/site-packages/botocore/client.py", baris 187, di _api_call
kembalikan diri._make_api_call(nama_operasi, kwargs)
File "/usr/local/lib/python2.6/site-packages/botocore/client.py", baris 231, di _make_api_call
operasi_model, permintaan_dict)
File "/usr/local/lib/python2.6/site-packages/botocore/endpoint.py", baris 173, di make_request
kembalikan self._send_request(request_dict, operation_model)
File "/usr/local/lib/python2.6/site-packages/botocore/endpoint.py", baris 203, di _send_request
success_response, pengecualian):
File "/usr/local/lib/python2.6/site-packages/botocore/endpoint.py", baris 267, di _needs_retry
tertangkap_pengecualian=tertangkap_pengecualian)
File "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", baris 226, di emit
kembalikan self._emit(event_name, kwargs)
File "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", baris 209, di _emit
respon = penangan ( kwargs)File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 183, di __call__if self._checker(attempts, response, catch_exception):File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 250, di __call__tertangkap_pengecualian)File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 273, di _should_retrykembalikan self._checker(attempt_number, response, catch_exception)File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 313, di __call__tertangkap_pengecualian)File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 222, di **panggilan
kembalikan self._check_caught_exception(attempt_number, catch_exception)
File "/usr/local/lib/python2.6/site-packages/botocore/retryhandler.py", baris 355, di _check_caught_exception
naikkan catch_exception
EndpointConnectionError: Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "
01-04-2015 11:56:46.096 - MainThread - awscli.clidriver - DEBUG - Keluar dengan rc 255

Tidak dapat terhubung ke URL titik akhir: " https://s3.us-east.amazonaws.com/ "

Tahu apa yang digunakan https://s3.us-east.amazonaws.com/ alih-alih https://us-east-1.s3.amazonaws.com/

Komentar yang paling membantu

Kiat pro: kemungkinan berasal dari ~/.aws/config. Pindahkan file ini sementara dan coba lagi. Ini membantu saya.

Semua 3 komentar

[ jaffer@data-aw-prod ~]$ aws s3 ls --debug --endpoint-url https://us-east-1.s3.amazonaws.com/
02-04-2015 10:00:53,814 - MainThread - awscli.clidriver - DEBUG - Versi CLI: aws-cli/1.7.18 Python/2.6.9 Linux/3.14.35-28.38.amzn1.x86_64, versi botocore: 0.99 .0
02-04-2015 10:00:53,814 - MainThread - awscli.clidriver - DEBUG - Argumen yang dimasukkan ke CLI: ['s3', 'ls', '--debug', '--endpoint-url', ' https: //us-east-1.s3.amazonaws.com/ ']
02-04-2015 10:00:53,814 - MainThread - botocore.hooks - DEBUG - Diinisialisasi sesi acara: penangan panggilan
02-04-2015 10:00:53,815 - MainThread - botocore.hooks - DEBUG - Diinisialisasi sesi acara: penangan panggilan
02-04-2015 10:00:53,815 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3: call handler
02-04-2015 10:00:53,816 - MainThread - botocore.hooks - DEBUG - Acara load-cli-arg.custom.s3.anonymous: call handler
02-04-2015 10:00:53,816 - MainThread - botocore.hooks - DEBUG - Event building-command-table.ls: calling handler
02-04-2015 10:00:53,817 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.paths: calling handler
02-04-2015 10:00:53,817 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.summarize: calling handler
02-04-2015 10:00:53,817 - MainThread - botocore.hooks - DEBUG - Proses acara-cli-arg.custom.ls: calling handler
02-04-2015 10:00:53,817 - MainThread - awscli.argprocess - DEBUG - Struktur yang terdeteksi: skalar
02-04-2015 10:00:53,817 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.anonymous: calling handler
02-04-2015 10:00:53,817 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.custom.ls.human-readable: calling handler
02-04-2015 10:00:53,817 - MainThread - botocore.hooks - DEBUG - Proses acara-cli-arg.custom.ls: call handler
02-04-2015 10:00:53,818 - MainThread - awscli.argprocess - DEBUG - Struktur yang terdeteksi: skalar
02-04-2015 10:00:53,818 - MainThread - botocore.hooks - DEBUG - Acara load-cli-arg.custom.ls.page-size: calling handler
02-04-2015 10:00:53,818 - MainThread - botocore.credentials - DEBUG - Mencari kredensial melalui: env
02-04-2015 10:00:53,818 - MainThread - botocore.credentials - INFO - Ditemukan kredensial dalam variabel lingkungan.
02-04-2015 10:00:53,896 - MainThread - botocore.client - DEBUG - Mendaftarkan penangan coba lagi untuk layanan: s3
02-04-2015 10:00:53,896 - MainThread - botocore.client - DEBUG - Mendaftarkan penangan coba lagi untuk layanan: s3
02-04-2015 10:00:53,901 - MainThread - botocore.hooks - DEBUG - Event before-call.s3.ListBuckets: call handler
02-04-2015 10:00:53.901 - MainThread - botocore.endpoint - DEBUG - Membuat permintaan untuk(verify_ssl=True) dengan params: {'query_string': '', 'headers': {}, 'url_path': '/', 'body': '', 'method': u'GET'}
02-04-2015 10:00:53,901 - MainThread - botocore.hooks - DEBUG - Event request-created.s3.ListBuckets: call handler>
02-04-2015 10:00:53,902 - MainThread - botocore.auth - DEBUG - Menghitung tanda tangan menggunakan v4 auth.
02-04-2015 10:00:53,902 - MainThread - botocore.auth - DEBUG - CanonicalRequest:
DAPATKAN
/

host:us-timur-1.s3.amazonaws.com
agen pengguna
x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
x-amz- tanggal:20150402T140053Z

host;agen-pengguna;x-amz-content-sha256;x-amz-date
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
02-04-2015 10:00:53,902 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20150402T140053Z
20150402/us-timur/s3/aws4_request
c2f10df0a6273531a1c59de88a43aa15d54e0ff0d4efb446bfc413f423a40b6e
02-04-2015 10:00:53,902 - MainThread - botocore.auth - DEBUG - Tanda tangan:
bbea77bb9355119c47ea3fb62edd0e3ffd32dab9733698f8f82ea7bebba32e99
02-04-2015 10:00:53,909 - MainThread - botocore.endpoint - DEBUG - Mengirim permintaan http: 02-04-2015 10:00:53,909 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - INFO - Memulai koneksi HTTPS baru (1): us-east-1.s3.amazonaws.com
02-04-2015 10:00:53,939 - MainThread - botocore.vendored.requests.packages.urllib3.connectionpool - DEBUG - "GET / HTTP/1.1" 400 Tidak ada
02-04-2015 10:00:53,941 - MainThread - botocore.parsers - DEBUG - Header respons:
{'koneksi': 'tutup',
'tipe konten': 'aplikasi/xml',
'tanggal': 'Kamis, 02 Apr 2015 14:00:53 GMT',
'server': 'AmazonS3',
'transfer-encoding': 'dipotong',
'x-amz-id-2': '4YKK6iKMv28//rCRHQDedKvJsyuEXgvY=',
'x-amz-request-id': ''}
02-04-2015 10:00:53,941 - MainThread - botocore.parsers - DEBUG - Isi respons:

AuthorizationHeaderMalformedHeader otorisasi salah format; wilayah 'kita-timur' salah; mengharapkan 'kita-timur-1'kita-timur-1CCAA61953FE3FAD04YKK6iKMv28/bEd3R50qcUidwIza8ckHiPcuVvrX2cZLWDPfx7nvqsz/rCRHQDedKvJsyuEXgvY=
02-04-2015 10:00:53,942 - MainThread - botocore.hooks - DEBUG - Event need-retry.s3.ListBuckets: call handler
02-04-2015 10:00:53,942 - MainThread - botocore.retryhandler - DEBUG - Tidak perlu mencoba lagi.
02-04-2015 10:00:53,942 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.ListBuckets: call handler
02-04-2015 10:00:53,942 - MainThread - botocore.hooks - DEBUG - Acara after-call.s3.ListBuckets: call handler
02-04-2015 10:00:53,942 - MainThread - awscli.errorhandler - DEBUG - Kode Respons HTTP: 400
02-04-2015 10:00:53,942 - MainThread - awscli.clidriver - DEBUG - Pengecualian tertangkap di main()
Traceback (panggilan terakhir terakhir):
File "/usr/local/lib/python2.6/site-packages/awscli/clidriver.py", baris 183, di main
kembalikan command_table parsed_args.command
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", baris 190, dalam panggilan
parsing_globals)
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/commands.py", baris 187, dalam panggilan
kembalikan self._run_main(parsed_args, parsed_globals)
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", baris 324, di _run_main
self._list_all_buckets()
File "/usr/local/lib/python2.6/site-packages/awscli/customizations/s3/subcommands.py", baris 383, di _list_all_buckets
response_data = self.client.list_buckets()
File "/usr/local/lib/python2.6/site-packages/botocore/client.py", baris 187, di _api_call
kembalikan diri._make_api_call(nama_operasi, kwargs)
File "/usr/local/lib/python2.6/site-packages/botocore/client.py", baris 238, di _make_api_call
model=operasi_model
File "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", baris 226, di emit
kembalikan self._emit(event_name, kwargs)
File "/usr/local/lib/python2.6/site-packages/botocore/hooks.py", baris 209, di _emit
respon = penangan(**kwargs)
File "/usr/local/lib/python2.6/site-packages/awscli/errorhandler.py", baris 70, di __call__
http_status_code=http_response.status_code)
ClientError: Kesalahan klien (AuthorizationHeaderMalformed) terjadi saat memanggil operasi ListBuckets: Bentuk header otorisasi salah; wilayah 'kita-timur' salah; mengharapkan 'kita-timur-1'
02-04-2015 10:00:53,944 - MainThread - awscli.clidriver - DEBUG - Keluar dengan rc 255

Kesalahan klien (AuthorizationHeaderMalformed) terjadi saat memanggil operasi ListBuckets: Bentuk header otorisasi salah; wilayah 'kita-timur' salah; mengharapkan 'kita-timur-1'

Kiat pro: kemungkinan berasal dari ~/.aws/config. Pindahkan file ini sementara dan coba lagi. Ini membantu saya.

terima kasih @joshunger
Buka ~/.aws/config
pindahkan file konfigurasi
buka terminal dan ketik aws configure
Tambahkan ID dan Kunci
ketik aws s3 ls
untuk melihat semua direktori

Apakah halaman ini membantu?
0 / 5 - 0 peringkat