# Debugging Spaceses Application

**URL:** <https://discuss.huggingface.co/t/debugging-spaceses-application/71242>\
**Category:** Spaces\
**Created:** [January 30, 2024, 9:29pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242 "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](https://discuss.huggingface.co/u/woodr7)\
**Post date:** [January 30, 2024, 9:29pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/1 "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](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 30, 2024, 10:08pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/2 "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](https://discuss.huggingface.co/u/woodr7)\
**Post date:** [January 30, 2024, 10:16pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/3 "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](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 30, 2024, 10:24pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/4 "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](https://discuss.huggingface.co/u/woodr7)\
**Post date:** [January 31, 2024, 3:04pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/5 "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](https://discuss.huggingface.co/u/radames)\
**Post date:** [January 31, 2024, 7:17pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/6 "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](https://discuss.huggingface.co/u/woodr7)\
**Post date:** [February 1, 2024, 3:39pm UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/8 "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](https://discuss.huggingface.co/u/system)\
**Post date:** [February 2, 2024, 3:40am UTC](https://discuss.huggingface.co/t/debugging-spaceses-application/71242/9 "2024-02-02T03:40:52Z")

</div>

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