Skip to content

External output to encrypted s3 fails with ETag mismatch #2701

@Titousensei

Description

@Titousensei

Repro:

$ dvc run -f license.dvc -d LICENSE.txt -o s3://serving-data/test_dvc/LICENSE.txt "aws s3 cp LICENSE.txt s3://serving-data/test_dvc/LICENSE.txt"
Running command:
	aws s3 cp LICENSE.txt s3://serving-data/test_dvc/LICENSE.txt
upload: ./LICENSE.txt to s3://serving-data/test_dvc/LICENSE.txt
ERROR: failed to run command - ETag mismatch detected when copying file to cache! (expected: '780ec3e2106ff7cad2772f088e894bef', actual: 'ef33931c766641805c921aa9edb160c8')

This is on a fresh dvc init where I configured the remote and cache following the tutorial. I also verified that the file is uploaded properly, and the original file and the cached one have the same MD5.

$ aws s3 ls s3://serving-data/test_dvc/
                           PRE cache/
2019-10-30 17:22:11         95 LICENSE.txt
$ aws s3 ls s3://serving-data/test_dvc/cache/78/
2019-10-30 17:22:13         95 0ec3e2106ff7cad2772f088e894bef

My config:

$ cat .dvc/config
['remote "s3cache"']
url = s3://serving-data/test_dvc/cache
sse = aws:kms
[cache]
s3 = s3cache

Please provide information about your setup
DVC version(i.e. dvc --version), Platform and method of installation (pip, homebrew, pkg Mac, exe (Windows), DEB(Linux), RPM(Linux))
dvc --version: 0.66.1
Mac (Catalina), installation by pip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDid we break something?research

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions