Services fail with “No space left on device”
MariaDB, mail, or the web interface fails, and its logs show No space left on device. The Linux server's disk is full, so find what filled it, often local backups, and free up space.
Symptoms
Services fail to write, and their logs show No space left on device. The root filesystem shows 100% usage in df -h.
df -h /Cause
The server's disk is full. Common causes are local backups, logs, or one customer's files. UrbeStack keeps local backups in /backups for 5 days unless you change the setting.
Resolution
Find the largest top-level directories on the root filesystem.
du -xh --max-depth=1 / | sort -h | tailCheck the size of the local backups.
du -sh /backupsTo keep fewer days of backups, set the retention period to 3 days. The nightly run removes the older backups.
urbestack-setting-set --key backups.keep_days --value 3See which customers used the most space at the last nightly measurement.
urbestack-disk-usageTo shrink the system journal to 200 MB, run the following command.
journalctl --vacuum-size=200MWhen
df -h /shows available space, restart the services that failed. For MariaDB, runurbestack-service-restart --name mariadb.