# Space is Building... permanently

**URL:** <https://discuss.huggingface.co/t/space-is-building-permanently/99740>\
**Category:** Spaces\
**Created:** [July 27, 2024, 10:27pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740 "2024-07-27T22:27:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![winstxnhdw](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/winstxnhdw/32/29933_2.png) [@winstxnhdw](https://discuss.huggingface.co/u/winstxnhdw)\
**Post date:** [July 27, 2024, 10:27pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/1 "2024-07-27T22:27:26Z")

</div>

Hey, the space that I have been hosting for almost 2 years isn’t setting up properly. What’s going on? I know many others have this issue and it’s either because Hugging Face’s infrastructure was having a problem or that they are hosting a cryptominer. In this case, it is none of the above, so I am not sure why this is happening.

It’s been about 4 days now and I have tried duplicating the space to no avail.

---

<div class="post-metadata">

**Author:** ![Klein9](https://avatars.discourse-cdn.com/v4/letter/k/3d9bf3/32.png) [@Klein9](https://discuss.huggingface.co/u/Klein9)\
**Post date:** [July 28, 2024, 2:15pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/2 "2024-07-28T14:15:32Z")

</div>

This now also happens to me.

---

<div class="post-metadata">

**Author:** ![ahjvdjf33](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@ahjvdjf33](https://discuss.huggingface.co/u/ahjvdjf33)\
**Post date:** [July 31, 2024, 5:52pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/3 "2024-07-31T17:52:14Z")

</div>

Me too… my customers are very upset and I’m not sure how to fix it.

---

<div class="post-metadata">

**Author:** ![neryl](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@neryl](https://discuss.huggingface.co/u/neryl)\
**Post date:** [August 2, 2024, 3:51am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/4 "2024-08-02T03:51:35Z")

</div>

Hello, we’re receiving the same issue. Spaces was working fine for us yesterday (July 31) and as of August 1 it’s been spinning indefinitely, making it past the Building Stage but getting stuck on “Starting on T4”.

We’re hoping there’s a fix soon? We’re using this platform for a school project and the deadline for our presentation is next week.

![Screenshot 2024-08-01 235107](https://us1.discourse-cdn.com/hellohellohello/original/3X/e/b/eb7a5e8cfbee3191368af8263461acb37ef81fd2.png)

---

<div class="post-metadata">

**Author:** ![anon86339117](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon86339117](https://discuss.huggingface.co/u/anon86339117)\
**Post date:** [August 8, 2024, 11:18pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/5 "2024-08-08T23:18:18Z")

</div>

me too… i stuck with T4 in building stage… tried factory restarts and even creating configuration errors and pauses but none of these worked.  
using docker space.

---

<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:** [August 9, 2024, 1:08am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/6 "2024-08-09T01:08:52Z")

</div>

Same here.  
It seems maybe Gradio-related trouble.

---

<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:** [August 9, 2024, 5:40am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/7 "2024-08-09T05:40:52Z")

</div>

This symptom seems to have been fixed.

---

<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:** [August 9, 2024, 6:01am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/8 "2024-08-09T06:01:42Z")

</div>

I’m getting another error, though…😓  
Looks like today is a bad day to build.

# runtime error

## Scheduling failure: not enough hardware capacity

Container logs:

```auto
===== Application Startup at 1970-01-01 00:00:00 =====

```

---

<div class="post-metadata">

**Author:** ![anon86339117](https://avatars.discourse-cdn.com/v4/letter/a/ce7236/32.png) [@anon86339117](https://discuss.huggingface.co/u/anon86339117)\
**Post date:** [August 9, 2024, 12:16pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/10 "2024-08-09T12:16:21Z")

</div>

Did you take any action to solve the issue?

I still have the problem, I also tried to replace the hardware with some factory restarts, but it just got stuck on building.

---

<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:** [August 9, 2024, 11:11pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/11 "2024-08-09T23:11:14Z")

</div>

No, I didn’t do anything special, but it was fixed today.  
The Gradio version had to be 4.38.1 or lower to work properly for some reason with a mysterious GUI error, but the other problems were gone.  
It’s not uncommon for HF to be temporarily out of order, but maybe there’s more than one factor in this case.

---

<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:** [August 11, 2024, 10:37pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/12 "2024-08-11T22:37:38Z")

</div>

Today, I started getting build errors even in spaces with a fixed Gradio version of 4.38.1.  
It seems that Gradio’s Examples is doing something bad, so I commented out the Examples-related stuff and now it works for the time being.

I didn’t think it would affect past versions.  
It is a puzzling malfunction.

---

<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:** [August 12, 2024, 1:22am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/13 "2024-08-12T01:22:26Z")

</div>

Speaking of which.  
I have some Zero GPU space and CPU space on the HF and the only time I encountered this series of problems was when I was messing with the GPU space.

I don’t know if this means a hardware glitch on HF, a problem between the spaces library and Gradio, or if it’s totally coincidental.

Additional Notes:  
The behavior of the above phenomenon was largely understood.

When starting the demo, Gradio now tries to strictly scan and cache the contents of Examples, but if there is a Dropdown that changes dynamically due to a function, etc., the scan sometimes fails and the demo crashes with an error.

This is a common Gradio tease, but this time it does not care if cache\_example=False, if fn or outputs are not specified, or if Gradio is a slightly older version, it still scans and crashes with an error.🙀

The current workaround is to comment out Examples or downgrade it to a very simple element (such as Textbox or Number).

However, no matter what I think, this is not normal behavior, so I guess the right thing to do is to wait for it to be fixed.  
I’m assuming it’s part of those things, since GIT has been extremely bad for the past few days, and hardware capacity errors have been frequent, and so on.

---

<div class="post-metadata">

**Author:** ![winstxnhdw](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/winstxnhdw/32/29933_2.png) [@winstxnhdw](https://discuss.huggingface.co/u/winstxnhdw)\
**Post date:** [August 12, 2024, 7:58pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/14 "2024-08-12T19:58:49Z")

</div>

This is not a Gradio-only problem. I am using a Docker space.

@radames any ideas?

---

<div class="post-metadata">

**Author:** ![winstxnhdw](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/winstxnhdw/32/29933_2.png) [@winstxnhdw](https://discuss.huggingface.co/u/winstxnhdw)\
**Post date:** [August 12, 2024, 8:22pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/15 "2024-08-12T20:22:28Z")

</div>

Hey @pierric, sorry for the ping but could you take a look at [No Language Left Behind - a Hugging Face Space by winstxnhdw](https://huggingface.co/spaces/winstxnhdw/nllb-api). It’s been down for more than half a month now.

---

<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:** [August 13, 2024, 2:18am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/16 "2024-08-13T02:18:10Z")

</div>

Then it seems likely that the problem is due to some specification change (or associated mistake or trouble) in the virtual environment itself deep in the HF server.  
The time of occurrence also coincides with the time when the serverless inference API was restricted by a major specification change (without any announcement), and it is likely that some kind of renovation is underway under the surface.

I heard that putting in a complaint on Discord gets a quicker response, but I don’t use Discord, so I’ll leave it to someone else.😩

---

<div class="post-metadata">

**Author:** ![cfahlgren1](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cfahlgren1/32/30213_2.png) [@cfahlgren1](https://discuss.huggingface.co/u/cfahlgren1)\
**Post date:** [August 16, 2024, 3:41pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/17 "2024-08-16T15:41:12Z")

</div>

Hey @winstxnhdw , the issue is that the space is using caddy as the reverse proxy. We don’t allow reverse proxies in Spaces which is causing the issue.

I would see about removing Caddy and serving the app directly from Granian

---

<div class="post-metadata">

**Author:** ![winstxnhdw](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/winstxnhdw/32/29933_2.png) [@winstxnhdw](https://discuss.huggingface.co/u/winstxnhdw)\
**Post date:** [August 16, 2024, 8:06pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/18 "2024-08-16T20:06:31Z")

</div>

Very strange. The first ever Hugging Face tutorial I followed was from a Hugging Face moderator which used Nginx as a reverse proxy for FastAPI. If this was a recent change in the ToS, it would be helpful to notify the community beforehand…

---

<div class="post-metadata">

**Author:** ![pierric](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierric/32/50750_2.png) [@pierric](https://discuss.huggingface.co/u/pierric)\
**Post date:** [August 16, 2024, 9:41pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/20 "2024-08-16T21:41:04Z")

</div>

@winstxnhdw would you have a link for this tutorial so we can look into it?

---

<div class="post-metadata">

**Author:** ![winstxnhdw](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/winstxnhdw/32/29933_2.png) [@winstxnhdw](https://discuss.huggingface.co/u/winstxnhdw)\
**Post date:** [August 16, 2024, 11:01pm UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/21 "2024-08-16T23:01:26Z")

</div>

There are several tutorials by @radames

See: [nginx.conf · radames/nginx-gradio-reverse-proxy at main](https://huggingface.co/spaces/radames/nginx-gradio-reverse-proxy/blob/main/nginx.conf)

Anyways, I have removed Caddy and my space is still stuck on Building… [https://huggingface.co/spaces/winstxnhdw/nllb-api](https://huggingface.co/spaces/winstxnhdw/nllb-api)

---

<div class="post-metadata">

**Author:** ![pierric](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pierric/32/50750_2.png) [@pierric](https://discuss.huggingface.co/u/pierric)\
**Post date:** [August 17, 2024, 12:51am UTC](https://discuss.huggingface.co/t/space-is-building-permanently/99740/22 "2024-08-17T00:51:12Z")

</div>

Thanks for the link - the Space needed to be unflagged manually, it should build correctly now.

[Next page](https://discuss.huggingface.co/t/space-is-building-permanently/99740.md?page=2)
