dvc add causing "ERROR: failed to download" after dvc remove and gc
See original GitHub issueHi, 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:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Reproduced the symlink case. Thanks for instructions @GBJim.
@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.