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

CRT error 2054 (AWS_ERROR_HTTP_INVALID_PATH) when mounting S3 Express bucket #712

Open
JakubMartinovicHusar opened this issue Jan 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@JakubMartinovicHusar
Copy link

ubuntu@...:~/mnt/s3$ mount-s3 prime-data-dev--use1-az4--x-s3 /home/ubuntu/mnt/s3/express_dev --region us-east-1 --bucket-type directory
Error: Failed to create S3 client

Caused by:
0: initial ListObjectsV2 failed for bucket prime-data-dev--use1-az4--x-s3 in region us-east-1
1: Client error
2: Unknown CRT error
3: CRT error 2054: aws-c-http: AWS_ERROR_HTTP_INVALID_PATH, Path is invalid.
Error: Failed to create mount process

@JakubMartinovicHusar
Copy link
Author

Hi, I am getting following issue. Can you advice me is this bug issue in my way of using mount-s3? I am mounting directory bucket. It seems to be supported.

@monthonk
Copy link
Contributor

Hi @JakubMartinovicHusar, yes, the latest version of mountpoint should work with directory buckets. Could you give us a bit more information on the version you were using? Is it an official release or it is built from source?

@JakubMartinovicHusar
Copy link
Author

JakubMartinovicHusar commented Jan 25, 2024 via email

@monthonk
Copy link
Contributor

Hi Jakub, I was able to reproduce this problem when I don't have a valid IAM credentials to access the directory bucket. You will need to use an IAM role with s3express:CreateSession permission for your directory buckets in order to access them. You can see an example in our configuration document (https://github.com/awslabs/mountpoint-s3/blob/main/doc/CONFIGURATION.md#iam-permissions).

Anyway, the reported error doesn't tell us anything about permission at all. I think we should improve that error message. Let me know if this solve your problem and I will create another thread for the log improvement.

@dannycjones dannycjones changed the title Issue CRT 2054 CRT error 2054 (AWS_ERROR_HTTP_INVALID_PATH) when mounting S3 Express bucket Jan 29, 2024
@dannycjones dannycjones added the bug Something isn't working label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants