← Back to Troubleshoot

Disk Space Full / Sessions Consuming Storage

Error: ENOSPC: no space left on device / disk full / session storage growing

OpenClaw troubleshooting · Updated 2026

Error Message

Error: ENOSPC: no space left on device / disk full / session storage growing

What Causes This

OpenClaw stores conversation transcripts, daily memory logs, and session data in ~/.openclaw/. On long-running instances with many sessions, this can grow to gigabytes.

How to Fix It

Clean up old sessions and set disk budgets:

# Clean up immediately
openclaw sessions cleanup

# Check what's using space
du -sh ~/.openclaw/agents/*/sessions/

# Set automatic disk budget in config:
{
  "session": {
    "maintenance": {
      "maxDiskBytes": 1073741824,
      "highWaterBytes": 858993459
    }
  }
}
# (1GB max, 800MB trigger for cleanup)

# Also clean old logs
find /tmp/openclaw/ -name "*.log" -mtime +7 -delete

See Also