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

[s3/windows] HeadObject operation: Not Found #3745

Closed
prashaw opened this issue May 5, 2020 · 3 comments
Closed

[s3/windows] HeadObject operation: Not Found #3745

prashaw opened this issue May 5, 2020 · 3 comments
Labels
bug Did we break something? p2-medium Medium priority, should be done, but less important

Comments

@prashaw
Copy link

prashaw commented May 5, 2020

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))

Hello,

I get this error when using dvc add on s3 bucket when the files are deep inside the directories.

C:\Users\user\Desktop\AD>dvc add s3://samplebucket/dvc-test/6b –recursive
Adding...
ERROR: s3://samplebucket/dvc-test/6b/test\test\test.csv does not exist: An error occurred (404) when calling the HeadObject operation: Not Found

The error visible here is with mismatched nt vs posix paths. This works without issues in ubuntu 18.04.

DVC version:

C:\Users\user\Desktop\AD>dvc version
WARNING: Unable to detect supported link types, as cache directory '.dvc\cache' doesn't exist. It is usually auto-created by commands such as `dvc add/fetch/pull/run/import`, but you could create it manually to enable this check.
DVC version: 0.93.0
Python version: 3.7.4
Platform: Windows-10-10.0.17763-SP0
Binary: False
Package: pip
Supported remotes: azure, gdrive, gs, hdfs, http, https, s3, ssh, oss
Repo: dvc, git

The commands I followed prior to this including setting correct aws credentials are:

pip install awscli, boto3, dvc[all]
git init
dvc init
git commit .dvc/config -m "Configure bitbucket remote"
dvc remote add s3cache s3://samplebucket/dvc-test/d4 -f
dvc config cache.s3 s3cache

Thank you!

@triage-new-issues triage-new-issues bot added the triage Needs to be triaged label May 5, 2020
@efiop efiop added the bug Did we break something? label May 6, 2020
@triage-new-issues triage-new-issues bot removed the triage Needs to be triaged label May 6, 2020
@efiop efiop added the p2-medium Medium priority, should be done, but less important label May 6, 2020
@xmaayy
Copy link

xmaayy commented Dec 3, 2020

I am also getting this bug, any solutions?

@efiop
Copy link
Contributor

efiop commented Dec 3, 2020

Hi @xmaayy ! Are you also using cache.s3? If so, you are probably misusing --external. What you really want is #4520 , which we don't have implemented yet, so you need to download the data manually to your local machine, dvc add it and dvc push it.

@efiop
Copy link
Contributor

efiop commented May 3, 2021

Closing in favor of #3920 for the scenario itself

@efiop efiop closed this as completed May 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Did we break something? p2-medium Medium priority, should be done, but less important
Projects
None yet
Development

No branches or pull requests

3 participants