The proposed change added under https://launchpad.net/~ci-train-ppa-
service/+archive/ubuntu/2623 seems to have resolved my issue.

Before the change I received an email stating:
/etc/cron.daily/logrotate:
error: error creating output file /var/log/apt-cacher-ng/apt-cacher.err.1.gz: 
File exists
error: error creating output file /var/log/auth.log.1.gz: File exists
run-parts: /etc/cron.daily/logrotate exited with return code 1

After applying the change I have received an email stating: 
/etc/cron.daily/logrotate:
error: destination /var/log/apt-cacher-ng/apt-cacher.err.1.gz already exists, 
renaming to /var/log/apt-cacher-ng/apt-cacher.err.1.gz-2017040406.backup

I can also see what looks like a normal pattern of file names a modification 
dates:
$ ls -l /var/log/apt-cacher-ng/
total 25772
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng        0 Apr  4 06:26 apt-cacher.err
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng      297 Mar 31 13:40 apt-cacher.err.1
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng        0 Mar 31 06:26 
apt-cacher.err.1.gz-2017040406.backup
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng       20 Mar 29 06:25 
apt-cacher.err.2.gz
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng      190 Mar 29 01:53 
apt-cacher.err.3.gz
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng       20 Mar 27 06:25 
apt-cacher.err.4.gz
-rw-r--r-- 1 apt-cacher-ng apt-cacher-ng       20 Mar 26 06:25 
apt-cacher.err.5.gz
...

Hopefully I will receive no email overnight tonight and log rotations
will proceed as intended.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1630516

Title:
  Logrotate doesn't clean old system logs, allowing them to fill the
  disk

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1630516/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to