Project

General

Profile

Bug #523

Toushirou: log aren't rotated

Added by Pierre-Louis Bonicoli over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Category:
System :: Base
Start date:
2017-04-20
Due date:
% Done:

100%

Estimated time:
(Total: 0:00 h)
Patch Available:
Confirmed:
Yes
Branch:
Entity:
DuckCorp
Security:
Help Needed:

Description

/var/log/apache2/milkypond/stuff.milkypond.org/error.log is one year old:

head -n 1 /var/log/apache2/milkypond/stuff.milkypond.org/error.log
[Fri Apr 08 19:15:26.327568 2016] [:error] [pid 30828] [client 115.65.108.42:49918] PHP Fatal error:  Method OC_L10N_String::__toString() must not throw an exception in /usr/share/owncloud/apps/files_external/appinfo/app.php on line 0

logrotate is run by cron and logrotate updates /var/lib/logrotate/status

grep stuff.*err /var/lib/logrotate/status
"/var/log/apache2/milkypond/stuff.milkypond.org/error.log" 2017-4-17-6:25:12

/etc/logrotate.d/apache2:

/var/log/apache2/*.log /var/log/apache2/*/*/*.log {
    weekly
    missingok
    rotate 26
    compress
    delaycompress
    notifempty
    create 640 root adm
    sharedscripts
    postrotate
                if /etc/init.d/apache2 status > /dev/null ; then \
                    /etc/init.d/apache2 reload > /dev/null; \
                fi;
    endscript
    prerotate
        if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
            run-parts /etc/logrotate.d/httpd-prerotate; \
        fi; \
    endscript
}

/etc/logrotate.d/httpd-prerotate doesn't exist.

Content of /var/lib/logrotate/status:

logrotate state -- version 2
"/var/log/apache2/milkypond/bip.milkypond.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/projects.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/guihome/photos.guihome.net/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/cdbs-doc.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/rcs-git-viewer.duckcorp.org/error.log" 2014-1-19-6:25:58
"/var/log/proftpd/ban.log" 2017-4-17-6:25:12
"/var/log/cron.log" 2009-6-7-0:0:0
"/var/log/atop.log" 2012-8-8-0:0:0
"/var/log/apache2/duckcorp/rcs-git-viewer.duckcorp.org/access.log" 2014-1-19-6:25:58
"/var/log/apache2/duck/jdr.duckcorp.org/error.log" 2014-1-4-13:23:13
"/var/spool/sendfile/duck/log" 2009-7-12-0:0:0
"/var/log/apache2/hurdfr/perso.hurdfr.org/access.log" 2015-9-1-6:25:40
"/var/log/apache2/duckcorp/thoughts.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/projects.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/vcs-git-viewer.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/blogpro.fingerbox.net/error.log" 2014-12-9-6:25:6
"/var/log/auth.log" 2017-4-17-6:25:12
"/var/log/apache2/andesi/dpt.andesi.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/ckh.fingerbox.net/error.log" 2014-1-4-13:23:13
"/var/log/apache2/duck/wikipf.duckcorp.org/error.log" 2013-1-10-8:0:0
"/var/log/apache2/duckcorp/debian.duckcorp.org/error.log" 2015-11-22-6:25:58
"/var/log/apache2/duckcorp/ddns.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/milkypond/stuff.milkypond.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/users.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/other_vhosts_access.log" 2008-9-24-0:0:0
"/var/log/apache2/finger/blogpro.fingerbox.net/access.log" 2015-8-17-6:25:33
"/var/log/apache2/damien/dleone.fensalir.fr/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/codereview.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/ufwi/www.ufwi.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/guihome/www.collectioneuro.eu/access.log" 2017-3-30-6:0:0
"/var/log/apache2/guihome/webcam.guihome.net/error.log" 2014-1-4-13:23:13
"/var/log/apache2/arnau/unagi.mini-dweeb.org/error.log" 2013-12-14-6:25:5
"/var/log/apache2/duckcorp/wikipf.duckcorp.org/access.log" 2011-2-5-8:0:0
"/var/log/apache2/duckcorp/cdbs-doc.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/guihome/video.guihome.net/access.log" 2017-4-17-6:25:12
"/var/log/mail.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/projects-dev.duckcorp.org/access.log" 2011-11-5-8:0:0
"/var/log/horde/horde3.log" 2007-10-28-0:0:0
"/var/log/apache2/duckcorp/doc.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/milkypond/tribioune.milkypond.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/blog.fingerbox.net/access.log" 2008-6-22-0:0:0
"/var/log/apache2/hurdfr/wiki.hurdfr.org/error.log" 2015-2-16-6:25:9
"/var/log/apache2/finger/www.fingerbox.net/error.log" 2015-8-10-6:25:30
"/var/log/mysql.log" 2015-7-28-6:25:19
"/var/log/ykksm.log" 2009-6-7-0:0:0
"/var/log/user.log" 2017-4-9-6:25:24
"/var/log/mailman/subscribe" 2007-10-28-0:0:0
"/var/log/apache2/duckcorp/perso.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/happypeng/nihon.happypeng.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/guihome/photos.guihome.net/error.log" 2017-4-17-6:25:12
"/var/log/apache2/arnau/photos.mini-dweeb.org/error.log" 2014-1-13-6:25:25
"/var/log/mailman/digest" 2007-8-31-0:0:0
"/var/log/lpr.log" 2009-6-7-0:0:0
"/var/log/apache2/access.log" 2007-8-20-0:0:0
"/var/log/apache2/milkypond/webphone.milkypond.org/access.log" 2016-9-11-6:25:13
"/var/log/daemon.log" 2017-4-17-6:25:12
"/var/log/apache2/david/www.rammstein-musik.com/access.log" 2008-6-22-0:0:0
"/var/log/acpid" 2008-10-27-8:0:0
"/var/log/apache2/guihome/archives.guihome.net/error.log" 2017-4-17-6:25:12
"/var/log/apache2/milkypond/ffsync.milkypond.org/access.log" 2012-2-2-8:0:0
"/var/log/apache2/duckcorp/rcs-arch-viewer.duckcorp.org/error.log" 2009-8-12-0:0:0
"/var/log/apache2/duckcorp/thoughts.duckcorp.org/error.log" 2014-2-23-6:25:13
"/var/log/apache2/guihome/2heurespourtuer.ath.cx/error.log" 2016-8-28-6:25:12
"/var/log/mailman/vette" 2007-10-28-0:0:0
"/var/log/apache2/gorou/forum.tetramorphe.org/access.log" 2012-3-9-8:0:0
"/var/log/apache2/andesi/dpt.andesi.org/error.log" 2017-1-24-6:25:40
"/var/log/apache2/guihome/video.guihome.net/error.log" 2017-4-17-6:25:12
"/var/log/ulog/*.pcap" 2015-10-15-6:0:0
"/var/log/apache2/arnau/projects.mini-dweeb.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/wiki.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/admin-nerim.duckcorp.org/error.log" 2008-9-24-0:0:0
"/var/log/apache2/hurdfr/www.hurdfr.org/access.log" 2015-8-31-6:25:10
"/var/log/apache2/duckcorp/myip.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/georgesleyeti/www.georgesleyeti.fr/error.log" 2017-4-17-6:25:12
"/var/log/apache2/pikachu/photos.audrey-et-arnaud.org/access.log" 2015-7-27-6:25:29
"/var/log/apache2/duckcorp/rcs-git.duckcorp.org/access.log" 2014-1-19-6:25:58
"/var/log/apache2/duckcorp/toushirou.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/admin-nerim.duckcorp.org/access.log" 2008-9-24-0:0:0
"/var/log/debug" 2017-4-17-6:25:12
"/var/log/apache2/georgesleyeti/www.xn--mah-dma.net/access.log" 2017-4-17-6:25:12
"/var/log/apache2/damien/www.aldaaron.fr/error.log" 2015-5-26-6:25:6
"/var/log/apache2/duckcorp/vcs.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/pyro.lespotos.com/error.log" 2017-4-17-6:25:12
"/var/log/apache2/xaiki/www.evilgiggle.com/access.log" 2015-4-12-6:25:30
"/var/log/apache2/duckcorp/gossip.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/cron-apt/log" 2009-1-15-8:0:0
"/var/log/apache2/finger/www.fingerbox.net/access.log" 2015-8-17-6:25:33
"/var/log/apache2/finger/mushdoom.lespotos.com/error.log" 2017-4-17-6:25:12
"/var/log/proftpd/controls.log" 2017-1-23-6:25:9
"/var/log/apache2/duckcorp/vcs.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/andesi/forum.andesi.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/gorou/www.medievistes-nanterre.org/access.log" 2016-3-28-6:25:7
"/var/log/apache2/happypeng/live.happypeng.org/access.log" 2010-12-4-8:0:0
"/var/log/apache2/milkypond/bip.milkypond.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/laura/www.laurafontaine.fr/error.log" 2017-4-17-6:25:12
"/var/log/monit.log" 2011-3-1-8:0:0
"/var/spool/sendfile/*/log" 2009-7-13-0:0:0
"/var/log/mailman/bounce" 2007-10-28-0:0:0
"/var/log/apache2/duckcorp/wikipf.duckcorp.org/error.log" 2011-2-5-8:0:0
"/var/log/apache2/pikapaf/photos.audrey-et-arnaud.org/error.log" 2009-2-20-8:0:0
"/var/log/tt-rss/tt-rss.log" 2017-4-17-6:25:12
"/var/log/dspam/dspam.debug" 2007-10-28-0:0:0
"/var/log/apache2/valfor/mariage-cecile-yann.duckcorp.org/access.log" 2014-1-4-13:23:13
"/var/log/syslog" 2017-4-20-6:25:32
"/var/log/apache2/georgesleyeti/www.georgesleyeti.fr/access.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/www.lespotos.com/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/rcs.duckcorp.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/duckcorp/lists.duckcorp.org/error.log" 2008-6-22-0:0:0
"/var/log/apache2/duckcorp/webstats-ng.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/blog.fingerbox.net/error.log" 2008-6-22-0:0:0
"/var/log/apache2/duckcorp/repository.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/test.duckcorp.org/error.log" 2015-8-6-6:25:44
"/var/log/apache2/guihome/archives.guihome.net/access.log" 2017-4-17-6:25:12
"/var/log/wtmp" 2017-4-1-6:25:27
"/var/log/apache2/duckcorp/photos-ng.duckcorp.org/access.log" 2015-3-17-6:25:11
"/var/log/apache2/*/*.log" 2007-8-17-0:0:0
"/var/log/apache2/duckcorp/smokeping.duckcorp.org/access.log" 2015-11-13-6:26:27
"/var/log/apache2/duck/ga.duckcorp.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/milkypond/ffsync.milkypond.org/error.log" 2012-2-7-8:0:0
"/var/log/apache2/duckcorp/webdesk.duckcorp.org/error.log" 2008-6-22-0:0:0
"/var/log/apache2/duckcorp/yubiauth.duckcorp.org/access.log" 2014-1-4-13:23:13
"/var/log/apache2/duckcorp/radio.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/valfor/mariage-cecile-yann.duckcorp.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/arnau/www.mini-dweeb.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/andesi/guide.andesi.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/naboo.lespotos.com/access.log" 2015-8-17-6:25:33
"/var/log/apache2/duckcorp/vcs-arch-viewer.duckcorp.org/access.log" 2014-1-24-6:0:0
"/var/log/apache2/duckcorp/photos.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/mailman/qrunner" 2007-10-28-0:0:0
"/var/log/rkhunter.log" 2017-4-18-6:25:12
"/var/log/apache2/duckcorp/vcs-arch.duckcorp.org/access.log" 2014-1-24-6:0:0
"/var/log/apache2/pikachu/photos.audrey-et-arnaud.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/gorou/www.medievistes-nanterre.org/error.log" 2016-3-28-6:25:7
"/var/log/apache2/duckcorp/spamfilter.duckcorp.org/error.log" 2008-6-22-0:0:0
"/var/log/apache2/arnau/unagi.mini-dweeb.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/damien/debian.fensalir.fr/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/rcs.duckcorp.org/access.log" 2014-1-19-6:25:58
"/var/log/apache2/happypeng/nihon.happypeng.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/damien/dleone.fensalir.fr/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/ca.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/proftpd/proftpd.log" 2017-4-17-6:25:12
"/var/log/apache2/xaiki/www.evilgiggle.com/error.log" 2015-4-5-6:25:8
"/var/log/apache2/duckcorp/rcs-arch.duckcorp.org/access.log" 2009-3-2-8:0:0
"/var/log/apache2/milkypond/chitchat.milkypond.org/access.log" 2017-1-22-6:25:16
"/var/log/apache2/duckcorp/gossip.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/laura/www.laurafontaine.fr/access.log" 2017-4-17-6:25:12
"/var/log/mailman/smtp-failure" 2007-10-28-0:0:0
"/var/log/apache2/duckcorp/rcs-arch-viewer.duckcorp.org/access.log" 2009-8-12-0:0:0
"/var/log/dico/access.log" 2014-3-10-6:25:10
"/var/log/apache2/damien/debian.fensalir.fr/access.log" 2017-4-17-6:25:12
"/var/log/apache2/clawfire/www.clawfire.net/access.log" 2014-9-7-6:25:22
"/var/log/mailman/smtp" 2007-10-28-0:0:0
"/var/log/apache2/milkypond/tribioune.milkypond.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/codereview.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/forum.duckcorp.org/error.log" 2010-10-14-0:0:0
"/var/log/apache2/arnau/photos.mini-dweeb.org/access.log" 2014-1-13-6:25:25
"/var/log/apache2/duckcorp/myip.duckcorp.org/error.log" 2014-4-6-6:25:7
"/var/log/aptitude" 2016-8-19-18:28:24
"/var/log/apache2/damien/alt.oxmoz.eu/error.log" 2014-1-4-13:23:13
"/var/log/apache2/duckcorp/lists.duckcorp.org/access.log" 2008-6-22-0:0:0
"/var/log/apache2/guihome/2heurespourtuer.ath.cx/access.log" 2016-8-28-6:25:12
"/var/log/mail.warn" 2017-4-17-6:25:12
"/var/log/apache2/milkypond/irconweb.milkypond.org/access.log" 2017-4-17-6:25:12
"/var/log/lvm" 2007-6-10-0:0:0
"/var/log/apache2/milkypond/webphone.milkypond.org/error.log" 2015-7-12-6:25:9
"/var/log/apache2/milkypond/stuff.milkypond.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/admin.duckcorp.org/error.log" 2016-8-22-6:25:7
"/var/log/apache2/gorou/forum.tetramorphe.org/error.log" 2011-12-8-8:0:0
"/var/log/apache2/duckcorp/vcs-git-viewer.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/hurdfr/www.hurdfr.org/error.log" 2015-8-31-6:25:10
"/var/log/redmine/taiste/production.log" 2012-4-6-0:0:0
"/var/log/apache2/pikapaf/www.audrey-et-arnaud.org/error.log" 2009-1-5-8:0:0
"/var/log/apache2/finger/naboo.lespotos.com/error.log" 2014-1-4-13:23:13
"/var/log/apache2/duckcorp/projects-dev.duckcorp.org/error.log" 2011-1-25-8:0:0
"/var/log/apache2/finger/smarty.lespotos.com/error.log" 2015-8-17-6:25:33
"/var/log/postgresql/postgresql-8.2-main.log" 2007-10-28-0:0:0
"/var/log/owncloud.log" 2017-2-1-6:25:9
"/var/log/apache2/pikapaf/photos.audrey-et-arnaud.org/access.log" 2009-2-20-8:0:0
"/var/log/apache2/duckcorp/webstats.duckcorp.org/access.log" 2014-7-16-6:25:3
"/var/log/fail2ban.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/ckh.fingerbox.net/access.log" 2015-8-17-6:25:33
"/var/log/apache2/guihome/archives-clap.guihome.net/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/doc.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/hurdfr/blogs.hurdfr.org/access.log" 2014-2-16-13:26:5
"/var/log/redmine/dc/production.log" 2017-4-20-6:25:32
"/var/log/apache2/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/db.duckcorp.org/error.log" 2017-2-27-6:25:11
"/var/log/apache2/duckcorp/users.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/mysql/error.log" 2014-5-2-6:0:0
"/var/log/mysql/mysql.log" 2007-8-17-0:0:0
"/var/log/apache2/suexec.log" 2017-4-17-6:25:12
"/var/log/apache2/hurdfr/planet.hurdfr.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/duckcorp/webmail.duckcorp.org/error.log" 2008-6-22-0:0:0
"/var/log/apache2/damien/www.fensalir.fr/error.log" 2017-4-17-6:25:12
"/var/log/apache2/damien/www.aldaaron.fr/access.log" 2017-4-17-6:25:12
"/var/log/atop/dummy_after" 2007-8-14-0:0:0
"/var/log/apache2/milkypond/chitchat.milkypond.org/error.log" 2017-1-22-6:25:16
"/var/log/apache2/clawfire/www.clawfire.net/error.log" 2014-1-5-6:25:46
"/var/log/apache2/duckcorp/forum.duckcorp.org/access.log" 2010-10-14-0:0:0
"/var/log/apache2/duckcorp/admin.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duck/wikipf.duckcorp.org/access.log" 2013-1-10-8:0:0
"/var/log/mailman/post" 2007-10-28-0:0:0
"/var/log/zabbix-agent/zabbix_agentd.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/mushdoom.lespotos.com/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/sources.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/radio.duckcorp.org/error.log" 2014-12-12-6:25:18
"/var/log/apache2/duckcorp/yubiauth.duckcorp.org/error.log" 2014-1-4-13:23:13
"/var/log/proftpd/xferlog" 2017-4-1-6:25:27
"/var/log/mail.info" 2015-10-11-6:25:47
"/var/log/apache2/duckcorp/rcs-arch.duckcorp.org/error.log" 2009-3-2-8:0:0
"/var/log/apache2/duckcorp/ca.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/milkypond/irconweb.milkypond.org/error.log" 2016-11-30-6:25:7
"/var/log/bacula/log" 2008-8-21-0:0:0
"/var/log/apache2/finger/smarty.lespotos.com/access.log" 2015-8-17-6:25:33
"/var/log/proftpd/xferreport" 2009-3-31-0:0:0
"/var/log/apache2/andesi/www.andesi.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/arnau/wotomae.debian.net/error.log" 2013-6-19-0:0:0
"/var/log/apache2/andesi/forum.andesi.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duck/ga.duckcorp.org/access.log" 2014-1-4-13:23:13
"/var/log/apache2/georgesleyeti/albums.georgesleyeti.fr/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/vcs-arch-viewer.duckcorp.org/error.log" 2014-1-24-6:0:0
"/var/log/apache2/finger/pyro.lespotos.com/access.log" 2017-4-17-6:25:12
"/var/log/mysql/mysql-slow.log" 2017-4-20-6:25:32
"/var/log/apache2/duckcorp/test.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/perso.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/kern.log" 2017-4-18-6:25:12
"/var/log/apache2/duckcorp/wiki.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/arnau/projects.mini-dweeb.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/rcs-git.duckcorp.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/happypeng/midtalk.happypeng.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/www.lespotos.com/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/db.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/arnau/www.mini-dweeb.org/error.log" 2017-4-17-6:25:12
"/var/log/atop/dummy_before" 2007-8-14-0:0:0
"/var/log/apache2/duckcorp/webdesk.duckcorp.org/access.log" 2008-6-22-0:0:0
"/var/log/apache2/guihome/archives.clap-ensea.org/error.log" 2012-11-7-8:0:0
"/var/log/apt/term.log" 2017-4-1-6:25:27
"/var/log/apache2/hurdfr/perso.hurdfr.org/error.log" 2014-5-18-6:25:6
"/var/log/clamav/freshclam.log" 2017-4-17-6:25:12
"/var/log/apache2/hurdfr/blogs.hurdfr.org/error.log" 2014-2-16-13:26:5
"/var/log/apache2/duckcorp/webstats.duckcorp.org/error.log" 2014-7-16-6:25:3
"/var/log/apache2/david/www.rammstein-musik.com/error.log" 2008-6-22-0:0:0
"/var/log/apache2/damien/alt.oxmoz.eu/access.log" 2014-1-4-13:23:13
"/var/log/mail.err" 2016-8-19-18:28:24
"/var/log/apache2/hurdfr/wiki.hurdfr.org/access.log" 2015-8-27-6:25:11
"/var/log/apache2/gorou/wiki.tetramorphe.org/error.log" 2013-5-19-0:0:0
"/var/log/apache2/duckcorp/photos.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/ufwi/www.ufwi.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/sup.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/happypeng/midtalk.happypeng.org/access.log" 2017-4-17-6:25:12
"/var/log/mailman/fromusenet" 2007-8-31-0:0:0
"/var/log/icecast2/access.log" 2014-3-10-6:25:10
"/var/log/tor/*log" 2008-5-14-0:0:0
"/var/log/apache2/arnau/wotomae.debian.net/access.log" 2013-6-19-0:0:0
"/var/log/apache2/duckcorp/repository.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/andesi/dev.andesi.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/galerie.fingerbox.net/access.log" 2015-8-17-6:25:33
"/var/log/apache2/georgesleyeti/www.xn--mah-dma.net/error.log" 2017-4-17-6:25:12
"/var/log/tor/log" 2012-10-3-0:0:0
"/var/log/apache2/duckcorp/dico.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/www.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/alternatives.log" 2017-4-1-6:25:27
"/var/log/btmp" 2017-4-1-6:25:27
"/var/log/apache2/finger/www.clan-hnk.com/error.log" 2017-4-17-6:25:12
"/var/log/apache2/duck/jdr.duckcorp.org/access.log" 2015-10-18-6:25:12
"/var/log/apache2/guihome/webcam.guihome.net/access.log" 2014-1-4-13:23:13
"/var/log/mailman/locks" 2007-8-31-0:0:0
"/var/log/redmine/md/production.log" 2017-4-20-6:25:32
"/var/log/apt/history.log" 2017-4-1-6:25:27
"/var/log/clamav/clamav.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/dico.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/milkypond/irconweb-ng.milkypond.org/access.log" 2011-9-27-0:0:0
"/var/log/apache2/duckcorp/www.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/andesi/dev.andesi.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/galerie.fingerbox.net/error.log" 2011-9-11-0:0:0
"/var/log/icecast2/error.log" 2014-3-10-6:25:10
"/var/log/apache2/pikachu/www.audrey-et-arnaud.org/access.log" 2014-1-4-13:23:13
"/var/log/apache2/duckcorp/smokeping.duckcorp.org/error.log" 2014-3-12-6:25:4
"/var/log/clamav-unofficial-sigs.log" 2017-4-17-6:25:12
"/var/log/apache2/guihome/www.collectioneuro.eu/error.log" 2017-3-30-6:0:0
"/var/log/apache2/andesi/www.andesi.org/error.log" 2017-4-17-6:25:12
"/var/log/messages" 2017-4-17-6:25:12
"/var/log/apache2/damien/www.fensalir.fr/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/vcs-arch.duckcorp.org/error.log" 2014-1-24-6:0:0
"/var/log/apache2/duckcorp/spamfilter.duckcorp.org/access.log" 2008-6-22-0:0:0
"/var/log/apache2/duck/admin-nerim.duckcorp.org/access.log" 2011-8-7-0:0:0
"/var/log/apache2/duckcorp/vcs-git.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/gorou/wiki.tetramorphe.org/access.log" 2013-5-26-0:0:0
"/var/log/apache2/guihome/archives-clap.guihome.net/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/ddns.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/pikapaf/www.audrey-et-arnaud.org/access.log" 2009-1-19-8:0:0
"/var/log/apache2/duckcorp/sources.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/guihome/archives.clap-ensea.org/access.log" 2012-11-7-8:0:0
"/var/log/apache2/duckcorp/toushirou.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/debian.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/ulog/syslogemu.log" 2017-4-17-6:25:12
"/var/log/apache2/finger/www.clan-hnk.com/access.log" 2017-4-17-6:25:12
"/var/log/apache2/georgesleyeti/albums.georgesleyeti.fr/access.log" 2017-4-17-6:25:12
"/var/log/apache2/happypeng/live.happypeng.org/error.log" 2010-12-4-8:0:0
"/var/log/apache2/milkypond/irconweb-ng.milkypond.org/error.log" 2011-11-22-8:0:0
"/var/log/apache2/duckcorp/webstats-ng.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/hurdfr/planet.hurdfr.org/access.log" 2014-2-20-6:25:29
"/var/log/apache2/andesi/guide.andesi.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/duckcorp/sup.duckcorp.org/error.log" 2017-4-17-6:25:12
"/var/log/apache2/pikachu/www.audrey-et-arnaud.org/error.log" 2014-1-4-13:23:13
"/var/log/apache2/duck/admin-nerim.duckcorp.org/error.log" 2011-8-7-0:0:0
"/var/log/apache2/duckcorp/vcs-git.duckcorp.org/access.log" 2017-4-17-6:25:12
"/var/log/apache2/gorou/www.tetramorphe.org/access.log" 2013-5-19-0:0:0
"/var/log/apache2/duckcorp/photos-ng.duckcorp.org/error.log" 2014-9-28-6:25:24
"/var/log/apache2/duckcorp/webmail.duckcorp.org/access.log" 2008-6-22-0:0:0
"/var/log/apache2/gorou/www.tetramorphe.org/error.log" 2013-5-19-0:0:0
"/var/log/dpkg.log" 2017-4-1-6:25:27
"/var/log/scrollkeeper.log" 2011-6-5-0:0:0
"/var/log/mailman/error" 2007-10-28-0:0:0


