- Newest
- Most votes
- Most comments
What is the status of the job?
The "description-job" response contains the word "Completed".
If this value is not true, "get-job-output" will result in an error.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/glacier/describe-job.html
Incidentally, you can also check if the job is complete with the following command.
In the same way, "get-job-output" will fail unless "Completed" in the response is set to true.
aws glacier list-jobs --account-id ************ --vault-name Archive
It seems that you're encountering an issue when attempting to download the output of a Glacier job using the AWS CLI. There might be a couple of reasons why you're receiving a "ResourceNotFoundException" error. Here are some troubleshooting steps you can follow:
-
Double-check the Job ID: Ensure that the Job ID you're providing in the
get-job-output
command is correct. It should match the Job ID of the previously described job. It's possible that there may be a typo or a discrepancy in the ID you're using. -
Check Vault Name and Account ID: Verify that you're using the correct Vault Name and Account ID in the
get-job-output
command. Make sure they match the values associated with the Glacier job you're working with. -
Wait for Job Completion: Ensure that the Glacier job has completed successfully before attempting to download the output. It's possible that the job is still in progress, which could result in the "ResourceNotFoundException" error.
-
Confirm Proper Permissions: Ensure that the AWS credentials you're using have the necessary permissions to access the Glacier service and perform the
get-job-output
action. Double-check the IAM policies attached to the credentials and ensure that they grant the required Glacier permissions. -
Retry after Some Time: Glacier operations may sometimes experience delays in propagating changes. If you've recently created or completed the job, it's worth waiting a few minutes and trying the
get-job-output
command again.
If the issue persists after following these steps, it's recommended to review the AWS CLI documentation for Glacier and consider reaching out to AWS Support for further assistance. They can help investigate the specific details of your Glacier job and provide guidance tailored to your situation.
Thanks for your kind answer. Unfortunately, I've checked and double checked all of the id's and names used in the commands. The Job id is actually copied and pasted in to ensure that it's identical. I'm operating from a Root user account, so permissions shouldn't even be an issue. It's been two days. The describe-job call returns a "Success" report. I've been trying all morning with the get-job-output command. I've scoured the documentation, and the web for any clues. It's reporting one job-id and then not accepting the same job-id to get the output. I may have to try AWS support as this just looks janky.
Relevant content
- asked 2 years ago
- asked 9 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
Thanks for your answer. The StatusCode from a describe-job is "Succeeded". However it still doesn't recognise the job-id.
It is also necessary to check whether the job itself exists by executing the following command. Can you run this command to make sure the job is there?
As described in the following document, if more than 24 hours have passed since the job was issued, it must be re-created. https://docs.aws.amazon.com/amazonglacier/latest/dev/downloading-an-archive-two-steps.html