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

Doesn't work with Glacier/Deep archive objects that have a delete Marker #3

Open
lutaylor opened this issue Oct 5, 2020 · 0 comments

Comments

@lutaylor
Copy link
Contributor

lutaylor commented Oct 5, 2020

I have found when trying to use the tool to do the actual restore request that it doesn't seem to always work.

When attempting to restore Glacier/DeepArchive objects. I have been getting "botocore.exceptions.ClientError: An error occurred (404) when calling the HeadObject operation: Not Found
"
Mostly do to Objects in Glacier that have a delete Marker.

This seems to be due to:

https://github.com/madisoft/s3-pit-restore/blob/master/s3-pit-restore#L199

Object https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#object has no options for "Version". It is likely looking for the object to get the restore value but it can’t find it since you can’t specify a version.

Might consider dropping the actual restore process and just use the tool to identify what needs to be restored and recommend s3 batch operations for Glacier/DeepArchive (which is how I am currently using the tool).

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

No branches or pull requests

1 participant