Subtasks

Bug #524: Toushirou: /var/log/proftpd/tls.log not rotatedResolvedPierre-Louis Bonicoli

Actions
Bug #525: Toushirou: /var/log/apache2/* remove delaycompressResolvedPierre-Louis Bonicoli

Actions

History

#1

Updated by Pierre-Louis Bonicoli over 2 years ago

In order to understand the problem, --verbose switch was added in /etc/cron.daily/logrotate but output of cron tasks aren't logged.

I updated the logrotate command in /etc/cron.daily/logrotate:

/usr/sbin/logrotate --verbose /etc/logrotate.conf &> /var/log/logrotate.log

We will need to check the logfile after 2017-5-14-6:25:14:

grep stuff.*access /var/lib/logrotate/status
"/var/log/apache2/milkypond/stuff.milkypond.org/access.log" 2017-5-7-6:25:14

Consequently to some manual tests (modification of datetime in /var/lib/logrotate/status for the following entry), /var/log/apache2/milkypond/stuff.milkypond.org/error.log has been rotated.

#2

Updated by Pierre-Louis Bonicoli over 2 years ago

Here are the logs:

rotating log /var/log/apache2/andesi/dev.andesi.org/access.log, log->rotateCount is 26
dateext suffix '-20170528'
glob pattern '-[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
compressing log with: /bin/gzip
error: error creating output file /var/log/apache2/andesi/dev.andesi.org/access.log.1.gz: File exists
log /var/log/apache2/andesi/dev.andesi.org/access.log.27.gz doesn't exist -- won't try to dispose of it
rotating log /var/log/apache2/andesi/dev.andesi.org/error.log, log->rotateCount is 26

