-
Notifications
You must be signed in to change notification settings - Fork 65
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
Encountered AWS_ERROR_NO_PERMISSION when I tried to use CRT in AWS CLI to sync files from local to S3 #508
Comments
Hello @jacky96623 , Thank you very much for your submission. In general for issues using the AWS CLI, I would recommend to submitting an issue to the aws-cli repository. Best regards, Yasmine |
Hi @yasminetalby , thanks for the reply. Actually I tested the same file with the default client and the upload is successful. |
We update the underlying C code and updated crt-python to pick up the code. The new release for awscrt python should be available soon. We will also contact aws-cli to pick up the latest change. Thanks for reporting the issue! |
Hello, I am closing this issue as there are no further action from the CRT team on this issue. Let me know if you have any further question/inquiries. Best regards, Yasmine |
Describe the bug
I am trying to use
aws s3 sync
to backup files from my servers to S3. To utilize the bandwidth available, I configure the CLI tool to withpreferred_transfer_client = crt
. From initial testing, the transfer speed can go up to600MB/s
so I decide to adopt this client for the actual backup job.I ran some command similar to the following:
However, I saw the following error:
I then re-run the cmd with debug mode on and saw the following detailed error log:
I suspect it is due to the codes in https://github.com/awslabs/aws-c-io/blob/1f9a085027c5e0f3e0c0e2a9fbe685f12af8105d/source/stream.c#L290-L293 and the permission of my file, which looks like the following:
Expected Behavior
I expect the file to be able to upload as if I use the
default
transfer client, even though I have only read access to the files.Current Behavior
Error
AWS_ERROR_NO_PERMISSION
is encountered.Reproduction Steps
Possible Solution
Open the file to be uploaded with
rb
access instead ofr+b
access.Additional Information/Context
I hope that I do not open the issue in the wrong repository.
aws-crt-cpp version used
Unknown
Compiler and version used
Unknown
Operating System and version
Ubuntu 22.04.2 LTS
The text was updated successfully, but these errors were encountered: