Critical · Storage & Logs
How to Fix ENOSPC: no space left on device
TL;DR Fix
Unpruned n8n execution JSON payloads, binary files, or unbounded Docker json-file logs filled the VPS root disk. Enable pruning + Docker log max-size: 10m; for local AI models upgrade to 2TB NVMe.
Exact Error Signature
ENOSPC: no space left on device | PostgreSQL panic: could not write to WAL
Copy-Paste Fix Commands
df -h / && docker system prune -af --volumes
# Add to n8n .env to cap retention at 7 days:
EXECUTIONS_DATA_PRUNE=true
EXECUTIONS_DATA_MAX_AGE=168
Preventing Recurrence
Enable pruning + Docker log max-size: 10m; for local AI models upgrade to 2TB NVMe.