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

Multiple issues with duck.sh --synchronize when used on a Cryptomator Vault in S3 #11113

Open
cyberduck opened this issue Jul 20, 2020 · 1 comment
Assignees
Labels
bug cli Command Line Interface cryptomator Cryptomator Vault

Comments

@cyberduck
Copy link
Collaborator

a3a243d created the issue

I encountered an issue where duck.sh (version 7.4.1 (33065) on Ubuntu) removes files unexpectedly when using --synchronize for Cryptomator vaults in S3.

How to replicate:

  1. create a cryptomator vault in S3
  2. Create a folder locally and add a few file
  3. Run duck.sh --synchronize -e upload my_folder s3://my_bucket/my_vault/my_folder
  4. Add one more file locally
  5. Run duck.sh --synchronize -e upload my_folder s3://my_bucket/my_folder again
  6. Files uploaded in step 3 are now missing

The commands I used (with any mention of credentials removed) are listed below:

mkdir /tmp/my_folder/
echo "Foo" > /tmp/my_folder/test1.txt

duck --region us-east-1 --vault my_bucket/my_vault/ --synchronize s3://s3.us-east-1.amazonaws.com/my_bucket/my_vault/ /tmp/my_folder --existing upload

Output: "Sync complete. my_folder ↔ my_folder…"

duck --region us-east-1 --vault my_bucket/my_vault/ -l s3://s3.us-east-1.amazonaws.com/my_bucket/my_vault/my_folder/

Output: "Listing directory my_folder... test1.txt"

echo "Bar" > /tmp/my_folder/test2.txt

duck --region us-east-1 --vault my_bucket/my_vault/ --synchronize s3://s3.us-east-1.amazonaws.com/my_bucket/my_vault/ /tmp/my_folder --existing upload

Output: "Sync complete. my_folder ↔ my_folder…"

duck --region us-east-1 --vault my_bucket/my_vault/ -l s3://s3.us-east-1.amazonaws.com/my_bucket/my_vault/my_folder/

Output: "Listing directory my_folder... test2.txt"

Additionally, I noticed that I am unable to use sync to download the contents of Cryptomator vaults from S3.
Entering the command:

duck --region us-east-1 --vault my_bucket/my_vault/ --synchronize s3://s3.us-east-1.amazonaws.com/my_bucket/my_vault/ /tmp/my_folder --existing download

Outputs: "Transfer incomplete. my_folder ↔ my_folder…"

I have entered variations of these sync commands with S3 buckets that are not in Cryptomator vaults and observed that duck does upload new files without deleting old files and does successfully download files with the --synchronize argument. The issue seems to only affect using --synchronize with Cryptomator vaults.

@cyberduck
Copy link
Collaborator Author

@dkocher commented

Related to #10352.

@dkocher dkocher self-assigned this Dec 23, 2021
@tatze96 tatze96 added the cli Command Line Interface label Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cli Command Line Interface cryptomator Cryptomator Vault
Projects
None yet
Development

No branches or pull requests

3 participants