# Error while cloning Space repository

**URL:** <https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179>\
**Category:** Beginners\
**Created:** [March 28, 2022, 5:59pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179 "2022-03-28T17:59:35Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlowaSawsan](https://avatars.discourse-cdn.com/v4/letter/a/edb3f5/32.png) [@AlowaSawsan](https://discuss.huggingface.co/u/AlowaSawsan)\
**Post date:** [March 28, 2022, 5:59pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/1 "2022-03-28T17:59:35Z")

</div>

Hello Everyone,

The following build error appears when I open my space app. How to fix this?

Thanks,

```auto
Build error
Error while cloning Space repository
Build logs:

Step 1/29 : ARG PYTHON_VERSION
Step 2/29 : FROM python:${PYTHON_VERSION}
 ---> dd4ac8dff24c
Step 3/29 : RUN apt-get update && apt-get install -y git-lfs
 ---> Using cache
 ---> 8df2f50f96b4
Step 4/29 : RUN git lfs install
 ---> Using cache
 ---> d1c1c68c631a
Step 5/29 : COPY packages.txt /root/packages.txt
 ---> Using cache
 ---> eca743e9a09e
Step 6/29 : RUN apt-get update && xargs -r -a /root/packages.txt apt-get install -y
 ---> Using cache
 ---> 9346ca2cdf77
Step 7/29 : RUN useradd -m user
 ---> Using cache
 ---> 5af76232ed9a
Step 8/29 : USER user
 ---> Using cache
 ---> e369c2ca9971
Step 9/29 : ENV HOME /home/user
 ---> Using cache
 ---> 1bdf8ca58d6f
Step 10/29 : ENV PATH $HOME/.local/bin:$PATH
 ---> Using cache
 ---> e9e1ace0d870
Step 11/29 : WORKDIR $HOME
 ---> Using cache
 ---> eb8a8b54111a
Step 12/29 : RUN mkdir app
 ---> Using cache
 ---> 4c0f270956bf
Step 13/29 : WORKDIR $HOME/app
 ---> Using cache
 ---> 2d523e277334
Step 14/29 : ARG PIP_VERSION=22.0.2
 ---> Using cache
 ---> 1893f6612976
Step 15/29 : RUN pip install pip==${PIP_VERSION}
 ---> Using cache
 ---> 9e9697ac2f08
Step 16/29 : RUN pip install datasets huggingface-hub
 ---> Using cache
 ---> d4a8da8b0789
Step 17/29 : COPY requirements.txt $HOME/app/requirements.txt
 ---> Using cache
 ---> 66a24dc457b7
Step 18/29 : RUN pip install -r requirements.txt
 ---> Using cache
 ---> b63e609dd6bd
Step 19/29 : ARG STREAMLIT_VERSION
 ---> Using cache
 ---> 973b762a04fb
Step 20/29 : ARG GRADIO_VERSION
 ---> Using cache
 ---> 4bde5729320a
Step 21/29 : RUN pip install streamlit==${STREAMLIT_VERSION} gradio==${GRADIO_VERSION}
 ---> Using cache
 ---> 7f19c691bc9b
Step 22/29 : COPY --chown=user ./ $HOME/app
 ---> de449e5cb2ef
Step 23/29 : ENV PYTHONPATH $HOME/app
 ---> Running in 94d0ff64db06
Removing intermediate container 94d0ff64db06
 ---> 2c2df78bf75b
Step 24/29 : ENV PYTHONUNBUFFERED 1
 ---> Running in 8d67d4b422e9
Removing intermediate container 8d67d4b422e9
 ---> 1a4e761c0dc0
Step 25/29 : ENV GRADIO_ALLOW_FLAGGING never
 ---> Running in 1bf353583203
Removing intermediate container 1bf353583203
 ---> 6c3fc939dcb0
Step 26/29 : ENV GRADIO_NUM_PORTS 1
 ---> Running in 450dfb07e72e
Removing intermediate container 450dfb07e72e
 ---> 4e312892faf2
Step 27/29 : ENV GRADIO_SERVER_NAME 0.0.0.0
 ---> Running in 916703fabe20
Removing intermediate container 916703fabe20
 ---> 5185fd571c0c
Step 28/29 : ENV GRADIO_THEME huggingface
 ---> Running in 14d471c3fd1b
Removing intermediate container 14d471c3fd1b
 ---> 034cc6ffcef5
Step 29/29 : ENV SYSTEM spaces
 ---> Running in 99534e1b6b8c
Removing intermediate container 99534e1b6b8c
 ---> 5005c44d5e3a
Successfully built 5005c44d5e3a
Successfully tagged space-cpu-alowasawsan/third-molar-segmentation-67641f9717238d3b61e35ea828e4265718ce8f47:latest

```

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [March 28, 2022, 8:03pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/2 "2022-03-28T20:03:59Z")

</div>

This was a server issue, your Spaces are up again

---

<div class="post-metadata">

**Author:** ![alkibijad](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@alkibijad](https://discuss.huggingface.co/u/alkibijad)\
**Post date:** [March 27, 2024, 5:24pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/3 "2024-03-27T17:24:22Z")

</div>

I’m getting a similar issue now:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/1/d/1da933da53e4e7f60952dd3fe0ec91ce2b4338cb.png)

Any idea what could cause this?

---

<div class="post-metadata">

**Author:** ![Shel2679](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Shel2679](https://discuss.huggingface.co/u/Shel2679)\
**Post date:** [March 27, 2024, 5:33pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/4 "2024-03-27T17:33:17Z")

</div>

I too am facing this issue. It was working a while ago

---

<div class="post-metadata">

**Author:** ![annading](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/annading/32/34662_2.png) [@annading](https://discuss.huggingface.co/u/annading)\
**Post date:** [March 27, 2024, 5:33pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/5 "2024-03-27T17:33:42Z")

</div>

^^ same issue as others

---

<div class="post-metadata">

**Author:** ![chrislevy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chrislevy/32/20797_2.png) [@chrislevy](https://discuss.huggingface.co/u/chrislevy)\
**Post date:** [March 27, 2024, 5:55pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/6 "2024-03-27T17:55:00Z")

</div>

![Screenshot 2024-03-27 at 2.52.59 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/9/2/928936d62dd1220bf94fa70794f5b52e1763f5ac.png)  
Same. Trying to create the simplest app to test

 ![Screenshot 2024-03-27 at 2.56.13 PM](https://us1.discourse-cdn.com/hellohellohello/original/3X/b/f/bf4a72942bb19e828761751e1b12a6fdd42d27cc.png)

---

<div class="post-metadata">

**Author:** ![firica](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@firica](https://discuss.huggingface.co/u/firica)\
**Post date:** [March 27, 2024, 6:38pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/8 "2024-03-27T18:38:17Z")

</div>

Same here. The project worked before.

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/6/1/61bbf461876fc16c9d074d6ab0f6202913855112.png)

---

<div class="post-metadata">

**Author:** ![chrislevy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chrislevy/32/20797_2.png) [@chrislevy](https://discuss.huggingface.co/u/chrislevy)\
**Post date:** [March 27, 2024, 6:41pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/9 "2024-03-27T18:41:19Z")

</div>

I am seeing that it’s failing for private spaces. I created a public one and it worked. Then I marked it as private and then it was broken. Is yours public or private?

---

<div class="post-metadata">

**Author:** ![AmmarFahmy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/ammarfahmy/32/25214_2.png) [@AmmarFahmy](https://discuss.huggingface.co/u/AmmarFahmy)\
**Post date:** [March 27, 2024, 6:50pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/10 "2024-03-27T18:50:57Z")

</div>

Yes, I also faced the same issue. Just changed Private to Public and it worked fine !!

---

<div class="post-metadata">

**Author:** ![firica](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@firica](https://discuss.huggingface.co/u/firica)\
**Post date:** [March 27, 2024, 6:51pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/11 "2024-03-27T18:51:19Z")

</div>

Yes, you are right, thanks! It started to build as public space, although still failing while installing some components that used to work before.

---

<div class="post-metadata">

**Author:** ![chrislevy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chrislevy/32/20797_2.png) [@chrislevy](https://discuss.huggingface.co/u/chrislevy)\
**Post date:** [March 27, 2024, 6:57pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/12 "2024-03-27T18:57:51Z")

</div>

Where do we create an issue about this?

---

<div class="post-metadata">

**Author:** ![firica](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@firica](https://discuss.huggingface.co/u/firica)\
**Post date:** [March 27, 2024, 7:02pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/13 "2024-03-27T19:02:56Z")

</div>

When trying to build using a GPU I receive this error:  
 → ERROR: process “/bin/sh -c mkdir -p .streamlit && git config --global core.excludesfile ~/.gitignore && echo ".streamlit" \> ~/.gitignore” did not complete successfully: exit code: 127

while no problem on the CPU

---

<div class="post-metadata">

**Author:** ![nrakocz](https://avatars.discourse-cdn.com/v4/letter/n/f05b48/32.png) [@nrakocz](https://discuss.huggingface.co/u/nrakocz)\
**Post date:** [March 27, 2024, 7:17pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/14 "2024-03-27T19:17:14Z")

</div>

Same issue. private repo.

---

<div class="post-metadata">

**Author:** ![chrislevy](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/chrislevy/32/20797_2.png) [@chrislevy](https://discuss.huggingface.co/u/chrislevy)\
**Post date:** [March 27, 2024, 7:22pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/15 "2024-03-27T19:22:08Z")

</div>

@osanseviero any ideas on broken private hugging face spaces? Can I create a GH issue somewhere?

---

<div class="post-metadata">

**Author:** ![FireCat1](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@FireCat1](https://discuss.huggingface.co/u/FireCat1)\
**Post date:** [March 27, 2024, 8:08pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/16 "2024-03-27T20:08:28Z")

</div>

I’m seeing too, today. Will try changing private to public and see what happens

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [March 27, 2024, 9:03pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/17 "2024-03-27T21:03:00Z")

</div>

Hi all, sorry for the issues. It should be fixed now!

---

<div class="post-metadata">

**Author:** ![FireCat1](https://avatars.discourse-cdn.com/v4/letter/f/8baadc/32.png) [@FireCat1](https://discuss.huggingface.co/u/FireCat1)\
**Post date:** [March 27, 2024, 9:08pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/18 "2024-03-27T21:08:54Z")

</div>

Thanks, it’s fixed for me now.

---

<div class="post-metadata">

**Author:** ![firica](https://avatars.discourse-cdn.com/v4/letter/f/ee7513/32.png) [@firica](https://discuss.huggingface.co/u/firica)\
**Post date:** [March 27, 2024, 9:16pm UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/19 "2024-03-27T21:16:19Z")

</div>

Thanks, it’s working now! There is still a problem with the streamlit package on GPU only that appeared in the same time with private building issue (it worked fine before):  
 → ERROR: process “/bin/sh -c mkdir -p .streamlit && git config --global core.excludesfile ~/.gitignore && echo ".streamlit" \> ~/.gitignore” did not complete successfully: exit code: 127

Is there any link?

---

<div class="post-metadata">

**Author:** ![alkibijad](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@alkibijad](https://discuss.huggingface.co/u/alkibijad)\
**Post date:** [March 28, 2024, 11:02am UTC](https://discuss.huggingface.co/t/error-while-cloning-space-repository/16179/21 "2024-03-28T11:02:23Z")

</div>

I’ve converted it from private -\>public, and then again public → private, and it’s working.
