# My Space suddenly went offline. The CPU cannot restart

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%3E%5C
**Category:** Beginners\
**Created:** [April 18, 2025, 10:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121 "2025-04-18T10:59:41Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![PolluxKing](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/polluxking/32/45788_2.png) [@PolluxKing](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPolluxKing)%5C
**Post date:** [April 18, 2025, 10:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F1 "2025-04-18T10:59:41Z")

</div>

It was running normally before, then suddenly disappeared, showing the Huggingface icon and a message saying “Building Space.”

I checked the backend logs, and before the logs stopped, there were several instances of “reloading database.” I tried restarting the Space, but it didn’t work. I tried rebuilding the Space, but it also didn’t work. Then I noticed my CPU is stuck in a spinning state. What should I do now?

 ![微信截图_20250418184550](https://us1.discourse-cdn.com/hellohellohello/original/3X/5/d/5d4245d54edaad4ced1529499580256b3b3d5657.jpeg)

---

<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 18, 2025, 12:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F2 "2025-04-18T12:38:21Z")

</div>

The _cause is unknown and cannot be resolved by the user_ at this time.

The dirty but quickest workaround is as follows.

- Rename the current space to something appropriate and set it to Private (for safekeeping in case the issue is resolved in the future).
- Create a new space with an available name.
- Upload the same source code.

> [@Space is stuck for hours in build state](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fspace-is-stuck-for-hours-in-build-state%2F145005)%3A
>
> Hi, this space ([MiniSearch - a Hugging Face Space by Felladrin](https://huggingface.co/spaces/Felladrin/MiniSearch)) was restarted today and got stuck in the “Building” state for hours. There are no logs indicating it’s actually building. Maybe it’s in some queue for building? But it never took so long. So I think there might be some error with the space. I already tried stopping, restarting and factory-rebuilding it, but nothing worked.

> [@Space is permanently "Building"](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fspace-is-permanently-building%2F140495)%3A
>
> A few of my Spaces have been “Building” for weeks. It’s happened in the past when it’s “Building” for a few days and then I reset it and its fine. But this time around it won’t start! I tried everything… restarting, factory rebuild, deleting files and then re-uploading, etc.

---

<div class="post-metadata">

**Author:** ![PolluxKing](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/polluxking/32/45788_2.png) [@PolluxKing](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPolluxKing)%5C
**Post date:** [April 18, 2025, 2:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F5 "2025-04-18T14:47:06Z")

</div>

What a tragedy. From the posts you shared, I see many people are in the same situation. No idea how long it will take to recover. I even saw some people stuck on this issue for weeks…

---

<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 18, 2025, 2:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F6 "2025-04-18T14:50:02Z")

</div>

Exactly. Even a Hugging Face staff member who was maintaining Spaces couldn’t solve the problem on his own… 🤢

It probably requires quite high-level permissions…

---

<div class="post-metadata">

**Author:** ![dlflannery](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dlflannery](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdlflannery)%5C
**Post date:** [April 18, 2025, 7:47pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F7 "2025-04-18T19:47:31Z")

</div>

Me too. Python Gradio space. Was working fine yesterday. Committed modified app.py that works perfectly on my home PC in VS2022 . Even after factory rebuild, just sitting on “Building” while logs just look normal. Pushed and started.

EDIT: After about 1.5 hours this additional error message appeared int Build log following the normal messages that looked like everything was OK:

ERROR: failed to push spaces-registry.huggingface.tech/spaces/6801b2253a3d2135e30da61a:cpu-08475b3-7x848txl: unexpected status from HEAD request to [https://spaces-registry.huggingface.tech/v2/spaces/6801b2253a3d2135e30da61a/manifests/cpu-08475b3-7x848txl:](https://spaces-registry.huggingface.tech/v2/spaces/6801b2253a3d2135e30da61a/manifests/cpu-08475b3-7x848txl:) 401 Unauthorized

---

<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 19, 2025, 12:08am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F8 "2025-04-19T00:08:55Z")

</div>

It must be an error for so many to suddenly appear at the same time… @meganariley @pierric @hysts

> [@Main app stuck in 'building' but .hf.space is up and running](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmain-app-stuck-in-building-but-hf-space-is-up-and-running%2F151168)%3A
>
> Hello, my app that was working previously is stuck in the “building” state: [Puppy Hf Marimo - a Hugging Face Space by liquidcarbon](https://huggingface.co/spaces/liquidcarbon/puppy-hf-marimo) Though it is up and running at this address: [https://liquidcarbon-puppy-hf-marimo.hf.space/](https://liquidcarbon-puppy-hf-marimo.hf.space/) Any suggestions on why this is happening and how to fix it are appreciated

> [@My app keeps building and reuse the previous commit](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-app-keeps-building-and-reuse-the-previous-commit%2F151194)%3A
>
> Here is my space: [SE-Arena - a Hugging Face Space by SE-Arena](https://huggingface.co/spaces/SE-Arena/Software-Engineering-Arena) Even though there is no error message shown in the log, it does not run at all… Container log: ===== Application Startup at 2025-04-18 21:55:01 ===== 09\_115956.json: 0%| | 0.00/124 [00:00\<?, ?B/s] 09\_115956.json: 100%|██████████| 124/124 [00:00\<00:00, 820kB/s] 09\_143236.json: 0%| | 0.00/130 [00:00\<?, ?B/s] 09\_143236.json: 100%|██████████| 130/130 [00:00\<00:00, 921kB/s] 09\_143825.json: 0%| | 0.00…

---

<div class="post-metadata">

**Author:** ![dlflannery](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@dlflannery](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdlflannery)%5C
**Post date:** [April 19, 2025, 12:22am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F9 "2025-04-19T00:22:27Z")

</div>

I finally created a new space, same configuration and same files as the space that was stuck building. It built and ran just fine. Deleted the stuck space.

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fhysts)%5C
**Post date:** [April 19, 2025, 1:18am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F10 "2025-04-19T01:18:49Z")

</div>

Thanks for reporting! I shared this internally.

---

<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 19, 2025, 2:45am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F11 "2025-04-19T02:45:13Z")

</div>

Thank you, hysts!

---

<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 19, 2025, 5:47am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F12 "2025-04-19T05:47:29Z")

</div>

I’m having the same issue. Stuck in building until I get a build error that says unexpected status from HEAD request

---

<div class="post-metadata">

**Author:** ![s-reuter](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@s-reuter](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fs-reuter)%5C
**Post date:** [April 19, 2025, 7:56pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F13 "2025-04-19T19:56:29Z")

</div>

Same here, stuck at “Building” until…:

```auto
--> ERROR: failed to push spaces-registry.huggingface.tech/spaces/66a915c181dd5b0fe315302a:cpu-0ada85f-8cwhnd27: unexpected status from HEAD request to https://spaces-registry.huggingface.tech/v2/spaces/66a915c181dd5b0fe315302a/manifests/cpu-0ada85f-8cwhnd27: 401 Unauthorized

```

---

<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:14am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F14 "2025-04-20T00:14:50Z")

