# App in Spaces takes forever in "Building"

**URL:** <https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940>\
**Category:** Beginners\
**Created:** [May 7, 2023, 1:56am UTC](https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940 "2023-05-07T01:56:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zenne](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zenne/32/20052_2.png) [@Zenne](https://discuss.huggingface.co/u/Zenne)\
**Post date:** [May 7, 2023, 1:56am UTC](https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940/1 "2023-05-07T01:56:29Z")

</div>

I made an app using Streamlit. Everything works fine in my local folder, but in Spaces, it is always in “Building” state. I’ve tried Restart Space a few times and still have the same issue. The last part of the log is as follows. Could anyone suggest how to fix it? Thank you.  
 → Pushing image  
DONE 3.6s  
 → Exporting cache  
DONE 2.6s  
===== Application Startup at 2023-05-07 01:36:40 =====  
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.  
You can now view your Streamlit app in your browser.  
Network URL: [http://10.19.105.121:8501](http://10.19.105.121:8501)  
2023-05-07 03:38:52.298 Did not auto detect external IP.  
Please go to [https://docs.streamlit.io/](https://docs.streamlit.io/) for debugging hints.

---

<div class="post-metadata">

**Author:** ![Zenne](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/zenne/32/20052_2.png) [@Zenne](https://discuss.huggingface.co/u/Zenne)\
**Post date:** [May 7, 2023, 3:01pm UTC](https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940/2 "2023-05-07T15:01:22Z")

</div>

I was disappointment about this yesterday but could not get it to work no matter what I tried. Today I restarted the space and it works! Really I did not do anything and I am not sure why …

---

<div class="post-metadata">

**Author:** ![ChintanDonda](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@ChintanDonda](https://discuss.huggingface.co/u/ChintanDonda)\
**Post date:** [September 15, 2023, 6:44am UTC](https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940/3 "2023-09-15T06:44:23Z")

</div>

Same issue.  
Container logs show:

```auto
Running on local URL: http://0.0.0.0:7870

```

But App shows “Building” forever.  
Restarted the space a couple of time. But same issue.  
Any fix?

---

<div class="post-metadata">

**Author:** ![FDSRashid](https://avatars.discourse-cdn.com/v4/letter/f/7ea924/32.png) [@FDSRashid](https://discuss.huggingface.co/u/FDSRashid)\
**Post date:** [September 16, 2023, 4:49pm UTC](https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940/4 "2023-09-16T16:49:42Z")

</div>

Same thing happening to me too ☹

---

<div class="post-metadata">

**Author:** ![AleksandrRV](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@AleksandrRV](https://discuss.huggingface.co/u/AleksandrRV)\
**Post date:** [November 21, 2023, 5:13am UTC](https://discuss.huggingface.co/t/app-in-spaces-takes-forever-in-building/38940/5 "2023-11-21T05:13:47Z")

</div>

Same issue.  
Both spaces: gradio and streamlit doesn’t work with default test app.py files

===== Application Startup at 2023-11-21 05:02:52 =====

Running on local URL:

To create a public link, set `share=True` in `launch()`.

===== Application Startup at 2023-11-21 05:02:59 =====

Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.

2023-11-21 06:04:28.937 Did not auto detect external IP.  
Please go to [docs.streamlit.io](http://docs.streamlit.io) for debugging hints.

You can now view your Streamlit app in your browser.

Network URL:

* * *

But both spaces write only Building…

Restarting spaces and Factory rebuild does not helped.

* * *

## Problem was solved by Factory rebuild AFTER runtime timeout
