# Can't restart or rebuild the space

**URL:** <https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109>\
**Category:** Spaces\
**Created:** [October 12, 2025, 11:01pm UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109 "2025-10-12T23:01:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![arterm-sedov](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arterm-sedov/32/54755_2.png) [@arterm-sedov](https://discuss.huggingface.co/u/arterm-sedov)\
**Post date:** [October 12, 2025, 11:01pm UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109/1 "2025-10-12T23:01:24Z")

</div>

> **[CMW Copilot - a Hugging Face Space by arterm-sedov](https://huggingface.co/spaces/arterm-sedov/cmw-agent)**
>
> Chat with an AI assistant using a modular Gradio interface. Users can input text messages, and the assistant will respond in real-time. The conversation history is maintained per session, and users...

Getting error 503 Something went wrong when restarting this Space.

The hardware indicator just spins and spins… I am using the CPU upgrade now. Changing the hardware does not seem to help

Any ideas on how to fix this?

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/3X/4/c/4c194fbdfc3fed8a514397b052f43f3aefe3f40b.png)

---

<div class="post-metadata">

**Author:** ![arterm-sedov](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arterm-sedov/32/54755_2.png) [@arterm-sedov](https://discuss.huggingface.co/u/arterm-sedov)\
**Post date:** [October 12, 2025, 11:14pm UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109/2 "2025-10-12T23:14:46Z")

</div>

OGs BELOW:

Stopping Node.js server… 2025-10-12 17:31:13 DEBUG langsmith.client: Main thread is dead, stopping compression thread 2025-10-12 17:31:13 DEBUG langsmith.client: Compressed traces control thread is shutting down 2025-10-12 17:31:13 DEBUG langsmith.client: Main thread is dead, stopping tracing thread 2025-10-12 17:31:13 DEBUG langsmith.client: Tracing control thread is shutting down 2025-10-12 17:31:13 DEBUG urllib3.connectionpool: langfuse com 443 “POST /api/public/otel/v1/traces HTTP/1.1” 200 None 2025-10-12 17:31:14 DEBUG langsmith.client: Closing Client.session 2025-10-12 17:31:14 DEBUG langsmith.client: Closing Client.session

===== Build Queued at 2025-10-11 10:42:33 / Commit SHA: c6603c0 ===== → FROM [Docker Hub Container Image Library | App Containerization](http://docker.io/library/python:3.10@sha256:fe918dac0cd1fbc6a2436369330da64a8aceab192d73cd6c6c04e88fb88ffc6c) DONE 0.0s → RUN apt-get update && apt-get install -y fakeroot && mv /usr/bin/apt-get /usr/bin/.apt-get && echo ‘#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@’ \> /usr/bin/apt-get && chmod +x /usr/bin/apt-get && rm -rf /var/lib/apt/lists/\* && useradd -m -u 1000 user CACHED → RUN --mount=target=/tmp/requirements.txt,source=requirements.txt pip install --no-cache-dir -r /tmp/requirements.txt CACHED → WORKDIR /home/user/app CACHED → COPY --chown=1000:1000 --from=root / / CACHED → RUN pip install --no-cache-dir pip -U && pip install --no-cache-dir datasets “huggingface-hub\>=0.19” “hf\_xet\>=1.0.0,\<2.0.0” “hf-transfer\>=0.1.4” “protobuf\<4” “click\<8.1” “pydantic==2.10.6” CACHED → RUN apt-get update && apt-get install -y git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 && rm -rf /var/lib/apt/lists/\* && git lfs install CACHED → RUN --mount=target=/tmp/packages.txt,source=packages.txt apt-get update && xargs -r -a /tmp/packages.txt apt-get install -y && apt-get install -y curl && curl -fsSL [https://deb.nodesource.com/setup\_20.x](https://deb.nodesource.com/setup_20.x) | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/\* && apt-get clean CACHED → RUN pip freeze \> /tmp/freeze.txt CACHED → RUN pip install --no-cache-dir gradio[oauth,mcp]==5.47.0 “uvicorn\>=0.14.0” spaces CACHED → COPY --link --chown=1000 ./ /home/user/app DONE 0.0s → COPY --from=pipfreeze --link --chown=1000 /tmp/freeze.txt /tmp/freeze.txt DONE 0.0s → Pushing image DONE 1.0s → Exporting cache DONE 0.7s

---

<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 13, 2025, 12:49am UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109/3 "2025-10-13T00:49:20Z")

</div>

There’s nothing particularly suspicious in the code or dependencies.

One thing to note: For Gradio spaces, the Gradio specified in `README.md` is automatically installed. Therefore, to prevent mismatches—especially when using `OAuth` or similar—it’s [better not to specify Gradio installation in `requirements.txt`](https://huggingface.co/spaces/arterm-sedov/cmw-agent/blob/main/requirements.txt#L10).

```py
# Gradio - Modern web UI framework
#gradio>=4.0.0

```

---

<div class="post-metadata">

**Author:** ![arterm-sedov](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arterm-sedov/32/54755_2.png) [@arterm-sedov](https://discuss.huggingface.co/u/arterm-sedov)\
**Post date:** [October 14, 2025, 6:09pm UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109/4 "2025-10-14T18:09:53Z")

</div>

Will try to change this setting. Thanks @John6666

I wrote to huggingface support, and they told me the space is suspticious, I read the policies, but could not guess the reason.

---

<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 14, 2025, 9:43pm UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109/5 "2025-10-14T21:43:15Z")

</div>

> space is suspticious

Oh… In that case, it’s not due to code or configuration issues, but rather intentional error-out, so there’s nothing the user can do about it…

---

<div class="post-metadata">

**Author:** ![arterm-sedov](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/arterm-sedov/32/54755_2.png) [@arterm-sedov](https://discuss.huggingface.co/u/arterm-sedov)\
**Post date:** [October 14, 2025, 10:16pm UTC](https://discuss.huggingface.co/t/cant-restart-or-rebuild-the-space/169109/6 "2025-10-14T22:16:28Z")

</div>

Thanks @John6666 !