</div>

+1, I’m running into the [same](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ferror-in-hf-space-docker%2F151342%2F2) issue.

---

<div class="post-metadata">

**Author:** ![DaveK23](https://avatars.discourse-cdn.com/v4/letter/d/73ab20/32.png) [@DaveK23](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDaveK23)%5C
**Post date:** [April 20, 2025, 3:57pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F15 "2025-04-20T15:57:19Z")

</div>

Possibly related:

> **[unexpected status from HEAD request to {{registry}}: 401 Unauthorized ·...](https://github.com/docker/build-push-action/discussions/1108)**
>
> anyone have this issue? image has been built but can't be push to registry #21 exporting to image #21 pushing layers 4.2s done #21 ERROR: failed to push {{registry}}/satudikti/be:v3.0.369: unexpect...

> **[Push to ECR registry fails with "Error: buildx failed with: ERROR: failed to...](https://github.com/docker/build-push-action/discussions/983)**
>
> I'm trying to push an image with caching to my ECR repository. Caching succeeds but the push fails with 403 Forbidden. Here's the workflow: jobs: push\_to\_registry: name: Push Docker image to ECR ru...

Suggests a problem with docker vs. AWS perms:

> “Today I stumbled upon the same issue. The docker buildx build … --push command failed with the same error message (unexpected status from HEAD request to : 403 Forbidden). But docker push was working uninterrupted. It turns out that buildix required one additional AWS ECR permission - ecr:BatchGetImage. 🙃”

I know nothing about this stuff, but hope that clue might help those who do 🙂

---

<div class="post-metadata">

**Author:** ![DebasishDhal99](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/debasishdhal99/32/19893_2.png) [@DebasishDhal99](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDebasishDhal99)%5C
**Post date:** [April 21, 2025, 6:15am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F16 "2025-04-21T06:15:21Z")

</div>

Same issue. Over the past 3-4 days, 2 of my spaces went offline due to “Build error”. They were working fine for the last 1 year.

---

<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:37pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F17 "2025-04-21T14:37:14Z")

</div>

Same issue here. Any update is appreciated!

---

<div class="post-metadata">

**Author:** ![PolluxKing](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/polluxking/32/45788_2.png) [@PolluxKing](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FPolluxKing)%5C
**Post date:** [April 21, 2025, 10:55pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F18 "2025-04-21T22:55:34Z")

</div>

Wow, you’re really having a rough time. Hope they can fix this error. I haven’t been using Huggingface for long, so I don’t have much data, and I had to rebuild after careful selection.

---

<div class="post-metadata">

**Author:** ![dkondic](https://avatars.discourse-cdn.com/v4/letter/d/b5e925/32.png) [@dkondic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fdkondic)%5C
**Post date:** [April 22, 2025, 3:41am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F19 "2025-04-22T03:41:58Z")

</div>

Was just having the same issue. What ended up working for me is to rebuild the image using a different Space Hardware. Then rebuild it back to the original hardware.

---

<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, 3:58am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F20 "2025-04-22T03:58:52Z")

</div>

I confirm that this also worked for me. What a relief.

---

<div class="post-metadata">

**Author:** ![DebasishDhal99](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/debasishdhal99/32/19893_2.png) [@DebasishDhal99](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDebasishDhal99)%5C
**Post date:** [April 22, 2025, 8:55am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F21 "2025-04-22T08:55:50Z")

</div>

They have fixed the issue, it seems. All my gradio spaces are back. Great news.

---

<div class="post-metadata">

**Author:** ![hysts](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/hysts/32/32230_2.png) [@hysts](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fhysts)%5C
**Post date:** [April 22, 2025, 1:34pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121%2F22 "2025-04-22T13:34:10Z")

</div>

The infra team has resolved the issue. We are still investigating the root cause, but restarting the Space should fix it.

[Next page](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmy-space-suddenly-went-offline-the-cpu-cannot-restart%2F151121.md%3Fpage%3D2)
