← Back to team overview

touch-packages team mailing list archive

[Bug 1385537] Re: logrotate does not rotate logs (rsyslog)

 

cf. #1258202 and #1278193 about owning group, here:
$ ls -ld /var/log
drwxrwxr-x 1 root fuse 4096 Okt 25 02:16 /var/log

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to logrotate in Ubuntu.
https://bugs.launchpad.net/bugs/1385537

Title:
  logrotate does not rotate logs (rsyslog)

Status in “logrotate” package in Ubuntu:
  New

Bug description:
  (Expected: auth.log, kern.log, syslog rotated "daily"/"weakly"
  according to /etd/..., actually: no rotation even after weeks; and
  manual forcing may fail.)

  Being concerned about the amount of GBs that a Lubuntu persistent
  installation on a USB flash drive may write per day, I observed that
  auth.log, kern.log, and syslog grow to many MB. They may get about
  1000 entries a day, resulting in many GB load for the USB drive per
  day. I learnt about logrotate and rsyslog and modified
  /etc/logrotate.conf and /etc/logrotate.d/rsyslog. Yet none had any
  effect.

  I have kept USB installations of Lubuntu 14.04.1 in parallel and saved
  them after some days, so I could report about a number of experiments.
  E.g., I started 2014-08-31, and I have a snapshot from 2014-09-22
  where I had not changed /etc/logrotate.conf, neither
  /etc/logrotate.d/rsyslog ("daily", "weekly"), and the three files
  still have the entries from 2014-08-31, although three "weeks" had
  passed.

  #51879 (2006) and #1278193 (Feb 2014) are very similar, however:
  * I observed growing kern.log and syslog to more than 100MB (to "out of memory" finally) in some installations in summer 2013; in later installations the same year and before 14.04, the problem vanished (I watched the sizes manually/regularly – difference to #51879: after 2006, problem recurred, vanished, recurred).
  * With Lubuntu 14.04.1 recently, I changed "weekly" into "daily" in /etc/logratate.conf and in /etc/logrotate.d/rsyslog, but three days later auth.log, kern.log, and syslog still had no older copies and still contained messages from the last three days. Then I did sudo logrotate-f /etc/logrotate.conf, which works, but still after another three days those three logs had not been rotated.

  Actually I also have tried sudo logrotate -f /etc/logrotate.d/rsyslog,
  and the result has been exactly as #1258202 (2013). As opposed to the
  latter report and that for #1278193, I am unable to guess from which
  changes the problems might have resulted.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: logrotate 3.8.7-1ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4
  Uname: Linux 3.13.0-32-generic i686
  ApportVersion: 2.14.1-0ubuntu3.2
  Architecture: i386
  CasperVersion: 1.340
  CurrentDesktop: LXDE
  Date: Sat Oct 25 01:02:40 2014
  LiveMediaBuild: Lubuntu 14.04.1 LTS "Trusty Tahr" - Release i386 (20140722.2)
  SourcePackage: logrotate
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/logrotate/+bug/1385537/+subscriptions


References