PostgreSQL

Disk full errors from uncontrolled log file and media growth

critical
storageUpdated Aug 23, 2025(via Exa)
Technologies:
How to detect:

Server throws 'OSError: [Errno 28] No space left on device' errors. Disk is full from unrotated log files, accumulated media uploads, or database growth. Application cannot write files, logs, or database data.

Recommended action:

Check disk usage with `df -h` to identify full partitions. Find large files with `du -sh *` in relevant directories. Implement log rotation (logrotate), media cleanup policies, and database maintenance. Set up disk space monitoring alerts before reaching capacity.