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

aws s3 sync re-uploads files that are already in target location (Snowball Edge, Mac) #6816

Closed
2 tasks done
genfhk opened this issue Mar 25, 2022 · 3 comments
Closed
2 tasks done
Assignees
Labels
bug This issue is a bug. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. s3sync

Comments

@genfhk
Copy link

genfhk commented Mar 25, 2022

Confirm by changing [ ] to [x] below to ensure that it's a bug:

Describe the bug
After syncing to Snowball Edge, we repeat the sync command to check that all files have been transferred. This finds additional files to transfer. However, based on the results of an aws s3 ls manifest run before the second sync (and a comparison of md5 checksums of source and destination files), the additional files had already been transferred. Sometimes we can run aws s3 sync multiple times and it will repeatedly sync the same subset of 'un-transferred' files.

SDK version number
AWS-CLI version: aws-cli/2.4.28 Python/3.8.8 Darwin/19.6.0 exe/x86_64 prompt/off

Platform/OS/Hardware/Device
Mac OS 10.15.07

To Reproduce (observed behavior)
Uncertain - does not occur in all syncs

Expected behavior
Sync should only sync a given source file once if sync was successful

Logs/output
Get full traceback and error logs by adding --debug to the command.

2022-03-25 10:23:29,062 - MainThread - awscli.customizations.s3.filters - DEBUG - =/Volumes/XXXX-048/Video/744651/data/PreservationMasters/myh_744651_v01_pm.mkv.qctools.xml.gz final filtered status, should_include: True
2022-03-25 10:23:29,062 - MainThread - awscli.customizations.s3.syncstrategy.base - DEBUG - syncing: /Volumes/XXXX-048/Video/744651/data/PreservationMasters/myh_744651_v01_pm.mkv.qctools.xml.gz -> bucket-name/MPS-snowball/XXXX-048/Video/744651/data/PreservationMasters/myh_744651_v01_pm.mkv.qctools.xml.gz, file does not exist at destination

Additional context
Similar behavior reiererenced in closed issue: #843

@genfhk genfhk added the needs-triage This issue or PR still needs to be triaged. label Mar 25, 2022
@kdaily kdaily added bug This issue is a bug. s3sync and removed needs-triage This issue or PR still needs to be triaged. labels Mar 25, 2022
@kdaily
Copy link
Member

kdaily commented Mar 25, 2022

Hi @genfhk,

Thanks for writing in and sorry to hear you're having an issue. One thing to note is that Snowball Edge only supports AWS CLI version 1.16.14:

https://docs.aws.amazon.com/snowball/latest/developer-guide/using-adapter-cli.html

Currently, Snowball Edge devices support only version 1.16.14 and earlier of the AWS CLI. You can download and install this version of the AWS CLI from GitHub. Use the following procedure to perform this task.

I'm wondering if you still encounter the issue when using that supported version.

@kdaily kdaily added the response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. label Mar 25, 2022
@tim-finnigan tim-finnigan self-assigned this Jun 13, 2022
@tim-finnigan
Copy link
Contributor

Since we haven't heard back in over a couple months I'm going to resolve this issue. As mentioned above, this may have to do with the Snowball Edge service pinning to an old version of the CLI. But please note that we have an open feature feature request here regarding that: aws/aws-sdk#216.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

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. If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. response-requested Waiting on additional info and feedback. Will move to "closing-soon" in 7 days. s3sync
Projects
None yet
Development

No branches or pull requests

3 participants