Comments (9)
Hi @jeffgardnerdev, thanks for reaching out. Could you provide debug logs of this behavior? You can get debug logs by adding --debug
to your command, and redacting any sensitive information. Logs with --delete
and without --delete
would both be appreciated. Thanks!
from aws-cli.
Here are the two debug outputs, one without the --delete
option and one with the --delete
option. In this case the two prefixes are identical but the sync command copies/deletes 4 of the 5 files every time. Bucket names are redacted. ListObjectsV2 responses for the two prefixes return the objects in a different order.
s3-sync-standard-to-directory-with-delete-debug-output.txt
s3-sync-standard-to-directory-debug-output.txt
from aws-cli.
@jeffgardnerdev, thanks for your patience. I was able to reproduce this behavior, and your theory that this is related to ListObjectsV2
not sorting directory buckets is likely correct. We've reached out to the service team, and I'll leave any updates in this issue.
If other people are experiencing this issue, providing details and any impact in this issue would be appreciated.
Ticket # for internal use : P114641353
from aws-cli.
@RyanFitzSimmonsAK Could you share some more information about the decision to disable the sync command for directory buckets entirely? This is useful functionality that would be nice to keep, provided the ordering issue could be fixed.
from aws-cli.
Hello,
Thank you for reporting this issue. We have released AWS CLI v1.32.25 and v2.15.13 and strongly recommend that you upgrade to address this issue. If you are unable to upgrade, do not run the aws s3 sync
command with an S3 Express One Zone directory bucket.
from aws-cli.
@jeffgardnerdev I did see your question about further information, which I will post here if I am able.
from aws-cli.
Here are some additional technical details on this issue if you are interested.
The reason we’ve removed the sync
command for directory buckets is what @jeffgardnerdev already noticed: there is an incompatibility between the way that the CLI compares a list of objects in a bucket and the results of the ListObjectsv2
API call on directory buckets[1]. Operations with S3 are threaded, and we’re comparing a list of objects as from the S3 API as that list is being populated. This isn’t compatible with directory buckets, because there’s no way to ensure the ordering of objects coming from S3. Because of the incompatibility, the sync
command will not work properly on a directory bucket. There is no workaround for directory buckets and sync
at this time, except to refrain from using sync
and instead use cp
or similar.
In the versions of the CLI I noted above, v1.32.25 and v2.15.13 and later, we removed sync
with directory bucket destinations or sources to prevent anyone from using this command and getting inconsistent or incorrect results.
1: Specifically, "Sorting order of returned objects" on the linked documentation page.
from aws-cli.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
from aws-cli.
Isn't it a bit weird to close this issue, @kellertk? I would assume that people would want sync
to work with S3 Express One Zone, for natural API compatibility.
from aws-cli.
Related Issues (20)
- sso_region is ignored when region differs in profile HOT 4
- aws ecr describe-image-scan-findings with no recommendations HOT 6
- sso-region incorrect HOT 1
- Alpine 3.20 release HOT 8
- cannot import name 'SSOTokenFetcher' from 'botocore.utils' (C:\Python\Python310\lib\site-packages\botocore\utils.py) HOT 1
- Assume Role With Web Identity doesn't respect region HOT 3
- libpython3.11.so.1.0: pwritev2: symbol not found HOT 3
- Duplicate Example headings - sync HOT 2
- Segmentation Fault on ArmV8 with Crypto Extensions HOT 2
- Inaccurate AWS Bedrock User Guide HOT 3
- ec2 subcommand fails when given --tag-specifications HOT 1
- aws cli glue HOT 2
- ec2 modify-instance-attribute not working with binary file (fileb://) HOT 2
- 'aws configure get' should support sso-session configurations HOT 3
- trailing semicolon in login URL in aws sso login not friendly for recognization or click HOT 3
- sqs commands seem to ignore `AWS_ENDPOINT_URL` HOT 3
- aws cli can't connect to any region/endpoint and throws Bad file descriptor HOT 2
- `aws sesv2 list-contacts` returns an empty result when filtering with `FilteredStatus=OPT_OUT` HOT 3
- `put-bucket-acl` : JSON file causing MalformedACLError for XML in AWS S3 Bucket ACL Operation HOT 4
- Health uses invalid endpoints when region is set HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-cli.