Closed AA-Turner closed 1 month ago
I'm not sure if it just hadn't been 24 hours yet but force rotation generated the backups for this:
coffee@docs:/var/log/docsbuild$ sudo logrotate -f /etc/logrotate.d/docsbuild
coffee@docs:/var/log/docsbuild$ ll
total 12276
drwxr-xr-x 2 docsbuild docsbuild 4096 Oct 1 14:17 ./
drwxr-xr-x 14 root syslog 4096 Oct 1 00:00 ../
-rw-r--r-- 1 docsbuild docs 0 Oct 1 00:00 docsbuild.log
-rw-r--r-- 1 docsbuild docs 954656 Sep 30 16:07 docsbuild.log.1.gz
...
-rw-r--r-- 1 docsbuild docsbuild 0 Oct 1 14:17 docsbuild-no-html.log
-rw-rw---- 1 docsbuild docs 60396 Oct 1 07:24 docsbuild-no-html.log.1.gz
-rw-r--r-- 1 docsbuild docsbuild 0 Oct 1 14:17 docsbuild-only-html.log
-rw-rw---- 1 docsbuild docs 1763038 Oct 1 14:16 docsbuild-only-html.log.1.g
Reopen and let me know if we don't see a rotation within 24 hours again
The 'logrotate' configuration file (https://github.com/python/psf-salt/blob/main/salt/docs/config/docsbuild.logrotate) states that it includes all log files, but the new
docsbuild-only-html.log
file doesn't seem to have been rotated -- I would expect to seedocsbuild-only-html.log.1.gz
.cc @JacobCoffee
A