Error Triage Hub (9)
ActiveStorage Local Disk Full Attachments & Postgres WAL Halt
Storing customer screenshots, PDFs, and voice notes on local container volumes fills 80-100 GB VPS disks and halts PostgreSQL WAL checkpoints.
Risk: 100% Root Disk | Impact: PG PANIC + Redis RDB save failure
Why Local ActiveStorage Starves PostgreSQL and Redis
Chatwoot defaults to local disk storage (/app/storage) when S3 object storage variables are unset. On an 80-100 GB NVMe VPS, 6-12 months of support attachments plus PostgreSQL WAL logs consume 100% of disk space, causing Redis BGSAVE failures and PostgreSQL write panics.
Locating Storage Growth Across Volumes and Container Logs
Run du -sh /var/lib/docker/volumes/* and check docker ps -s before deleting files blindly. Never remove live pg_wal files; instead truncate oversized JSON container logs and migrate ActiveStorage blobs to S3-compatible object storage.
Measured Thresholds & Configuration
| Disk Consumer | Growth Rate (50k msgs/mo) | Mitigation |
|---|---|---|
| ActiveStorage /app/storage | 8 - 25 GB / month | Offload to S3 / R2 / MinIO |
| Docker json-file logs | 2 - 10 GB / month | Set max-size: 20m, max-file: 3 |
| PostgreSQL WAL + bloat | 4 - 18 GB / quarter | Prune notifications + VACUUM |