# Build Error - Error while cloning space repository for all spaces

**URL:** <https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004>\
**Category:** Spaces\
**Created:** [March 27, 2024, 7:37pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004 "2024-03-27T19:37:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kienan](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@Kienan](https://discuss.huggingface.co/u/Kienan)\
**Post date:** [March 27, 2024, 7:37pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/1 "2024-03-27T19:37:48Z")

</div>

All my spaces are failing to build with the same error message. Even when building a new app and having a single streamlit line it fails to build.  
 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/c/e/ced2d8a7c2aeb7c750de459ce3389c76cc5905f8.png)

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [March 27, 2024, 7:39pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/2 "2024-03-27T19:39:37Z")

</div>

hi @Kienan ,  
could you please share one public Space example? so we can help you?  
Thanks

---

<div class="post-metadata">

**Author:** ![Kienan](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@Kienan](https://discuss.huggingface.co/u/Kienan)\
**Post date:** [March 27, 2024, 7:42pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/3 "2024-03-27T19:42:22Z")

</div>

> **[Tester - a Hugging Face Space by Kienan](https://huggingface.co/spaces/Kienan/Tester)**
>
> Discover amazing ML apps made by the community

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [March 27, 2024, 10:10pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/5 "2024-03-27T22:10:12Z")

</div>

have you tried a factory reboot?

---

<div class="post-metadata">

**Author:** ![Kienan](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@Kienan](https://discuss.huggingface.co/u/Kienan)\
**Post date:** [March 28, 2024, 2:04am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/6 "2024-03-28T02:04:08Z")

</div>

Yes the factory reboot doesn’t fix it. This is across several spaces too.

---

<div class="post-metadata">

**Author:** ![rohankaran](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rohankaran/32/25232_2.png) [@rohankaran](https://discuss.huggingface.co/u/rohankaran)\
**Post date:** [March 28, 2024, 6:41am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/7 "2024-03-28T06:41:48Z")

</div>

HI @radames , This is happening across spaces, probably the issue is with the free server

- [Guardrails Arena - a Hugging Face Space by lighthouzai](http://huggingface.co/spaces/lighthouzai/guardrails-arena)

---

<div class="post-metadata">

**Author:** ![Kienan](https://avatars.discourse-cdn.com/v4/letter/k/8e7dd6/32.png) [@Kienan](https://discuss.huggingface.co/u/Kienan)\
**Post date:** [March 28, 2024, 1:10pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/8 "2024-03-28T13:10:34Z")

</div>

Seems to have fixed itself today but might have been an issue with the free server as @rohankaran had suggested.

---

<div class="post-metadata">

**Author:** ![rohankaran](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rohankaran/32/25232_2.png) [@rohankaran](https://discuss.huggingface.co/u/rohankaran)\
**Post date:** [March 28, 2024, 1:38pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/9 "2024-03-28T13:38:54Z")

</div>

Yeah it’s working for me now, too.

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [March 28, 2024, 4:22pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/10 "2024-03-28T16:22:05Z")

</div>

Thank you, @rohankaran and @Kienan. An internal issue was resolved yesterday.

---

<div class="post-metadata">

**Author:** ![giswqs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/giswqs/32/23677_2.png) [@giswqs](https://discuss.huggingface.co/u/giswqs)\
**Post date:** [March 29, 2024, 2:53am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/11 "2024-03-29T02:53:56Z")

</div>

Many of my spaces are getting build error.

> **[Streamlit - a Hugging Face Space by giswqs](https://huggingface.co/spaces/giswqs/Streamlit)**
>
> Discover amazing ML apps made by the community

```plaintext
===== Build Queued at 2024-03-29 02:51:47 / Commit SHA: 6bd2654 =====

--> FROM docker.io/library/python:3.10@sha256:0be08c1c2c060efbcb8cf14d3d2c3e1e8d3f46ca7cb6937e7565b4658a85b790
DONE 0.0s

--> ERROR: failed to calculate checksum of ref y2rfi99qeb2kddrv930ddhrmz::tnufyz1j7tl25n4zg2h7re3wp: "/.lfs.hf.co": not found

```

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [March 29, 2024, 3:49am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/12 "2024-03-29T03:49:06Z")

</div>

Could you please try a factory reboot? The build error has been addressed.

---

<div class="post-metadata">

**Author:** ![giswqs](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/giswqs/32/23677_2.png) [@giswqs](https://discuss.huggingface.co/u/giswqs)\
**Post date:** [March 29, 2024, 11:35am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/13 "2024-03-29T11:35:22Z")

</div>

I tried factory rebuild, but still getting errors

---

<div class="post-metadata">

**Author:** ![methodw](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@methodw](https://discuss.huggingface.co/u/methodw)\
**Post date:** [March 30, 2024, 10:16am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/14 "2024-03-30T10:16:02Z")

</div>

I get build error too

error: failed to solve: failed to compute cache key: failed to calculate checksum of ref 71sb8c1j5es4r58v7mql8m21z::ikbxsm42nd019by36todppto3: “/.lfs.hf.co”: not found

---

<div class="post-metadata">

**Author:** ![rohankaran](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/rohankaran/32/25232_2.png) [@rohankaran](https://discuss.huggingface.co/u/rohankaran)\
**Post date:** [March 31, 2024, 5:57am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/15 "2024-03-31T05:57:32Z")

</div>

Hi, build errors are not occurring anymore for me, but spaces are getting randomly stopped with runtime error. Have to rebuild manually everytime.

---

<div class="post-metadata">

**Author:** ![Zhu-FaceOnLive](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zhu-faceonlive/32/33577_2.png) [@Zhu-FaceOnLive](https://discuss.huggingface.co/u/Zhu-FaceOnLive)\
**Post date:** [April 2, 2024, 12:05am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/16 "2024-04-02T00:05:04Z")

</div>

This issue still happening in simple gradio app. ( [OpenKYC - FaceOnLive Community Project - a Hugging Face Space by FaceOnLive](https://huggingface.co/spaces/FaceOnLive/OpenKYC))  
Please resolve this.

```auto
--> ERROR: failed to calculate checksum of ref zkqgkfjn4oj615x4aiz4eario::sekbtgyx0twzxt9l6bqh66r1b: "/.lfs.hf.co": not found

```

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](https://discuss.huggingface.co/u/radames)\
**Post date:** [April 2, 2024, 9:41pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/17 "2024-04-02T21:41:31Z")

</div>

could you please try this?

> [@Build error with factory rebuild](https://discuss.huggingface.co/t/build-error-with-factory-rebuild/79232/6):
>
> While infra works on a fix, could everyone please try to do a new commit to the repo? not only a factory reboot, but edit a file or upload a dummy file, that would trigger a different rebuild. thanks

---

<div class="post-metadata">

**Author:** ![Liusuthu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/liusuthu/32/33252_2.png) [@Liusuthu](https://discuss.huggingface.co/u/Liusuthu)\
**Post date:** [April 4, 2024, 7:33am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/18 "2024-04-04T07:33:16Z")

</div>

> [@giswqs](#):
>
> tory rebuild, but st

i am confronted with exactly the same issues, 3 of my spaces would run into “Build up Error” with no omens.

---

<div class="post-metadata">

**Author:** ![Liusuthu](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/liusuthu/32/33252_2.png) [@Liusuthu](https://discuss.huggingface.co/u/Liusuthu)\
**Post date:** [April 4, 2024, 7:34am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/19 "2024-04-04T07:34:30Z")

</div>

> [@rohankaran](#):
>
> spaces are getting randomly stopped with runtime error. Have to rebuild manually everytime

Me too. This has occured for nearly a month. Really annoying and i dont know why.

---

<div class="post-metadata">

**Author:** ![Bhaskar2611](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@Bhaskar2611](https://discuss.huggingface.co/u/Bhaskar2611)\
**Post date:** [October 28, 2024, 8:32pm UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/20 "2024-10-28T20:32:18Z")

</div>

![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/2/b/2bfac86e6a531d4ed8cf013ab6cfb7fb7692174d.png)  
facing the issue and i have just renamed it and now i renamed again to my old name and also reverted to my working version through git but still facing this error after restarting what i have to do and mine is a public space [Capstone - a Hugging Face Space by Bhaskar2611](https://huggingface.co/spaces/Bhaskar2611/Capstone)  
can anyone help me with this issue?

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [October 29, 2024, 12:05am UTC](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004/21 "2024-10-29T00:05:14Z")

</div>

Maybe same issue.

> [@Build error: Error while cloning repository](https://discuss.huggingface.co/t/build-error-error-while-cloning-repository/113801/1):
>
> I’ve attempted to restart and perform a factory build multiple times, yet the build error persists. I’ve also researched and tried solutions from similar issues, but to no avail. Space link: [Image Matching Webui - a Hugging Face Space by Realcat](https://huggingface.co/spaces/Realcat/image-matching-webui) Thanks for your help:)

[Next page](https://discuss.huggingface.co/t/build-error-error-while-cloning-space-repository-for-all-spaces/79004.md?page=2)
