# Build timeout with docker space that worked fine before

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%3E%5C
**Category:** Spaces\
**Created:** [June 30, 2025, 11:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180 "2025-06-30T11:47:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![potamides](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/potamides/32/40599_2.png) [@potamides](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpotamides)%5C
**Post date:** [June 30, 2025, 11:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%2F1 "2025-06-30T11:47:09Z")

</div>

We have a Huggingface Space ([nllg/DeTikZify](https://huggingface.co/spaces/nllg/DeTikZify)) that has worked fine in the past with our builds usually taking around 45 minutes. However, our most recent factory rebuild has been hit with a ‘build error - job timeout’ error after 30 minutes. Is this timeout a new restriction imposed on spaces? Is it possible to increase the timeout to the previous value? We tried setting `startup_duration_timeout` to a higher value but it did not have any effect. We are using a docker space. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 30, 2025, 1:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%2F2 "2025-06-30T13:09:45Z")

</div>

The documentation does not appear to have changed, so this is probably not an intentional change in specifications. There may be a problem with the site, so I will ping it just in case. @meganariley @pierric

> **[Spaces Configuration Reference](https://huggingface.co/docs/hub/en/spaces-config-reference)**
>
> We’re on a journey to advance and democratize artificial intelligence through open source and open science.

> **`startup_duration_timeout`** : _string_  
> Set a custom startup duration timeout for your Space. This is the maximum time your Space is allowed to start before it times out and is flagged as unhealthy. Defaults to 30 minutes, but any valid duration (like `1h`, `30m`) is acceptable.

---

<div class="post-metadata">

**Author:** ![meganariley](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/meganariley/32/56966_2.png) [@meganariley](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmeganariley)%5C
**Post date:** [June 30, 2025, 7:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%2F3 "2025-06-30T19:52:41Z")

</div>

Hi @potamides We saw your email to support and appreciate you posting here for the community as well. 🤗

We’re looking into this and I’ll update you soon.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [June 30, 2025, 11:24pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%2F4 "2025-06-30T23:24:37Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![potamides](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/potamides/32/40599_2.png) [@potamides](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpotamides)%5C
**Post date:** [July 4, 2025, 1:10pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%2F5 "2025-07-04T13:10:59Z")

</div>

Thank you all for your support. As of now we have worked around the issue by using a base image that we created locally which does all of the heavy lifting. But we would still be curious to know what the root cause of this issue is since the way our docker spaces are being built has clearly changed. For example, another issue we ran into with our workaround is that we can no longer preload models in our Dockerfile (similar to the `preload_from_hub` option for normal spaces) since attempting to do so now leads to OOM errors. This has worked without issues for over a year.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 4, 2025, 8:30pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fbuild-timeout-with-docker-space-that-worked-fine-before%2F161180%2F6 "2025-07-04T20:30:44Z")

</div>

That’s interesting.  
When a function is not malfunctioning but has stopped working altogether, it is sometimes suspected that there is a problem or that it was forgotten to be turned on after an upgrade.
