3 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
To check progress of the glacier restore, you can run the following command (S3 HeadObject):
aws s3api head-object --bucket your_bucket_here --key folder/testobject.obj
I'm not as familiar with s3cmd, you can do the same via CLI with:
aws s3api restore-object
The HeadObject command should give you the information you are looking for. You can also add the debug flag to the command to turn on debug logging: -debug
répondu il y a 2 ans
0
Please look into debug output in next messages:
aws s3api --debug --profile atlas restore-object --restore-request Days=30 --bucket client-documents-1 --key "1-1607610920573_Screen Shot 2020-12-02 at 01.35.32.png"
host;x-amz-content-sha256;x-amz-date
c5ab03906be18022d13d2db6f22121bb738fcb75dec4425a696d80df254e537a
2022-01-04 22:04:17,990 - MainThread - botocore.auth - DEBUG - StringToSign:
AWS4-HMAC-SHA256
20220104T200417Z
20220104/us-east-1/s3/aws4_request
9c87bf0b4ce7e00ba6cc0143dab5b26cb8089c92560d778a5ac144c4221f03be
2022-01-04 22:04:17,990 - MainThread - botocore.auth - DEBUG - Signature:
aa2a0eb5b2eabfa86d67a6d3abc55f52a89844d0f603378b222de53cfd1d09d4
2022-01-04 22:04:17,990 - MainThread - botocore.endpoint - DEBUG - Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://client-documents-1.s3.amazonaws.com/1-1607610920573_Screen%20Shot%202020-12-02%20at%2001.35.32.png?restore, headers={'User-Agent': b'aws-cli/2.2.41 Python/3.9.7 Darwin/20.3.0 source/x86_64 prompt/off command/s3api.restore-object', 'X-Amz-Date': b'20220104T200417Z', 'X-Amz-Content-SHA256': b'c5ab03906be18022d13d2db6f22121bb738fcb75dec4425a696d80df254e537a', 'Authorization': b'AWS4-HMAC-SHA256 Credential=XXXXX/20220104/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=aa2a0eb5b2eabfa86d67a6d3abc55f52a89844d0f603378b222de53cfd1d09d4', 'Content-Length': '96'}>
2022-01-04 22:04:17,991 - MainThread - botocore.httpsession - DEBUG - Certificate path: /usr/local/Cellar/awscli/2.2.41/libexec/lib/python3.9/site-packages/botocore/cacert.pem
2022-01-04 22:04:17,991 - MainThread - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): client-documents-1.s3.amazonaws.com:443
2022-01-04 22:04:19,030 - MainThread - urllib3.connectionpool - DEBUG - https://client-documents-1.s3.amazonaws.com:443 "POST /1-1607610920573_Screen%20Shot%202020-12-02%20at%2001.35.32.png?restore HTTP/1.1" 200 0
2022-01-04 22:04:19,031 - MainThread - botocore.parsers - DEBUG - Response headers: {'x-amz-id-2': 'voofNg9CJjGmXhAFgYLUc81kS/Z+sNs7yiKqVMJQCESACncfQMbhA5zg4WlwSUwusw3t1pMglEY=', 'x-amz-request-id': 'ATGKK2K4YAXJ8GTT', 'Date': 'Tue, 04 Jan 2022 20:04:19 GMT', 'Server': 'AmazonS3', 'Content-Length': '0'}
2022-01-04 22:04:19,031 - MainThread - botocore.parsers - DEBUG - Response body:
b''
2022-01-04 22:04:19,031 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.RestoreObject: calling handler <bound method RetryHandler.needs_retry of <botocore.retries.standard.RetryHandler object at 0x10de2f340>>
2022-01-04 22:04:19,031 - MainThread - botocore.retries.standard - DEBUG - Not retrying request.
2022-01-04 22:04:19,031 - MainThread - botocore.hooks - DEBUG - Event needs-retry.s3.RestoreObject: calling handler <bound method S3RegionRedirector.redirect_from_error of <botocore.utils.S3RegionRedirector object at 0x10de2f3d0>>
2022-01-04 22:04:19,031 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.RestoreObject: calling handler <function enhance_error_msg at 0x1076961f0>
2022-01-04 22:04:19,031 - MainThread - botocore.hooks - DEBUG - Event after-call.s3.RestoreObject: calling handler <bound method RetryQuotaChecker.release_retry_quota of <botocore.retries.standard.RetryQuotaChecker object at 0x10ddeaeb0>>
2022-01-04 22:04:19,031 - MainThread - awscli.formatter - DEBUG - RequestId: ATGKK2K4YAXJ8GTT
répondu il y a 2 ans
0
2022-01-04 22:04:16,802 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.2.41 Python/3.9.7 Darwin/20.3.0 source/x86_64
2022-01-04 22:04:16,802 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['s3api', '--debug', '--profile', 'atlas', 'restore-object', '--restore-request', 'Days=30', '--bucket', 'client-documents-1', '--key', '1-1607610920573_Screen Shot 2020-12-02 at 01.35.32.png']
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_s3 at 0x107694f70>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_ddb at 0x1074da160>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.configure.configure.ConfigureCommand'>>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x107477700>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function change_name at 0x10747c670>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function alias_opsworks_cm at 0x1076a9940>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_history_commands at 0x107528d30>
2022-01-04 22:04:16,824 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <bound method BasicCommand.add_command of <class 'awscli.customizations.devcommands.CLIDevCommand'>>
2022-01-04 22:04:16,825 - MainThread - botocore.hooks - DEBUG - Event building-command-table.main: calling handler <function add_waiters at 0x10769db80>
2022-01-04 22:04:16,825 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/2.2.41/libexec/lib/python3.9/site-packages/awscli/data/cli.json
2022-01-04 22:04:16,827 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_types at 0x1075e49d0>
2022-01-04 22:04:16,827 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function no_sign_request at 0x1075e5550>
2022-01-04 22:04:16,827 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_verify_ssl at 0x1075e54c0>
2022-01-04 22:04:16,827 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_read_timeout at 0x1075e5670>
2022-01-04 22:04:16,827 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <function resolve_cli_connect_timeout at 0x1075e55e0>
2022-01-04 22:04:16,828 - MainThread - botocore.hooks - DEBUG - Event top-level-args-parsed: calling handler <built-in method update of dict object at 0x107740680>
2022-01-04 22:04:16,828 - MainThread - botocore.session - DEBUG - Setting config variable for profile to 'atlas'
2022-01-04 22:04:16,828 - MainThread - awscli.clidriver - DEBUG - CLI version: aws-cli/2.2.41 Python/3.9.7 Darwin/20.3.0 source/x86_64 prompt/off
2022-01-04 22:04:16,828 - MainThread - awscli.clidriver - DEBUG - Arguments entered to CLI: ['s3api', '--debug', '--profile', 'atlas', 'restore-object', '--restore-request', 'Days=30', '--bucket', 'client-documents-1', '--key', '1-1607610920573_Screen Shot 2020-12-02 at 01.35.32.png']
2022-01-04 22:04:16,828 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_timestamp_parser at 0x1076965e0>
2022-01-04 22:04:16,828 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function register_uri_param_handler at 0x1071bb1f0>
2022-01-04 22:04:16,828 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function add_binary_formatter at 0x107706f70>
2022-01-04 22:04:16,829 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function no_pager_handler at 0x10717c3a0>
2022-01-04 22:04:16,829 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_assume_role_provider_cache at 0x1071e1ca0>
2022-01-04 22:04:16,831 - MainThread - botocore.utils - DEBUG - IMDS ENDPOINT: http://169.254.169.254/
2022-01-04 22:04:16,838 - MainThread - botocore.credentials - DEBUG - Skipping environment variable credential check because profile name was explicitly set.
2022-01-04 22:04:16,838 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function attach_history_handler at 0x107528c10>
2022-01-04 22:04:16,838 - MainThread - botocore.hooks - DEBUG - Event session-initialized: calling handler <function inject_json_file_cache at 0x1074d8040>
2022-01-04 22:04:16,859 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/2.2.41/libexec/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/service-2.json
2022-01-04 22:04:16,870 - MainThread - botocore.hooks - DEBUG - Event building-command-table.s3api: calling handler <function add_waiters at 0x10769db80>
2022-01-04 22:04:16,890 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/2.2.41/libexec/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/waiters-2.json
2022-01-04 22:04:16,890 - MainThread - awscli.clidriver - DEBUG - OrderedDict([('bucket', <awscli.arguments.CLIArgument object at 0x10da5b5e0>), ('key', <awscli.arguments.CLIArgument object at 0x10da5b5b0>), ('version-id', <awscli.arguments.CLIArgument object at 0x10da5b550>), ('restore-request', <awscli.arguments.CLIArgument object at 0x10da5b520>), ('request-payer', <awscli.arguments.CLIArgument object at 0x10da5b4f0>), ('expected-bucket-owner', <awscli.arguments.CLIArgument object at 0x10da5b700>)])
2022-01-04 22:04:16,890 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.restore-object: calling handler <function add_streaming_output_arg at 0x1076968b0>
2022-01-04 22:04:16,890 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.restore-object: calling handler <function add_cli_input_json at 0x1071e84c0>
2022-01-04 22:04:16,891 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.restore-object: calling handler <function add_cli_input_yaml at 0x1071e8700>
2022-01-04 22:04:16,891 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.restore-object: calling handler <function unify_paging_params at 0x1074da790>
2022-01-04 22:04:16,911 - MainThread - botocore.loaders - DEBUG - Loading JSON file: /usr/local/Cellar/awscli/2.2.41/libexec/lib/python3.9/site-packages/botocore/data/s3/2006-03-01/paginators-1.json
2022-01-04 22:04:16,911 - MainThread - botocore.hooks - DEBUG - Event building-argument-table.s3api.restore-object: calling handler <function add_generate_skeleton at 0x1075d8f70>
2022-01-04 22:04:16,911 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.s3api.restore-object: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputJSONArgument object at 0x10da5b7f0>>
2022-01-04 22:04:16,911 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.s3api.restore-object: calling handler <bound method OverrideRequiredArgsArgument.override_required_args of <awscli.customizations.cliinput.CliInputYAMLArgument object at 0x10da5b820>>
2022-01-04 22:04:16,911 - MainThread - botocore.hooks - DEBUG - Event before-building-argument-table-parser.s3api.restore-object: calling handler <bound method GenerateCliSkeletonArgument.override_required_args of <awscli.customizations.generatecliskeleton.GenerateCliSkeletonArgument object at 0x10da5b8b0>>
2022-01-04 22:04:16,912 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.s3.restore-object.bucket: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10778eaf0>
2022-01-04 22:04:16,912 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.s3.restore-object: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1071a9fa0>
2022-01-04 22:04:16,912 - MainThread - awscli.arguments - DEBUG - Unpacked value of 'client-documents-1' for parameter "bucket": 'client-documents-1'
2022-01-04 22:04:16,912 - MainThread - botocore.hooks - DEBUG - Event load-cli-arg.s3.restore-object.key: calling handler <awscli.paramfile.URIArgumentHandler object at 0x10778eaf0>
2022-01-04 22:04:16,912 - MainThread - botocore.hooks - DEBUG - Event process-cli-arg.s3.restore-object: calling handler <awscli.argprocess.ParamShorthandParser object at 0x1071a9fa0>
2022-01-04 22:04:16,912 - MainThread - awscli.arguments - DEBUG - Unpacked value of '1-1607610920573_Screen Shot 2020-12-02 at 01.35.32.png' for parameter "key": '1-1607610920573_Screen Shot 2020-12-02 at 01.35.32.png'
répondu il y a 2 ans
Contenus pertinents
- Réponse acceptéedemandé il y a 2 ans
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a 3 ans