-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
dvc pull returns "failed to pull data" when the data exists on remote #6691
Comments
@RadionBik are your |
no, the directories are not git-ignored. |
Hi, I think I have the same issue. Pulling with the cmd Will create a warning If I pull each file one by one it's OK. $> dvc doctor
|
@clementperon Could you show the contents of those dvc files, please? Also, full verbose error log would be really helpful. |
$> cat data/2021_06_29_some_text_here_in_snakecase.pcap.dvc
|
$ dvc pull -f data/file_1.pcap.dvc data/file_2.ply.dvc
$ dvc pull -f data/file_1.pcap.dvc
|
Please let me know, if you want more details / cmd to execute. |
I'm unable to reproduce this with local or s3 remotes, it may be something specific to gs/gcsfs |
The issue has been introduced in 2.5.0.
Is OK
Failed !! |
Doing git bisect: Turn this commit trig the issue
Can confirm:
Works fine ! |
cc @isidentical |
Looks like removing the TRAVERSE_PREFIX_LEN fix my issue.
Tested on master. |
Resolves #6691. Normally it should have inherited this from the `ObjectFSWrapper`, but this seems like a leftover.
@clementperon Thank you for the research! 🙏 |
@efiop Pleasure is mine 🙂. |
Resolves #6691. Normally it should have inherited this from the `ObjectFSWrapper`, but this seems like a leftover.
Bug Report
Issue name
dvc pull returns "failed to pull data" when the data exists on remote
Description
dvc pull
(also tried with -R option) fails to pull remote data basing on .dvc files from sub-directories and returnsERROR: failed to pull data from the cloud - Checkout failed for following targets:...
, however, when I run the pull cmd on failed files individually, the cmd succeeds.Expected
I expect
dvc pull
to download missing files from sub-directories without the need to run it on each .dvc file.Environment information
Output of
dvc doctor
:The text was updated successfully, but these errors were encountered: