GitHub Actions: System.IO.IOException: No space left on device — the runner's disk is full
The job filled the runner's disk (about 14 GB free on standard Linux runners): large Docker images, caches, build outputs or test artifacts.
System.IO.IOException: No space left on deviceNo space left on device runnerENOSPC: no space left on device, writeYou are running out of disk space. The runner will stop working when the machine runs out of disk spaceError: ENOSPC Meaning
Hosted runners have limited free disk. Docker builds, Android/Gradle, Rust target/ folders and big node_modules can fill it. Free space early by removing preinstalled tools you do not use, prune Docker, avoid huge artifacts, and clean build output between steps.
Common causes
- Large Docker images and layers
- Rust
target/, Gradle caches or node_modules growing large - Many or huge artifacts/logs written to the workspace
- Preinstalled SDKs consuming space you do not need
- Matrix legs sharing a self-hosted disk
⚡ Quick fix
- Delete unused preinstalled tools at the start (dotnet, android, haskell)
docker system prune -afbetween big steps- Upload less data; compress or exclude build intermediates
Detailed fix by platform
GitHub Actions
- Check usage:
run: df -h /anddu -sh * | sort -h | tail - Free ~25 GB:
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
Docker
docker system dfthendocker system prune -af --volumes
Code examples
Free space first
- name: Free disk space
run: |
df -h /
sudo rm -rf /usr/share/dotnet /usr/local/lib/android /opt/ghc
docker system prune -af
df -h /How to diagnose
- Usage — df -h / at the point of failure?
- Biggest — du -sh of folders?
- Cause — Docker, caches or artifacts?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- API rate limit exceeded GitHub Actions: HttpError: API rate limit exceeded for installation ID 123456 / secondary rate limit
- Credentials could not be loaded GitHub Actions: Error: Credentials could not be loaded, please check your action inputs: Could not load credentials from any providers
- Process completed with exit code 137 GitHub Actions: Error: Process completed with exit code 137 (Killed — out of memory)
Most viewed in CI/CD
- The process '/usr/bin/git' failed with exit code 128 GitHub Actions: Error: The process '/usr/bin/git' failed with exit code 128
- Resource not accessible by integration GitHub Actions: Error: Resource not accessible by integration (403)
- ComparisonError: manifest generation failed Argo CD: ComparisonError: rpc error: code = Unknown desc = Manifest generation error (cached): kustomize build failed
Other ways to find it
Where this error sits
Origin: Build & delivery. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 25 Oct 2026