fail2ban.sqlite3 bloat?
Posted: Wed Jul 03, 2024 11:29 pm
(Sorry, I realized I posted in the wrong forum before, moved here).
I upgraded a Debian 10 machine to 11 a while back and ran out of disk space while doing so. I had no idea why, so I reinstalled and all was good.
I just did another one last weekend and had the same problem! But this time I found the culprit - the fail2ban database was over 4GB; and it had made repeated clones/backups (?) of itself until there was no disk space left. I just deleted the dated ones and it seemed to work... for a while. Then it filled up the disk again with the same issue.
Just today I stopped fail2ban, deleted ALL of the databases in /var/lib/fail2ban/ and restarted, and it's a modest size DB now.
Will it stay that way? What caused it to go nuts like that on a dist-upgrade? I know there's a daily purge by default, but is there a need to VACUUM the database as well?
I upgraded a Debian 10 machine to 11 a while back and ran out of disk space while doing so. I had no idea why, so I reinstalled and all was good.
I just did another one last weekend and had the same problem! But this time I found the culprit - the fail2ban database was over 4GB; and it had made repeated clones/backups (?) of itself until there was no disk space left. I just deleted the dated ones and it seemed to work... for a while. Then it filled up the disk again with the same issue.
Just today I stopped fail2ban, deleted ALL of the databases in /var/lib/fail2ban/ and restarted, and it's a modest size DB now.
Will it stay that way? What caused it to go nuts like that on a dist-upgrade? I know there's a daily purge by default, but is there a need to VACUUM the database as well?