# Space stuck at building / preparing

**URL:** <https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503>\
**Category:** Spaces\
**Created:** [September 30, 2024, 3:09pm UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503 "2024-09-30T15:09:06Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyzzzzzz](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tonyzzzzzz](https://discuss.huggingface.co/u/tonyzzzzzz)\
**Post date:** [September 30, 2024, 3:09pm UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/1 "2024-09-30T15:09:06Z")

</div>

Hi,

I had a space running fine before, but then it stuck at building for two months. I tried to factory reset and duplicate it; the duplication works fine. Last night, when I made a commit to the duplicated repo, it stuck at the building again. Has anyone seen the same?

Here’s the repo link:  
Duplicated one: [https://huggingface.co/spaces/mapitanywhere/Mapper-new?logs=build](https://huggingface.co/spaces/mapitanywhere/Mapper-new?logs=build)

Original one: [Map It Anywhere (MIA): Empowering Bird’s Eye View Mapping using Large-scale Public Data - a Hugging Face Space by mapitanywhere](https://huggingface.co/spaces/mapitanywhere/Mapper?logs=build)

---

<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:** [September 30, 2024, 11:32pm UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/2 "2024-09-30T23:32:30Z")

</div>

> **[Map It Anywhere (MIA): Empowering Bird’s Eye View Mapping using Large-scale...](https://huggingface.co/spaces/John6666/Mapper)**
>
> Discover amazing ML apps made by the community

There was a period, I think it was between two months ago and about a month ago, when the HF build was very unstable. It’s mostly resolved now.

But maybe it’s not completely resolved.  
I just duplicated it now and it works in my environment even though I didn’t change anything.

If your changes had failed, it would just stop with an error or the demo would not work as expected, but the phenomenon of it staying stopped without error during the build is inherently strange.  
I suspect an HF error.

---

<div class="post-metadata">

**Author:** ![tonyzzzzzz](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tonyzzzzzz](https://discuss.huggingface.co/u/tonyzzzzzz)\
**Post date:** [October 1, 2024, 12:36am UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/3 "2024-10-01T00:36:23Z")

</div>

Yea, if you trigger a rebuild or just commit something, the environment breaks - either stopped at build queued or preparing space. Is there any way to contact Space support staff?

---

<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 1, 2024, 12:50am UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/4 "2024-10-01T00:50:27Z")

</div>

I see, there must be some intricate specification problem, or perhaps a dependency entry error or something…

> Is there any way to contact Space support staff?

It is most appropriate to open a **Discussion**. It will reach the author’s Notifications screen so the author can easily notice it. If you are in a hurry, you can send a mention with **@+username**.

> **[Hugging Face – The AI community building the future.](https://huggingface.co/login?next=%2Fspaces%2Fmapitanywhere%2FMapper%2Fdiscussions%2Fnew)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<div class="post-metadata">

**Author:** ![tonyzzzzzz](https://avatars.discourse-cdn.com/v4/letter/t/45deac/32.png) [@tonyzzzzzz](https://discuss.huggingface.co/u/tonyzzzzzz)\
**Post date:** [October 1, 2024, 1:44am UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/5 "2024-10-01T01:44:00Z")

</div>

We are the authors and I have confirmed that the docker runs locally. So I’m just wondering what could possibly be the problem

---

<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 1, 2024, 1:53am UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/6 "2024-10-01T01:53:39Z")

</div>

Oh, sorry, I completely misunderstood. 😅  
I often have trouble knowing who the space’s support staff is, too.  
If it’s a problem with the Zero GPU space, there’s a Zero GPU space community where I can report it…  
@not-lain , do you know anything about this?

---

<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 1, 2024, 8:48am UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/7 "2024-10-01T08:48:53Z")

</div>

> **[Update requirements.txt · John6666/Mapper at e7b2847](https://huggingface.co/spaces/John6666/Mapper/commit/e7b2847ef9dd61403a58605fdd9bc23f5b9203c5)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **[Update app.py · John6666/Mapper at 2a7d1a5](https://huggingface.co/spaces/John6666/Mapper/commit/2a7d1a5fcf632b5dd815644eff7b24365cc57779)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

It was boring to just wait for the HF space staff, so I made two commits that made no sense, but both builds and startups were successful.

Among the Spaces malfunctions of the past few months, there was one case where a space remained stuck even after rebuilding and renaming, but it worked when the source code was ported to a newly created space.  
However, at that time, Duplicate did not work. This time, it works even though it is Duplicate.  
At that time, I suspected related data such as commit history of git, but there might be more fundamental problem.

## P.S.

Then I did this commit and it got stuck in the build state. I no longer understand what it means.

> **[Update README.md · John6666/Mapper at bce579c](https://huggingface.co/spaces/John6666/Mapper/commit/bce579ccf82cff44f7e458424681482afe308617)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

---

<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 2, 2024, 9:00am UTC](https://discuss.huggingface.co/t/space-stuck-at-building-preparing/109503/8 "2024-10-02T09:00:16Z")

</div>

> **[Map It Anywhere (MIA): Empowering Bird’s Eye View Mapping using Large-scale...](https://huggingface.co/spaces/John6666/Mapper4)**
>
> Discover amazing ML apps made by the community

I successfully ran Spaces based on the source with the same changes as above. The only thing that changed was the line feed code, but that is probably irrelevant this time.

The reason why the newline code was changed is that my environment is Windows, and when I downloaded the source from git, it was converted from LF to CRLF.  
Only .sh gave me an error, so I had to convert it back to LF in a text editor.
