YunoHost / issues

General issue tracker for the YunoHost project
71 stars 8 forks source link

`/var/log/yunohost/categories/operation/` never get removed #2329

Open Thovi98 opened 4 months ago

Thovi98 commented 4 months ago

Describe the bug

I had some troubles with the webadmin which asked several minutes to show the detailed logs in yunohost/admin/#/tools/logs. By cli, the result is shown in a second.

Context

Looking at /var/log/yunohost/categories/operation/ directory, I’ve found that all the logs since 2020 were still there (year of my latest clean install).

So I rm /var/log/yunohost/categories/operation/2020* (same for 2021, 2022 and 2023) because those logs are from my point of view not useful anymore.

Now, the webadmin answer in +-3 seconds when I ask to see a detailed log.

So 2 issues here:

NB: before cleaning those logs, I made a yunohost tools basic-space-cleanup which worked great, but didn’t cleaned above mentioned logs.

OniriCorpe commented 4 months ago

ah that's why!

ls -l /var/log/yunohost/categories/operation/ | wc -l
15613

Home => Tools => Logs => 20240213-141228-app_upgrade-invidious (my latest log) showed up after 3:30 minutes 😓

then i deleted 2020, 2021, 2022 and 2023 logs:

ls -l /var/log/yunohost/categories/operation/ | wc -l
1823

and the same log showed up after only !! 10 seconds