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.

dvc add causing "ERROR: failed to download" after dvc remove and gc

See original GitHub issue

Hi, I am using dvc 0.50.1 I found if I do dvc add after dvc remove and dvc gc. It leads to an error as the following:

$dvc add data.csv
$dvc remove data.csv.dvc
$rm data.csv.dvc
$dvc gc
$dvc add data.csv

ERROR: failed to download ".dvc/cache/............"
[Errno 2] No such file or directory: ''/home/ccha97u/Documents/dvc_example/.dvc/cache/....."

Is this an expected behavior? How do I solve this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
Suorcommented, Jul 3, 2019

Reproduced the symlink case. Thanks for instructions @GBJim.

1reaction
Suorcommented, Jul 3, 2019

@GBJim for the time being you can touch any file in the dir to make it work, this will update its mtime and resolve the confusion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting | Data Version Control - DVC
Users may encounter errors when running dvc pull and dvc fetch , like WARNING: Cache 'xxxx' not found. or ERROR: failed to pull...
Read more >
`dvc gc` does not remove files under dir.unpacked - Bug Reports
I initialize an empty repository with dvc init and add data with dvc add data in directory that contains to datasets:
Read more >
add | Data Version Control - DVC
Open-source version control system for Data Science and Machine Learning projects. Git-like experience to organize your data, models, and experiments.
Read more >
push | Data Version Control - DVC
Description. The dvc push and dvc pull commands are the means for uploading and downloading data to and from remote storage (S3, SSH,...
Read more >
remove | Data Version Control - DVC
dvc remove doesn't remove files from the DVC cachecache or remote storage. Use dvc gc for that. It takes one or more stage...
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