All logs copy on every restart, leading to log bloat (also, logRetentionDays setting not working)
Whenever we restart DLE (which restarts the sync instance), even if we delete the sync container, all the logs are duplicated, leading to massive disk bloat.
The issue seems to be as follows:
- Logs are generated in
/var/lib/dblab/dblab_pool/data/log/
- Whenever a new sync instance starts, a new date folder is made in
~/.dblab/logs/
. It seems to copy the entire logs history from/var/lib/dblab/dblab_pool/data/log/
. I.e. if Irm -rf
everything in~/.dblab/logs/
and restart DLE, all the old logs are put back in~/.dblab/logs/
, even ones from months ago - @vitabaks suggestion to use the following didn't work. I suspect it's because the logs are copied and get a new mktime that doesn't match the time they were actually made?
sudo find ~/.dblab/engine/logs -type f -mtime +1 -delete
sudo find ~/.dblab/engine/logs -type d -mtime +1 -exec rm -rf {} +
- I manually deleted the oldest logs from
/var/lib/dblab/dblab_pool/data/log/
as an interim solution, but am hoping we can find a lasting fix
Relatedly, we have had logRetentionDays set to 3 for months, but no logs have ever been automatically deleted by DLE