systemd-journald grows log files until root partition fills after logrotate failed on overlay root filesystem
Environment
Ubuntu 22.04 container host running as kiosk appliance; root filesystem is an overlayfs on a small 8GB eMMC, /var/log journal stored on / (no separate /var). systemd-journald configured with SystemMaxUse=200M. Recent package update changed rsyslog config and logrotate cron job failed with exit status 1.
Symptoms
System becomes unresponsive after overnight operation; services fail to start with 'No space left on device' and new SSH sessions cannot write to journal. Journal logs show continuous writes: a local application emits repeated warnings and each iteration is logged. Disk usage shows /dev/mmcblk0p1 at 100% and journal files under /var/log/journal occupy >90% of disk.
Observations
journalctl --disk-usage reports 5.8G used. systemctl status rsyslog.service shows 'inactive (dead)' with last logrotate execution timestamp and a 'logrotate: error reading state' message in the journal. /etc/logrotate.d/ contains a file with incorrect permissions preventing rotation. Running journalctl -f shows the same repeated warning messages every 2 seconds from application 'app-daemon[1234]'. dmesg shows 'EXT4-fs (mmcblk0p1): volume is full' around time of failure.
Already attempted
Attempted to truncate largest journal files (journalctl --vacuum-size=200M) but vacuum failed with 'No space left on device' when trying to create temporary files. Remounted root as read‑write to attempt deletion; deleted several old rotated logs from /var/log to free ~200MB and then successfully ran journalctl --vacuum-size=300M which reduced usage. Restarted services; issue reproduced within hours. Increased SystemMaxUse to 500M and configured rate-limiting for journald to suppress repeated identical messages, but underlying app continues to flood logs.
Question
How can I safely stop the immediate outage risk, ensure journald and logrotate work reliably on a constrained overlay root, and find the root cause of the repeating application warnings so disk doesn't fill again?
Verified community troubleshooting
No answers yet..
Incident analysis
Most likely causes
Summary
Suggested Fixes
Continue troubleshooting
Related troubles
Matched from the title, description and tags