# NodeJs : runtime error Launch timed out, workload was not healthy after 30 min

**URL:** <https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948>\
**Category:** Spaces\
**Created:** [October 3, 2024, 11:17am UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948 "2024-10-03T11:17:45Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bardd](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bardd](https://discuss.huggingface.co/u/bardd)\
**Post date:** [October 3, 2024, 11:17am UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/1 "2024-10-03T11:17:45Z")

</div>

I am trying to run my node js project here on spaces I tried with free as well as the cheapest paid one and still it get the runtime error i do not understand why and how can i fix it. I tried with different accounts i get the same error, i tried restarting the space nothing works please help

---

<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 3, 2024, 11:59am UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/2 "2024-10-03T11:59:00Z")

</div>

I found a way to extend the 30 minutes to an hour, but of course this is not the solution.  
There is an ongoing problem with some spaces getting stuck forever during the build, but in your case the build is done and doesn’t seem to work after the start.  
The strange thing is that it keeps running until the time expires instead of stopping with an error.  
It could be someone else’s, but without the code I can’t tell any more. Even if there is, I don’t know much JavaScript… though I can read it. Well, if you’re tripping on HF-related issues rather than logic, there’s a chance I can figure something out too.

> [@Launch timed out, space was not healthy after 30 min (space keeps on building)](https://discuss.huggingface.co/t/launch-timed-out-space-was-not-healthy-after-30-min-space-keeps-on-building/63685):
>
> The space keeps on building and after 30 mins it gives runtime error Launch timed out, space was not healthy after 30 min Have tried restarting and factory rebuilt. Port is already 7860

---

<div class="post-metadata">

**Author:** ![bardd](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bardd](https://discuss.huggingface.co/u/bardd)\
**Post date:** [October 3, 2024, 12:14pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/3 "2024-10-03T12:14:07Z")

</div>

Thanks for the help, i pumped that to 5 hours let’s see how far i can take it lol

here’s the repo

> **[bardd/node-pt at main](https://huggingface.co/spaces/bardd/node-pt/tree/main)**
>
> 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 3, 2024, 12:18pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/4 "2024-10-03T12:18:37Z")

</div>

Well, if there’s a chance that would solve the problem, good, but what kind of Spaces takes that long to start up?

Maybe the original program and HF are incompatible.  
Most of the time it’s for very trivial reasons. Even I can figure it out.  
Try another similar program, or steal settings from other Spaces that successfully run the same program.

I’ll take a look at the code in a bit.

---

<div class="post-metadata">

**Author:** ![bardd](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bardd](https://discuss.huggingface.co/u/bardd)\
**Post date:** [October 3, 2024, 12:21pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/5 "2024-10-03T12:21:01Z")

</div>

i had them running flawlessly and the front end was on the vercel , i had to make some changes and then the next build is where i am facing 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 3, 2024, 12:27pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/6 "2024-10-03T12:27:50Z")

</div>

From what I’m hearing, it sounds like it’s close to an eternal build issue, but it’s something to boot. Is this correct?

> **[node\_front - a Hugging Face Space by John6666](https://huggingface.co/spaces/John6666/testts)**
>
> test node back end

---

<div class="post-metadata">

**Author:** ![bardd](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bardd](https://discuss.huggingface.co/u/bardd)\
**Post date:** [October 3, 2024, 12:28pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/7 "2024-10-03T12:28:39Z")

</div>

woah how did you ran it ? that it weird and cool haha

---

<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 3, 2024, 12:29pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/8 "2024-10-03T12:29:47Z")

</div>

That’s all I did. See? It was a trivial reason, wasn’t it?

README.md

```py
app_port: 8080

```

---

<div class="post-metadata">

**Author:** ![bardd](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bardd](https://discuss.huggingface.co/u/bardd)\
**Post date:** [October 3, 2024, 12:30pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/9 "2024-10-03T12:30:47Z")

</div>

everytime my errors and my bugs makes me feel like i am a dummer than i was before lol thanks man

---

<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 3, 2024, 12:32pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/10 "2024-10-03T12:32:39Z")

</div>

No, HF putting important data in README.md is bad too. Because it’s **README.md**. Anyone would think it’s an instruction manual. In fact, it’s a configuration file that can be destroyed if you touch the — part a little bit.😅

---

<div class="post-metadata">

**Author:** ![bardd](https://avatars.discourse-cdn.com/v4/letter/b/ed8c4c/32.png) [@bardd](https://discuss.huggingface.co/u/bardd)\
**Post date:** [October 3, 2024, 12:35pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/11 "2024-10-03T12:35:01Z")

</div>

i know that’s the YMAL file i understood that after banging my head for 2 hours yesterday, but before this i didn’t mention the port here in the readme i did that in the code, and this time i forgot to do it, if there’s anything i can do for you i would be happy to help. 😇

---

<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 3, 2024, 12:48pm UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/12 "2024-10-03T12:48:12Z")

</div>

Port 7860 is just the default value. So if you don’t write anything probably it still won’t work.  
The HF environment variables, YAML and Gradio are a bunch of hidden features. They forgot to write an introductory manual because it’s not hidden! I found the port related stuff in there somewhere, but I don’t think you can usually find it…

You, in the future, if something goes wrong, huh? It’s not your fault, is it? And then search for it. If anyone else has the same problem, you’re 80% right.

---

<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:** [October 4, 2024, 12:48am UTC](https://discuss.huggingface.co/t/nodejs-runtime-error-launch-timed-out-workload-was-not-healthy-after-30-min/109948/13 "2024-10-04T00:48:51Z")

</div>

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