#3

Updated by Pierre-Louis Bonicoli over 2 years ago

Seems related to #734688 which is fixed in Stretch (3.11.0-0.1).

#4

Updated by Pierre-Louis Bonicoli over 2 years ago

Discussed with Duck: all logs older than 1 year can be removed.

Marc Dequènes: is the following definition of files to delete ok with you (it is ~250Mo):

find /var/log/ -type f -not -newermt 2016-06-01
#5

Updated by Marc Dequènes over 2 years ago

  • Status changed from New to In Progress

I guess this issue affects all servers, so I would suggest to compute the list on all of them (and rename this BR accordingly).

This considered, based on your command I would add this list of questions/exceptions (after checking on all hosts):
  • /var/log/dmesg: seems deprecated, the dmesg command do not read it anyway so I guess it's useless
  • /var/log/mcelog: we should probably keep it
  • /var/log/lpr.log: same, unless we decide to disable this (useless) logging in rsyslog
  • /var/log/ratbox-services; these are never rotated, which is bad, but they take a negligible space so I would like to keep them (until this IRCd is replaced, see #464)
  • /var/log/installer: history to keep
  • /var/log/memcached.log: keep (does not seem rotated)
  • /var/log/tw_mgmt.log: keep (not rotated)
  • /var/log/apache2/duckcorp/myip.duckcorp.org/error.log: keep
  • /var/log/fsck: keep
  • /var/log/mip6d.log: keep
  • /var/log/boot: keep
  • /var/log/dbconfig-common: keep
  • /var/log/faillog: keep

As some .log Apache files are removed, we should not forget to restart the service to be sure new files are created.

#6

Updated by Pierre-Louis Bonicoli over 2 years ago

It seems this issue affects only Toushirou: it seems that's the repercussion of multiple bugs in logrotate. The first bug occurred when the filesystem was full.

Before cleaning:

/dev/mapper/main-logs        9.8G  4.6G  4.7G  50% /var/log

After:
/dev/mapper/main-logs        9.8G  4.4G  4.9G  48% /var/log

  • Removed:
    • /var/log/dmesg
    • /var/log/ykksm.log (was empty)
    • /var/log/uucp.log (was empty)
    • /var/log/syslog.9.gz
    • /var/log/scrollkeeper.log.{1,2}
    • /var/log/rkhunter.log.old
    • /var/log/pyoto/pyoto.log (Mar 16 2015)
    • /var/log/proftpd/xferreport.*
    • /var/log/proftpd/xferlog.log.{0,2,3,4,5}
    • /var/log/proftpd/proftpd.log.{0,2,3,4,5}
    • /var/log/proftpd/controls.log.0
    • /var/log/proftpd/controls.log.{3,4,5,6,7}.gz
    • /var/log/news/news.{crit,err,notice} (were empty)
    • /var/log/named/security.log.{1,2} (2012)
    • /var/log/mysql.log.*.gz (2015)
    • /var/log/mip6d.log (2015)
    • /var/log/messages.{6,7}.gz (2008)
    • /var/log/mysql.log.*.gz (2015)
    • /var/log/mail.{log,warn}.{6,7}.gz (2015)
    • /var/log/mail.err.1 (8 Apr 2016)
    • /var/log/mail.err.{2,3,4,6}.gz
    • /var/log/kern.log.{6,7}.gz (2008)
    • /var/log/imapproxy_protocol.log (emtpy, 2010)
    • /var/log/dpkg.log.12.gz
    • /var/log/dico/access.log{,.1.gz,.2.gz,.3.gz} (2014)
    • /var/log/debug.{6,7}.gz (2009)
    • /var/log/daemon.log.{8,9}.gz (2009)
    • /var/log/auth.log.{8,9}.gz (2009)
    • /var/log/atop.log* (2012)
    • /var/log/apache2/xaiki/www.evilgiggle.com/* (2015)
    • /var/log/apache2/valfor/mariage-cecile-yann.duckcorp.org/* (2014)
    • /var/log/apache2/ufwi/www.ufwi.org/{access,error}.log.27.gz
    • /var/log/apache2/suexec.log.* (Mar 2016)
    • /var/log/apache2/pikachu/www.audrey-et-arnaud.org/* (2014)
    • /var/log/apache2/pikachu/photos.audrey-et-arnaud.org/* (2015)
    • /var/log/apache2/milkypond/webphone.milkypond.org/error.* (2015)
    • /var/log/apache2/other_vhosts_access.log (empty, 2008)
    • /var/log/apache2/milkypond/tribioune.milkypond.org/{access,error}.log.27.gz
    • /var/log/apache2/milkypond/irconweb.milkypond.org/access.log.27.gz
    • /var/log/apache2/milkypond/ffsync.milkypond.org/* (2012)
    • /var/log/apache2/milkypond/bip.milkypond.org/{access,error}.log.27.gz
    • /var/log/apache2/laura/www.laurafontaine.fr/{access,error}.log.27.gz
    • /var/log/apache2/access.log (empty, 2007)
    • /var/log/apache2/access.log.1 (2007)
    • /var/log/apache2/other_vhosts_access.log (emtpy, 2008)
    • /var/log/apache2/happypeng/nihon.happypeng.org/{access,error}.log.27.gz
    • /var/log/apache2/happypeng/midtalk.happypeng.org/{error,access}.log.27.gz
    • /var/log/apache2/georgesleyeti/www.xn--mah-dma.net/{error,access}.log.27.gz
    • /var/log/apache2/georgesleyeti/www.georgesleyeti.fr/{error,access}.log.27.gz
    • /var/log/apache2/georgesleyeti/albums.georgesleyeti.fr/{error,access}.log.27.gz
    • /var/log/apache2/duckcorp/debian.duckcorp.org/access.log.27.gz
    • /var/log/apache2/guihome/video.guihome.net/{error,access}.log.27.gz
    • /var/log/apache2/guihome/photos.guihome.net/{error,access}.log.27.gz
    • /var/log/apache2/guihome/archives.guihome.net/{error,access}.log.27.gz
    • /var/log/apache2/guihome/archives-clap.guihome.net/{access,error}.log.27.gz
    • /var/log/apache2/finger/www.lespotos.com/{error,access}.log.27.gz
    • /var/log/apache2/finger/www.clan-hnk.com/{error,access}.log.27.gz
    • /var/log/apache2/finger/pyro.lespotos.com/{access,error}.log.27.gz
    • /var/log/apache2/finger/mushdoom.lespotos.com/{error,access}.log.27.gz
    • /var/log/apache2/duckcorp/{www,wiki}.duckcorp.org/{error,access}.log.27.gz
    • /var/log/apache2/andesi/dev.andesi.org/error.log.27.gz
    • /var/log/apache2/andesi/dpt.andesi.org/access.log.27.gz
    • /var/log/apache2/arnau/unagi.mini-dweeb.org/access.log.27.gz
    • /var/log/apache2/andesi/{guide,www,forum}.andesi.org/{error,access}.log.27.gz
    • /var/log/apache2/arnau/projects.mini-dweeb.org/{access,error}.log.27.gz
    • /var/log/apache2/arnau/www.mini-dweeb.org/{access,error}.log.27.gz
    • /var/log/apache2/damien/www.aldaaron.fr/access.log.27.gz
    • /var/log/apache2/damien/{debian,dleone}.fensalir.fr/{access,error}.log.27.gz
    • /var/log/apache2/damien/www.fensalir.fr/{error,access}.log.27.gz
    • /var/log/apache2/duckcorp/ca.duckcorp.org/{error,access}.log.27.gz
    • /var/log/apache2/duckcorp/admin.duckcorp.org/access.log.27.gz
    • /var/log/apache2/duckcorp/cdbs-doc.duckcorp.org/{access,error}.log.27.gz
    • /var/log/apache2/duckcorp/db.duckcorp.org/access.log.27.gz
    • /var/log/apache2/duckcorp/{ddns,codereview}.duckcorp.org/{access,error}.log.27.gz
    • /var/log/apache2/duckcorp/{doc,dico,gossip,perso,photos,projects,repository}.duckcorp.org/{access,error}.log.27.gz
    • /var/log/apache2/duckcorp/radio.duckcorp.org/access.log.27.gz
    • /var/log/apache2/duckcorp/myip.duckcorp.org/access.log.27.gz
    • /var/log/apache2/duckcorp/{sup,sources}.duckcorp.org/{access,error}.log.27.gz
    • /var/log/apache2/duckcorp/test.duckcorp.org/access.log.27.gz
    • /var/log/apache2/duckcorp/thoughts.duckcorp.org/access.log.27.gz
    • /var/log/apache2/duckcorp/toushirou.duckcorp.org/{error,access}.log.27.gz
    • /var/log/apache2/duckcorp/{users,vcs,vcs-git,vcs-git-viewer,webstats-ng}.duckcorp.org/{access,error}.log.27.gz
  • Kept:
    • /var/log/apache2/duckcorp/myip.duckcorp.org/error.log: keep
    • /var/log/boot: keep
    • /var/log/dbconfig-common: keep
    • /var/log/faillog: keep
    • /var/log/fsck: keep
    • /var/log/installer: history to keep
    • /var/log/lpr.log: same, unless we decide to disable this (useless) logging in rsyslog
    • /var/log/mcelog: we should probably keep it
    • /var/log/memcached.log: keep (does not seem rotated)
    • /var/log/mip6d.log: keep
    • /var/log/ratbox-services; these are never rotated, which is bad, but they take a negligible space so I would like to keep them (until this IRCd is replaced, see #464)
  • Removed by mystake:
    • /var/log/tw_mgmt.log
#7

Updated by Pierre-Louis Bonicoli over 2 years ago

I removed this unused file too: /etc/logrotate.d/ykksm.

I need to check after Sunday if /var/log/apache2/duckcorp/www.duckcorp.org/access.log has been rotated. Currently /var/lib/logrotate/status contains "/var/log/apache2/duckcorp/www.duckcorp.org/access.log" 2017-5-28-6:25:14.

#8

Updated by Pierre-Louis Bonicoli over 2 years ago

Nothing change, I just removed two empty files. According to #734688, they could prevent rotation of logs.

$ find /var/log/apache2/ -size 0 -iname "*.gz" 
/var/log/apache2/andesi/dev.andesi.org/access.log.1.gz
/var/log/apache2/error.log.1.gz

$ ls -l /var/log/apache2/andesi/dev.andesi.org/access.log.1.gz /var/log/apache2/error.log.1.gz
-rw-r----- 1 root adm 0 May 24  2016 /var/log/apache2/andesi/dev.andesi.org/access.log.1.gz
-rw-r----- 1 root adm 0 May 24  2016 /var/log/apache2/error.log.1.gz
#9

Updated by Pierre-Louis Bonicoli over 2 years ago

  • Status changed from In Progress to Resolved

The previous deletion of empty .gz files solved this problem:

# extract from /var/log/logrotate.log
creating new /var/log/apache2/duckcorp/www.duckcorp.org/access.log mode = 0640 uid = 0 gid = 4
renaming /var/log/apache2/duckcorp/www.duckcorp.org/error.log to /var/log/apache2/duckcorp/www.duckcorp.org/error.log.1

# grep www.duckcorp.org.*acc /var/lib/logrotate/status
"/var/log/apache2/duckcorp/www.duckcorp.org/access.log" 2017-6-19-6:25:5
# ls -l  /var/log/apache2/duckcorp/www.duckcorp.org/access.log*
-rw-r----- 1 root adm    17373 Jun 19 10:35 /var/log/apache2/duckcorp/www.duckcorp.org/access.log
-rw-r----- 1 root adm 60940198 Jun 19 06:24 /var/log/apache2/duckcorp/www.duckcorp.org/access.log.1

Debug command/switch has been removed from /etc/cron.daily/logrotate.

Also available in: Atom PDF