GitHub Actions: "No space left on device" on a hosted runner
The runner's root disk filled up. GitHub's hosted Ubuntu runners come with many toolchains already installed, so a large build or a large Docker image can use up what is left. The usual fix is to delete preinstalled software the job does not need, at the start of the job.
What it looks like
- A step fails with its own message, for example while
actions/cachebuilds its archive in$RUNNER_TEMP, which is on the same disk (nixfiles #157):zstd: ... No space left on device
- The runner adds a warning annotation when free space drops under a threshold set by GitHub. It checks every 10 seconds, and the runner's code notes a default of 100 MB. From a public run in October (cratestack #1239):
You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 74 MB
- The runner itself crashes when it cannot write its own log, and the job fails (pmacs #450). Sometimes the job then has no log at all (coding-adventures #17652):
System.IO.IOException: No space left on device : '/home/runner/actions-runner/cached/2.338.2/_diag/Worker_20261102-200058-utc.log'
When a hosted runner runs out of disk: Pipeline Inbox for GitHub Actions Workflows, a plugin for JetBrains IDEs, lists the runs of all your repositories with their jobs and steps in an IDE tool window, so the step that failed stands out in each job.
How much space a hosted runner has
- GitHub's documentation lists 14 GB of SSD for every standard hosted runner. That is the only amount it guarantees.
- In practice it depends on the repository. A runner-images maintainer wrote on August 5, 2026 that public repositories get a 4-core VM with a 150 GB disk and about 90 GB free, and private repositories a 2-core VM with a 75 GB disk and about 14 GB free, adding that only 14 GB is guaranteed on both (runner-images #14492).
- The larger disk is not certain even in public repositories. On October 31, one public project saw some
ubuntu-latestjobs start with about 19 GB free and others with about 89.5 GB, in the same merge queue (ravel #3564).
Print it at the start of the job, so a failed run shows which kind it got:
- run: df -h /
Freeing space
What deleting each preinstalled toolchain freed on an ubuntu-24.04 runner of a public repository on September 17, 2026, from the CI log of the free-disk-space action (now lumbroso-commons/free-disk-space; the old name fails since November 4). The disk went from 87 GB to 119 GB available. The Ubuntu 26.04 image that ubuntu-latest is moving to has the same toolchains (its image README of October 26):
- Android SDK,
/usr/local/lib/android: 11 GiB - .NET,
/usr/share/dotnet: 5.4 GiB - Haskell,
/opt/ghcand/usr/local/.ghcup: 3.6 GiB - The tool cache that
setup-python,setup-nodeand others use first,/opt/hostedtoolcache: 5.3 GiB - Large apt packages (LLVM, PHP, MySQL, MongoDB, browsers, Azure CLI, Google Cloud CLI and others): 4.5 GiB
- Cached Docker images: 1.9 GiB
- name: Free disk space
run: |
df -h /
sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc /usr/local/.ghcup
docker image prune --all --force
df -h /
- Delete only what later steps do not use: an Android build needs the SDK. Without the tool cache, the setup actions download the version instead, which is slower but works.
- Deleting takes time: the Android directory alone took about a minute in that log.
- A job that runs in a
container:deletes inside the container and frees nothing on the host. One project's jobs started with about 12 GB free from October 19 until the cleanup ran on the host instead (uno.chefs #1778). - Some runners have a separate disk at
/mnt, but not all: one project found it on its 24.04 runners and not on 26.04 (continuum #5650). Check withdf -hbefore building there.
On Ubuntu 26.04
Three changes in the image that ubuntu-latest is moving to use the disk differently:
- Docker images take more room. 26.04 installs Docker 29, and Docker 29 uses the containerd image store on a fresh install, which keeps each layer twice, compressed and unpacked (Docker's documentation). The runner image's install script does not change that. The store is under
/var/lib/containerd, so moving Docker'sdata-rootto another disk does not move it; containerd's ownrootsetting does. A build that unpacks a 2.9 GB model layer failed under/var/lib/containerdon 26.04 and passed withruns-on: ubuntu-24.04(runner-images #15233).docker info -f '{{ .DriverStatus }}'printsio.containerd.snapshotter.v1when the store is in use, anddocker system dfshows what the images take. The same store also breaks kind load docker-image on Ubuntu 26.04 for multi-platform images. - To go back to the storage Docker used on 24.04, a runner-images maintainer suggested on November 4 this step before any Docker or Buildx step (#15233):
- name: Use classic Docker storage driver run: | echo '{"features":{"containerd-snapshotter":false}}' | sudo tee /etc/docker/daemon.json sudo systemctl restart docker docker info -f '{{ .Driver }}' # should print overlay2It replaces the whole/etc/docker/daemon.json, so if an earlier step writes settings there, add the key to that file instead. The maintainer's other suggestion is not to keep the image on the runner at all:push: trueindocker/build-push-action, ordocker buildx build --push, sends it to the registry without loading it into the local store. GitHub also said it would discuss whether 26.04 should ship with the old storage turned back on. /tmpwas a RAM disk with a quota on the first 26.04 images: about 7.8 GB, and about 6.3 GB for the runner user, sogo buildand pytest failed with "Disk quota exceeded" while the root disk had about 90 GB free (runner-images #14777). A change merged on October 20 keeps/tmpon the root disk in later images (#14814). If a job still gets the RAM disk,findmnt /tmpshowstmpfs; setTMPDIRto${{ runner.temp }}, which is on the root disk.- The free-disk-space action's
large-packagesremoves less. PowerShell is not an apt package on 26.04, and the action's last apt command names it, so that command removes none of its packages, and Azure CLI, Chrome and Firefox stay (free-disk-space on 26.04).
Using less
- Remove build output a later step does not need, such as test executables or intermediate images, between phases of the job.
- Split a job that builds and tests several large parts into jobs of their own; each job gets a fresh runner.
- Leave room for the cache:
actions/cachewrites its whole archive to the root disk before uploading it. - If none of this is enough, larger runners (paid, with a fixed disk size) or a self-hosted runner give a known amount of space.
Telling it apart
- The job ends with "The runner has received a shutdown signal" or "lost communication with the server": a full disk can cause those too, but so can other overloads (shutdown signal, lost communication).
- The upload fails with "Artifact storage quota has been hit": that is your account's artifact storage on GitHub, not the runner's disk (artifact storage quota).
- On a self-hosted runner, the space is your machine's: clean its work directory and old checkouts there.
See failed jobs from IntelliJ IDEA
Pipeline Inbox for GitHub Actions Workflows, a plugin by Lesstep for JetBrains IDEs 2024.1 or later, lists the runs of all your repositories in an IDE tool window, with their jobs and steps, and your current branch's runs are in the status bar. Reading is free; re-running failed jobs, cancelling, running workflows and reviewing deployments are Pro (US$1.50 a month, with a 30-day trial).
Get it on JetBrains Marketplace
GitHub and GitHub Actions are trademarks of GitHub, Inc.; IntelliJ IDEA is a trademark of JetBrains s.r.o. This page is not affiliated with, sponsored or endorsed by GitHub, Inc. or JetBrains.
More: ubuntu-latest moving to Ubuntu 26.04 · A runner that lost communication · "Artifact storage quota has been hit" · GitHub Actions plugins for IntelliJ IDEA compared · 日本語