Someone made a mess of a dvc installation. Now when I do
dvc pull
Collecting |7.00 [00:00, 129entry/s]
WARNING: Some of the cache files do not exist neither locally nor on remote. Missing cache files:
md5-dos2unix: 02f3b0034769ba45d758ad1bb9de33a3
md5-dos2unix: c2f5c0a1954209865b9be1945f33ed6e
Fetching
Building workspace index |14.0 [00:00, 87.1entry/s
also
dvc push
Collecting |7.00 [00:00, 114entry/s]
WARNING: Some of the cache files do not exist neither locally nor on remote. Missing cache files:
md5-dos2unix: 02f3b0034769ba45d758ad1bb9de33a3
md5-dos2unix: c2f5c0a1954209865b9be1945f33ed6e
Pushing
Everything is up to date.
Thise mssing files make that pull fails When I do the git pull in a docker container but not manually
In the docker file
# Use an official Python image
FROM python:3.9-slim
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements_inference.txt /app/
# Install dependencies
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r requirements_inference.txt
# Copy the app code into the container
COPY . /app/
# Initialize DVC repository
RUN dvc init --no-scm
# configuring remote server in dvc
# RUN dvc remote add -d mylocalremote /media/sensetime/cbe421fe-1303-4821-9392-a849bfdd00e21/DVC_remote3
RUN dvc remote add -d mylocalremote /mnt/dvc_remote
RUN cat .dvc/config
# pulling the trained model
RUN dvc pull dvcfiles/trained_model.dvc
# Expose port 8000
EXPOSE 8000
# Run the application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
When trying dvc pull I got
#14 [9/9] RUN dvc pull dvcfiles/trained_model.dvc
#14 1.049 WARNING: Some of the cache files do not exist neither locally nor on remote. Missing cache files:
#14 1.049 md5: d871441f125f5145ef908ee49aa4b2cd
#14 1.055 Everything is up to date.
#14 1.055 ERROR: failed to pull data from the cloud - Checkout failed for following targets:
#14 1.055 models/model.onnx
#14 1.055 Is your cache up to date?
#14 1.055 <https://error.dvc.org/missing-files>
#14 ERROR: process "/bin/sh -c dvc pull dvcfiles/trained_model.dvc" did not complete successfully: exit code: 1
------
> [9/9] RUN dvc pull dvcfiles/trained_model.dvc:
1.049 WARNING: Some of the cache files do not exist neither locally nor on remote. Missing cache files:
1.049 md5: d871441f125f5145ef908ee49aa4b2cd
1.055 Everything is up to date.
1.055 ERROR: failed to pull data from the cloud - Checkout failed for following targets:
1.055 models/model.onnx
1.055 Is your cache up to date?
1.055 <https://error.dvc.org/missing-files>
------
How can I solve this?