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

Switch to S3 HEAD to find bucket location #580

Merged
merged 1 commit into from
Apr 20, 2024

Conversation

ananthb
Copy link
Contributor

@ananthb ananthb commented Apr 16, 2024

S3's GetBucketLocation is deprecated so switching to a HEAD request to find the bucket location.

Fixes #574.

S3's GetBucketLocation is deprecated so switching to a HEAD request
to find the bucket location.
@ananthb
Copy link
Contributor Author

ananthb commented Apr 16, 2024

Not sure if the default bucket stuff is still needed. AWS S3 only says that directory buckets do not have a location associated with them.

@benbjohnson benbjohnson merged commit 5be467a into benbjohnson:main Apr 20, 2024
8 checks passed
@benbjohnson
Copy link
Owner

Thanks!

@ananthb ananthb deleted the headbucket branch April 22, 2024 07:40
@myisaak
Copy link

myisaak commented Jun 12, 2024

This PR breaks the replicate functionality and we get again the error from #574. Reverting to previous commit removed this error.

The error:

/ # litestream restore -o test.db s3://BUCKET/PATH
2024/03/21 06:42:23 ERROR failed to run error="cannot fetch generations: cannot lookup bucket region: AccessDenied: Access Denied\n\tstatus code: 403, request id: Z9QYDYMRKTC8SRPB, host id: ..."

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

Successfully merging this pull request may close these issues.

Switch to HEAD instead of get-bucket-location in S3 init routine
3 participants