logrotate error for empty mysql logs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
logrotate (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: logrotate
Logrotate generates the error:
"error: error running shared postrotate script for '/var/log/mysql.log /var/log/
when run with mysql-server-core (5.1) installed. This condition also generates error e-Mail.
logrotate behaviour:
$ cd /etc/logrotate.d
$ sudo logrotate -f mysql-server
error: error running shared postrotate script for '/var/log/mysql.log /var/log/
Expected behaviour: Zero-length log files do not cause error alerts.
Affected versions:
Kubuntu 9.10 (Upgraded sequentially from 6.04 over the past several years.)
logrotate 3.7,8.4ubuntu1
mysql-server-core 5.1.37-1ubuntu
Possible cause (1):
/var/log/mysql.log has zero length.
$ ls -laF /var/log/mysql.*
-rw-r----- 1 mysql adm 0 2009-11-20 02:30 /var/log/mysql.err
-rw-r----- 1 mysql adm 0 2009-11-30 22:37 /var/log/mysql.log
-rw-r----- 1 mysql adm 0 2009-11-30 07:43 /var/log/
-rw-r----- 1 mysql adm 20 2009-11-23 08:00 /var/log/
Possible cause (2):
debian.cnf is malformed. // Passwords excised from output below. The two instances are identical.
$ sudo more /etc/mysql/
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = [excised]
socket = /var/run/
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = [excised]
socket = /var/run/
Possible cause (3):
auditing is interfering with mysqld.
$ sudo service mysql restart
* Stopping MySQL database server mysqld [ OK ]
* Starting MySQL database server mysqld [fail]
fuzzy@client000
Nov 30 22:52:39 client0004 kernel: [593992.220673] type=1502 audit(125964315
[8 duplicate messages elided]
Nov 30 22:52:42 client0004 kernel: [593995.294992] type=1502 audit(125964316
ProblemType: Bug
Architecture: amd64
Date: Mon Nov 30 22:38:09 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelMo
Package: logrotate 3.7.8-4ubuntu1
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
ProcVersionSign
SourcePackage: logrotate
Uname: Linux 2.6.31-15-generic x86_64
XsessionErrors:
(polkit-
(npviewer.
Changed in logrotate (Ubuntu): | |
status: | New → Confirmed |