# Error in HF Space Docker

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%3E%5C
**Category:** Beginners\
**Created:** [April 19, 2025, 11:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342 "2025-04-19T23:59:19Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![myyim](https://avatars.discourse-cdn.com/v4/letter/m/f04885/32.png) [@myyim](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmyyim)%5C
**Post date:** [April 19, 2025, 11:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F1 "2025-04-19T23:59:19Z")

</div>

```auto
--> ERROR: failed to push spaces-registry.huggingface.tech/spaces/<my_reg>:cpu-5100e28-17sak65p: unexpected status from HEAD request to https://spaces-registry.huggingface.tech/v2/spaces/<my_reg>/manifests/cpu-5100e28-17sak65p: 401 Unauthorized

```

How can this be resolved?

---

<div class="post-metadata">

**Author:** ![cafzal](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/cafzal/32/45922_2.png) [@cafzal](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcafzal)%5C
**Post date:** [April 20, 2025, 12:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F2 "2025-04-20T00:12:08Z")

</div>

I’m encountering the same issue when trying to restart my space after my latest commit. My app won’t even load the prior commit and is stuck in “Build error” state. It runs fine locally!

> # build error
> 
> ## Unexpected job error
> 
> → Pushing image
> 
> → ERROR: failed to push spaces-registry.huggingface.tech/spaces/[…]:cpu-[…]: unexpected status from HEAD request to [https://spaces-registry.huggingface.tech/v2/spaces/[...]/manifests/cpu-[...]:](https://spaces-registry.huggingface.tech/v2/spaces/%5B...%5D/manifests/cpu-%5B...%5D:) 401 Unauthorized

---

<div class="post-metadata">

**Author:** ![nolanzandi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nolanzandi/32/45859_2.png) [@nolanzandi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnolanzandi)%5C
**Post date:** [April 20, 2025, 12:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F3 "2025-04-20T00:28:17Z")

</div>

It seems to be an issue with the space itself. I have the same problem, but when I duplicate the space it loads up just fine. Right now, I think we’re waiting on a fix from HF.

---

<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:** [April 20, 2025, 1:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F4 "2025-04-20T01:34:09Z")

</div>

Yea. They are maybe working on it.

> [@My Space suddenly went offline. The CPU cannot restart](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F10)%3A
>
> Thanks for reporting! I shared this internally.

---

<div class="post-metadata">

**Author:** ![barunsaha](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/barunsaha/32/23584_2.png) [@barunsaha](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbarunsaha)%5C
**Post date:** [April 20, 2025, 11:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F5 "2025-04-20T11:55:50Z")

</div>

Any update on this issue?

---

<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:** [April 20, 2025, 12:52pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F6 "2025-04-20T12:52:42Z")

</div>

I don’t see any announcements…

---

<div class="post-metadata">

**Author:** ![mma666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mma666/32/46027_2.png) [@mma666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmma666)%5C
**Post date:** [April 21, 2025, 2:25pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F7 "2025-04-21T14:25:58Z")

</div>

I have the same issue with all my spaces. Any update is appreciated.

---

<div class="post-metadata">

**Author:** ![Minaya1hv](https://avatars.discourse-cdn.com/v4/letter/m/8c91f0/32.png) [@Minaya1hv](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FMinaya1hv)%5C
**Post date:** [April 21, 2025, 2:33pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F8 "2025-04-21T14:33:46Z")

</div>

Same issue here. Any update is appreciated, thanks!

---

<div class="post-metadata">

**Author:** ![waseemmmohammad0198](https://avatars.discourse-cdn.com/v4/letter/w/71c47a/32.png) [@waseemmmohammad0198](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fwaseemmmohammad0198)%5C
**Post date:** [April 21, 2025, 4:20pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F9 "2025-04-21T16:20:01Z")

</div>

I’m facing the same issue.

---

<div class="post-metadata">

**Author:** ![bharatcoder](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/bharatcoder/32/18891_2.png) [@bharatcoder](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbharatcoder)%5C
**Post date:** [April 21, 2025, 5:02pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F10 "2025-04-21T17:02:22Z")

</div>

Same issue here. Any updates will be good.

---

<div class="post-metadata">

**Author:** ![greendra](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/greendra/32/46012_2.png) [@greendra](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fgreendra)%5C
**Post date:** [April 21, 2025, 8:06pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F11 "2025-04-21T20:06:02Z")

</div>

Have devs gone on holiday?

---

<div class="post-metadata">

**Author:** ![pujanpaudel](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pujanpaudel/32/38878_2.png) [@pujanpaudel](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpujanpaudel)%5C
**Post date:** [April 22, 2025, 2:46am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F12 "2025-04-22T02:46:14Z")

</div>

same issue here !! Any update from the team ???

---

<div class="post-metadata">

**Author:** ![nolanzandi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nolanzandi/32/45859_2.png) [@nolanzandi](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnolanzandi)%5C
**Post date:** [April 22, 2025, 4:19am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F13 "2025-04-22T04:19:35Z")

</div>

As @dkondic pointed out ([My Space suddenly went offline. The CPU cannot restart - #19 by dkondic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F19)) and I verified. We were able to fix this by rebuilding on a different Space Hardware and then switching back.

---

<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:** [April 22, 2025, 9:37am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F14 "2025-04-22T09:37:50Z")

</div>

It might be fixed.

> [@My Space suddenly went offline. The CPU cannot restart](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F21)%3A
>
> They have fixed the issue, it seems. All my gradio spaces are back. Great news.

---

<div class="post-metadata">

**Author:** ![barunsaha](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/barunsaha/32/23584_2.png) [@barunsaha](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fbarunsaha)%5C
**Post date:** [April 22, 2025, 12:11pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F15 "2025-04-22T12:11:17Z")

</div>

Oh great! My Streamlit Space also built successfully and is now back running! Thanks for sharing the update.

---

<div class="post-metadata">

**Author:** ![mma666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mma666/32/46027_2.png) [@mma666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmma666)%5C
**Post date:** [April 22, 2025, 2:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F16 "2025-04-22T14:37:31Z")

</div>

My spaces are working now. Thanks a lot Hugging Face!

---

<div class="post-metadata">

**Author:** ![PitDuran](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/pitduran/32/57659_2.png) [@PitDuran](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPitDuran)%5C
**Post date:** [February 1, 2026, 12:08pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F17 "2026-02-01T12:08:23Z")

</div>

Oh yeah, Docker issues in Spaces can be a real headache. Glad someone brought it up here — always interesting to see the variety of errors that pop up.

---

<div class="post-metadata">

**Author:** ![danwayner](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/danwayner/32/57658_2.png) [@danwayner](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdanwayner)%5C
**Post date:** [February 1, 2026, 12:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F18 "2026-02-01T12:17:49Z")

</div>

Interesting thread! Even small changes in the container setup seem to cause weird errors — good to see people talking through it.
