# 503 Error for Brand New Empty Space w/ Dev Mode

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F503-error-for-brand-new-empty-space-w-dev-mode%2F169895%3E%5C
**Category:** Spaces\
**Created:** [November 3, 2025, 11:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F503-error-for-brand-new-empty-space-w-dev-mode%2F169895 "2025-11-03T23:43:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![takeya](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/takeya/32/55394_2.png) [@takeya](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Ftakeya)%5C
**Post date:** [November 3, 2025, 11:43pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F503-error-for-brand-new-empty-space-w-dev-mode%2F169895%2F1 "2025-11-03T23:43:00Z")

</div>

I just signed up for HF Plus and wanted to create a new private space with DevMode. I selected “Gradio” with the template “Empty”, and enabled dev mode. After the space was created, it attempted to build it but came short with this error:

```auto
--> RUN apt-get update && apt-get install -y htop vim nano gdb && rm -rf /var/lib/apt/lists/\*
Reading package lists...
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/

--> ERROR: process "/bin/sh -c apt-get update && apt-get install -y htop vim nano gdb && rm -rf /var/lib/apt/lists/\*" did not complete successfully: exit code: 100

```

> **Full Log**
>
> ```auto
> ===== Build Queued at 2025-11-03 21:19:17 / Commit SHA: e96e5fb =====
> 
> --> FROM docker.io/library/python:3.10@sha256:cfe310ba7a7dc9d63ecd7c03bd6bc8491cdc982c77e50ff921e35b091e6cb563
> DONE 0.0s
> 
> --> 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 apt-get update && apt-get install -y curl && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && rm -rf /var/lib/apt/lists/* && apt-get clean
> CACHED
> 
> --> COPY --chown=1000:1000 --from=root / /
> CACHED
> 
> --> 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 pip install --no-cache-dir pip -U && pip install --no-cache-dir datasets "huggingface-hub>=0.30" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic==2.10.6"
> CACHED
> 
> --> WORKDIR /home/user/app
> CACHED
> 
> --> RUN pip freeze > /tmp/freeze.txt
> CACHED
> 
> --> COPY --link --chown=1000 ./ /home/user/app
> DONE 0.0s
> 
> --> COPY --from=pipfreeze --link --chown=1000 /tmp/freeze.txt /tmp/freeze.txt
> CACHED
> 
> --> Restoring cache
> DONE 0.0s
> 
> --> RUN pip install --no-cache-dir gradio[oauth,mcp]==5.49.1 "uvicorn>=0.14.0" spaces
> CACHED
> 
> --> Restoring cache
> DONE 1.8s
> 
> --> COPY --from=pipfreeze --link --chown=1000 /tmp/freeze.txt /tmp/freeze.txt
> CACHED
> 
> --> Restoring cache
> DONE 11.5s
> 
> --> RUN wget https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.101.2/openvscode-server-v1.101.2-linux-x64.tar.gz -O /tmp/openvscode-server.tar.gz && tar -xzf /tmp/openvscode-server.tar.gz -C /opt && rm /tmp/openvscode-server.tar.gz && mv /opt/openvscode-server-v1.101.2-linux-x64 /opt/openvscode-server && chown -R 1000:1000 /opt/openvscode-server
> --2025-11-03 22:19:36-- https://github.com/gitpod-io/openvscode-server/releases/download/openvscode-server-v1.101.2/openvscode-server-v1.101.2-linux-x64.tar.gz
> Resolving github.com (github.com)... 140.82.112.3
> Connecting to github.com (github.com)|140.82.112.3|:443... connected.
> HTTP request sent, awaiting response... 302 Found
> Location: https://release-assets.githubusercontent.com/github-production-release-asset/292861557/27a09975-9952-4b96-a581-af3c531f1420?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-11-03T22%3A05%3A13Z&rscd=attachment%3B+filename%3Dopenvscode-server-v1.101.2-linux-x64.tar.gz&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-11-03T21%3A04%3A48Z&ske=2025-11-03T22%3A05%3A13Z&sks=b&skv=2018-11-09&sig=syvdMhNkUHeUPjuZBbgdcjoMdb0Z8zfvQ3RxphZQHAY%3D&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc2MjIwNjU3NiwibmJmIjoxNzYyMjA0Nzc2LCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.SmaHZ4z1bI_ijCY-0FcuLHQ8-K22-Fz3TP0irakpw_c&response-content-disposition=attachment%3B%20filename%3Dopenvscode-server-v1.101.2-linux-x64.tar.gz&response-content-type=application%2Foctet-stream [following]
> --2025-11-03 22:19:36-- https://release-assets.githubusercontent.com/github-production-release-asset/292861557/27a09975-9952-4b96-a581-af3c531f1420?sp=r&sv=2018-11-09&sr=b&spr=https&se=2025-11-03T22%3A05%3A13Z&rscd=attachment%3B+filename%3Dopenvscode-server-v1.101.2-linux-x64.tar.gz&rsct=application%2Foctet-stream&skoid=96c2d410-5711-43a1-aedd-ab1947aa7ab0&sktid=398a6654-997b-47e9-b12b-9515b896b4de&skt=2025-11-03T21%3A04%3A48Z&ske=2025-11-03T22%3A05%3A13Z&sks=b&skv=2018-11-09&sig=syvdMhNkUHeUPjuZBbgdcjoMdb0Z8zfvQ3RxphZQHAY%3D&jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmVsZWFzZS1hc3NldHMuZ2l0aHVidXNlcmNvbnRlbnQuY29tIiwia2V5Ijoia2V5MSIsImV4cCI6MTc2MjIwNjU3NiwibmJmIjoxNzYyMjA0Nzc2LCJwYXRoIjoicmVsZWFzZWFzc2V0cHJvZHVjdGlvbi5ibG9iLmNvcmUud2luZG93cy5uZXQifQ.SmaHZ4z1bI_ijCY-0FcuLHQ8-K22-Fz3TP0irakpw_c&response-content-disposition=attachment%3B%20filename%3Dopenvscode-server-v1.101.2-linux-x64.tar.gz&response-content-type=application%2Foctet-stream
> Resolving release-assets.githubusercontent.com (release-assets.githubusercontent.com)... 185.199.110.133, 185.199.111.133, 185.199.108.133, ...
> Connecting to release-assets.githubusercontent.com (release-assets.githubusercontent.com)|185.199.110.133|:443... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 67534652 (64M) [application/octet-stream]
> Saving to: '/tmp/openvscode-server.tar.gz'
> 
> 0K .......... .......... .......... .......... .......... 0% 21.7M 3s
> # Shortened download progress
> 65950K . 100% 55.0M=0.4s
> 
> 2025-11-03 22:19:36 (176 MB/s) - '/tmp/openvscode-server.tar.gz' saved [67534652/67534652]
> 
> DONE 2.2s
> 
> --> RUN apt-get update && apt-get install -y htop vim nano gdb && rm -rf /var/lib/apt/lists/*
> Reading package lists...
> E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
> E: Unable to lock directory /var/lib/apt/lists/
> 
> --> ERROR: process "/bin/sh -c apt-get update && apt-get install -y htop vim nano gdb && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100
> 
> ```

I’ve attempted to Factory Reset the space, delete and re-create it, and use CPU vs ZeroGPU hardware, but I keep getting the same error.

Is there something I’m missing or is there an issue with the empty template? I literally haven’t pushed anything or touched anything else.

---

<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:** [November 5, 2025, 9:35am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F503-error-for-brand-new-empty-space-w-dev-mode%2F169895%2F2 "2025-11-05T09:35:04Z")

</div>

Hi @takeya , thanks for reporting this! I think it’s an infra issue. I’ll report it to the infra team.

---

<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:** [November 6, 2025, 1:12pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F503-error-for-brand-new-empty-space-w-dev-mode%2F169895%2F3 "2025-11-06T13:12:15Z")

</div>

@takeya , the issue has been resolved! Thanks again for flagging it!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [November 7, 2025, 1:12am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2F503-error-for-brand-new-empty-space-w-dev-mode%2F169895%2F4 "2025-11-07T01:12:58Z")

</div>

Closed on November 7, 2025, 1:12am UTC

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