question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pull -r remote: Fails with 'No file hash info found'

See original GitHub issue

Bug Report

Description

dvc pull -r <remote> fails with WARNING: No file hash info found for 'dir'. It won't be created. for dvc tracked directory.

  • Happens when no default remote is set
  • Happens with HTTP remote
  • This doesn’t happen with earlier versions (tested with 2.3.0 and works fine)

Reproduce

  1. Clone a repo with a dvc tracked directory and no default remote set. (Example repo: https://dagshub.com/Simon/baby-yoda-segmentation-dataset.git in branch nodefault)
  2. Run dvc pull -r <remote>

Expected

Successful pulling of files

Environment information

Output of dvc doctor:

DVC version: 2.7.2 (pip)
---------------------------------
Platform: Python 3.7.6 on Darwin-20.6.0-x86_64-i386-64bit
Supports:
	http (aiohttp = 3.7.4.post0, aiohttp-retry = 2.4.5),
	https (aiohttp = 3.7.4.post0, aiohttp-retry = 2.4.5)
Cache types: reflink, hardlink, symlink
Cache directory: apfs on /dev/disk1s2s1
Caches: local
Remotes: https
Workspace directory: apfs on /dev/disk1s2s1
Repo: dvc, git

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
kevashcraftcommented, May 25, 2022

For me, this was a simple user error. I was running dvc pull instead of dvc pull -r origin. It only took an hour of tutorials to figure it out 😄

7reactions
kongkipcommented, Jan 28, 2022

This issue was closed but I think it was no resolved, issue #6600 doesn’t resolve it either

This is the error am getting from my end

WARNING: No file hash info found for '*\data\prepared'. It won't be created

1 files failed
ERROR: failed to pull data from the cloud - Checkout failed for following targets:
D:\Work\**\SoftwareDevelopment\**\data\prepared

Is your cache up to date?
<https://error.dvc.org/missing-files>

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to pull existing files from SSH DVC Remote
I am facing the same issue and for dvc status -c -r <remote_name> it shows Cache and remote 'storage' are in sync. –...
Read more >
Can't go to former version of dataset with `dvc checkout`
Hi, I am trying out DVC for the first time for my deep learning development pipeline. As mentioned in the Version Data with...
Read more >
Developers • gpgr - umccr
WARNING: No file hash info found for 'FOO.txt'. It won't be created. ERROR: failed to pull data from the cloud - Checkout failed...
Read more >
file — CMake 3.25.1 Documentation
Path Conversion file(REAL_PATH <path> <out-var> [BASE_DIRECTORY <dir>] [EXPAND_TILDE]) file(RELATIVE_PATH <out-var> <directory> <file>) file({TO_CMAKE_PATH | ...
Read more >
Documentation - Rclone
(See the --config entry for how to find the config file and choose its ... give the error Failed to create file system...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found