A ran into problem with DVC when some files are missing in remote. For example when I execute dvc pull
I get the output
[##############################] 100% Analysing status.
WARNING: Cache 'c31bcdd6910977a0e3a86446f2f3bdaa' not found. File 'data/2.mp4' won't be created.
WARNING: Cache '77186c4596da7dbc85fefec6d0779049' not found. File 'data/3.mp4' won't be created.
dvc status
gives me:
data/2.mp4.dvc:
changed outs:
not in cache: data/2.mp4
data/3.mp4.dvc:
changed outs:
not in cache: data/3.mp4
It seems that 2.mp4
and 3.mp4
where added under dvc control but dvc push
has not been executed.
I have access to the original mp4 files and I have tried to add them back. I copied the mp4 files to the data folder and executed:
dvc remove data/2.mp4.dvc
dvc remove data/3.mp4.dvc
dvc add data/2.mp4
dvc add data/3.mp4
But there is no effect. How can I remove files from under dvc control and add them again?