Build error exit code: 2 during git lfs pull

Hi Huggingface community,

I face an issue for my second app on spaces.
PhenIEI - a Hugging Face Space by kyauy

The app can’t be build, and the error is here :

→ RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt pip install --no-cache-dir -r pre-requirements.txt

→ ERROR: process “/bin/sh -c git init && git remote add origin $(cat /run/secrets/SPACE_REPOSITORY) && git add --all && git config "" && git config "Name" && git commit -m "lfs" && git lfs pull && rm -rf .git .gitattributes” did not complete successfully: exit code: 2

I tried to reboot, recommit track on git lfs, but still not working.
It work in streamlit cloud though (

Does someone has already face this issue ?


I face the same error.

cc @whitphx currently maintaining Spaces Streamlit SDK

Thank you so much for the report!
Will investigate it with the infra team. Let us take a bit more.

Hello @kyauy,

It seems there is an issue with the LFS files in your repository. Attempting to simply clone the repository fails as well with a not found error on the data/Homo_sapiens.gene_info.gz object.

You need to push these files again (or delete the LFS pointers) to solve the issue.

1 Like

Thank a lot for your answer, I didn’t had this clone issue on my computer. I’ll inspect on that, thanks again!