# Build error exit code: 2 during git lfs pull

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%3E%5C
**Category:** Spaces\
**Created:** [May 11, 2023, 12:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454 "2023-05-11T00:16:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kyauy](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@kyauy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkyauy)%5C
**Post date:** [May 11, 2023, 12:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%2F1 "2023-05-11T00:16:33Z")

</div>

Hi Huggingface community,

I face an issue for my second app on spaces.  
 → [PhenIEI - a Hugging Face Space by kyauy](https://huggingface.co/spaces/kyauy/PhenIEI)

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 user.email "name@mail.com" && git config user.name "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 ([https://pheniei.streamlit.app/](https://pheniei.streamlit.app/)).

Does someone has already face this issue ?

Thanks,  
Kévin

---

<div class="post-metadata">

**Author:** ![chandrakalagowda](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chandrakalagowda](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fchandrakalagowda)%5C
**Post date:** [June 29, 2023, 3:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%2F2 "2023-06-29T15:25:40Z")

</div>

I face the same error.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [June 30, 2023, 12:29am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%2F3 "2023-06-30T00:29:54Z")

</div>

cc @whitphx currently maintaining Spaces Streamlit SDK

---

<div class="post-metadata">

**Author:** ![whitphx](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/whitphx/32/22242_2.png) [@whitphx](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwhitphx)%5C
**Post date:** [June 30, 2023, 7:27am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%2F4 "2023-06-30T07:27:44Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![chris-rannou](https://avatars.discourse-cdn.com/v4/letter/c/7feea3/32.png) [@chris-rannou](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fchris-rannou)%5C
**Post date:** [June 30, 2023, 7:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%2F5 "2023-06-30T07:40:15Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kyauy](https://avatars.discourse-cdn.com/v4/letter/k/779978/32.png) [@kyauy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fkyauy)%5C
**Post date:** [July 1, 2023, 4:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-error-exit-code-2-during-git-lfs-pull%2F39454%2F6 "2023-07-01T16:12:27Z")

</div>

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