# Debugging Spaceses Application

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%3E%5C
**Category:** Spaces\
**Created:** [January 30, 2024, 9:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242 "2024-01-30T21:29:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![woodr7](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/woodr7/32/21969_2.png) [@woodr7](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwoodr7)%5C
**Post date:** [January 30, 2024, 9:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F1 "2024-01-30T21:29:25Z")

</div>

Hi Team. Built my mos trecetn hugging face space using a blank docker image. The Image worked for anohter simpler app but now I’m getting runtime errors and I can’t figure out why.

Is there a way to debug the application runtime error from within spaces?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 30, 2024, 10:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F2 "2024-01-30T22:08:18Z")

</div>

hi @woodr7,

Currently, you can only access logs through the logs tab. SSH access is on the roadmap.

---

<div class="post-metadata">

**Author:** ![woodr7](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/woodr7/32/21969_2.png) [@woodr7](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwoodr7)%5C
**Post date:** [January 30, 2024, 10:16pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F3 "2024-01-30T22:16:35Z")

</div>

The one issue is that i don’t get any errors in the logs and Then there’s a runtime error that looks like this

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

Is there a way to see why this is the case?

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 30, 2024, 10:24pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F4 "2024-01-30T22:24:32Z")

</div>

Are you using Streamlit SDK or Docker?

It appears the app takes more than 30 minutes to load, causing this error. You can try adding `startup_duration_timeout: 1h` to the README.md YAML header.

---

<div class="post-metadata">

**Author:** ![woodr7](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/woodr7/32/21969_2.png) [@woodr7](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwoodr7)%5C
**Post date:** [January 31, 2024, 3:04pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F5 "2024-01-31T15:04:06Z")

</div>

I’m Using Docker because I have a Package (Labelbox) that is incompatible with streamlit due to Pydantic 2 support

---

<div class="post-metadata">

**Author:** ![radames](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/radames/32/28246_2.png) [@radames](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fradames)%5C
**Post date:** [January 31, 2024, 7:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F6 "2024-01-31T19:17:43Z")

</div>

ok so maybe you’re missing `app_port: 8501` on the README.md YAML?

---

<div class="post-metadata">

**Author:** ![woodr7](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/woodr7/32/21969_2.png) [@woodr7](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwoodr7)%5C
**Post date:** [February 1, 2024, 3:39pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F8 "2024-02-01T15:39:55Z")

</div>

That seemed to work!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [February 2, 2024, 3:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdebugging-spaceses-application%2F71242%2F9 "2024-02-02T03:40:52Z")

</div>

Closed on February 2, 2024, 3:40am UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
