Storage Error when creating Codespace with current devcontainer configuration
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 64/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker, python
- Domain
- devops, infrastructure
Research direction
Start with the repository's devcontainer configuration and .devcontainer/setup.sh, then inspect the reported creation.log while reproducing Codespace creation with the 32 GB option. Done means the Codespace builds without exhausting storage and the onCreateCommand completes without the conda command-not-found error.
Written by the indexing model from the issue text.
Description
Issue Summary
When i try to create codespace on this repository, it fails due to out-of-space error (32 GB codespace).
2026-09-19 09:11:24.435Z: #6 extracting sha256:f4a5ac0bdce11b83995edd30699c5f02db7e2d301c14668c0c2941c4efba2999 20.9s
2026-09-19 09:11:29.560Z: #6 extracting sha256:f4a5ac0bdce11b83995edd30699c5f02db7e2d301c14668c0c2941c4efba2999 26.1s
2026-09-19 09:11:40.866Z: #6 extracting sha256:f4a5ac0bdce11b83995edd30699c5f02db7e2d301c14668c0c2941c4efba2999 37.4s
- 2026-09-19 09:11:43.562Z: ERROR: failed to register layer: write /home/codespace/.local/lib/python3.12/site-packages/torch/lib/libtorch_cpu.so: no space left on device
2026-09-19 09:11:44.027Z: ------
> [dev_containers_target_stage 1/6] FROM mcr.microsoft.com/devcontainers/universal:2@sha256:dca6a985ffbbc74007a13b6f56ac0fbbc5febae081350b66e865a5549338134b:
------
2026-09-19 09:11:44.029Z: Dockerfile.extended:12
--------------------
10 | RUN chmod -R 0755 /tmp/build-features/
11 |
12 | >>> FROM $_DEV_CONTAINERS_BASE_IMAGE AS dev_containers_target_stage
13 |
14 | USER root2026-09-19 09:11:44.029Z:
--------------------
Dockerfile.extended:7
--------------------
5 |
6 |
7 | >>> FROM $_DEV_CONTAINERS_BASE_IMAGE AS dev_containers_feature_content_normalize
8 | USER root
9 | COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/
--------------------
- ERROR: failed to build: failed to solve: failed to register layer: write /home/codespace/.local/lib/python3.12/site-packages/torch/lib/libtorch_cpu.so: no space left on device
2026-09-19 09:11:44.036Z: Stop: Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.83.3-1789808775017 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:2 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-root/container-features/0.83.3-1789808775017/Dockerfile.extended -t vsc-matplotlib-e756e6eb92f585b1533d5a04ee5efe0ae6fae27b41e0b63c206359f2f9175ad1-features /var/lib/docker/codespacemount/.persistedshare/empty-folder
2026-09-19 09:11:44.036Z: Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 --build-context dev_containers_feature_content_source=/tmp/devcontainercli-root/container-features/0.83.3-1789808775017 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/universal:2 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -f /tmp/devcontainercli-root/container-features/0.83.3-1789808775017/Dockerfile.extended -t vsc-matplotlib-e756e6eb92f585b1533d5a04ee5efe0ae6fae27b41e0b63c206359f2f9175ad1-features /var/lib/docker/codespacemount/.persistedshare/empty-folder
2026-09-19 09:11:
I tried to fix this by using base:ubuntu image and adding features like ssh, conda
( base ubuntu doesnt come with conda, so it throws another following error if conda is not added)
The following has been added in your "/home/vscode/.bashrc" file
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'micromamba shell init' !!
export MAMBA_EXE='/home/vscode/.local/bin/micromamba';
export MAMBA_ROOT_PREFIX='/home/vscode/micromamba';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias micromamba="$MAMBA_EXE" # Fallback on help from micromamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<
2026-09-19 09:38:27.226Z: Please restart your shell to activate micromamba or run the following:\n
source ~/.bashrc (or ~/.zshrc, ~/.xonshrc, ~/.config/fish/config.fish, ...)
- 2026-09-19 09:38:27.259Z: .devcontainer/setup.sh: line 7: conda: command not found
2026-09-19 09:38:27.266Z: onCreateCommand from devcontainer.json failed with exit code 127. Skipping any further user-provided commands.
Hence, this configuration files need changes (mcr.microsoft.com/devcontainers/universal:2 image is old and downloads lot of unnecessary bloats, filling up space).
Steps to Reproduce
-
Click on the green
<> Codebutton to create a codespace, click on three dots and selectNew with options. -
Here, configuration will be set. Click on
create codespace -
Codespace creation begins. It takes few minutes (around 7-8). Observe creation log. Once it fails, it creates a recovery container (alpine image).
-
After codespace is created, check
/vscode/workspaces/.codespaces/.persistedshare/creation.logforcreation.logfile. Here the issue can be confirmed.
- Dominant language
- Python
- Stars
- 23.2k
- Forks
- 8.5k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 68
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from matplotlib/matplotlib
-
[Bug]: macOS font discovery raises KeyError('_items') for an incomplete system_profiler font record Openfirst-contribution OS: Apple status: needs clarification topic: text/fonts
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
matplotlib/matplotlib#32328 · 2 comments ·
-
topic: ticks axis labels
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
matplotlib/matplotlib#32313 · 3 comments ·
-
topic: plotting methods topic: ticks axis labels
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
matplotlib/matplotlib#32304 · 4 comments ·
-
[Bug]: Line3D.draw requires .shape on _verts3d, but set_data_3d accepts and stores any array-like Openfirst-contribution topic: mplot3d
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
matplotlib/matplotlib#32127 · 5 comments ·
-
Documentation first-contribution
Difficulty 1/5 Under an hour Newbie friendliness 78/100
matplotlib/matplotlib#31935 · 4 comments · 1 reaction ·
All issues in matplotlib/matplotlib
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
bancolombia/sentinel#23 ·
-
test md OpenCI
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
bug client
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100