Redundant log files in /var/log, Deb pacakges

Bug #1025532 reported by Volans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Server moved to https://jira.percona.com/projects/PS
Invalid
Undecided
Unassigned
5.1
Invalid
Undecided
Unassigned
5.5
Triaged
Medium
Unassigned
5.6
Invalid
Undecided
Unassigned

Bug Description

Installing Percona Server 5.5 from the APT repository, some redundant log files in /var/log are created:

 * /var/log/mysql.err
 * /var/log/mysql.log

while the ones used are in /var/log/mysql/

Moreover the Logrotate script included in the packages search for all those files:

 * /var/log/mysql.log
 * /var/log/mysql/mysql.log
 * /var/log/mysql/mysql-slow.log

So the unused /var/log/mysql.log is also rotaded on a daily basis, whyle the unused /var/log/mysql.err will not.

I suggest to remove both those file from a fresh installation and remove the /var/log/mysql.log path from the Logrotate script.

Tags: pkg
Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

Verified with recent 5.5 on Ubuntu 12.04.

Changed in percona-server:
status: New → Confirmed
Changed in percona-server:
importance: Undecided → Medium
assignee: nobody → Ignacio Nin (ignacio-nin)
Stewart Smith (stewart)
Changed in percona-server:
status: Confirmed → Triaged
Stewart Smith (stewart)
Changed in percona-server:
assignee: Ignacio Nin (ignacio-nin) → nobody
tags: added: pkg
Revision history for this message
Valerii Kravchuk (valerii-kravchuk) wrote :

I do not see any /var/log files in recent 5.6 .deb packages for Ubuntu 13.04:

openxs@ao756:/tmp$ dpkg-deb -c percona-server-server-5.6_5.6.14-rel62.0-483.raring_amd64.deb | grep var
drwxr-xr-x root/root 0 2013-10-22 11:31 ./var/
drwxr-xr-x root/root 0 2013-10-22 11:31 ./var/run/
drwxr-xr-x root/root 0 2013-10-22 11:31 ./var/run/mysqld/
openxs@ao756:/tmp$ dpkg-deb -c percona-server-server-5.6_5.6.14-rel62.0-483.raring_amd64.deb | grep mysql.err
-rw-r--r-- root/root 504352 2013-10-22 11:00 ./usr/share/mysql/errmsg-utf8.txt
openxs@ao756:/tmp$

I don't see them in recent 5.1 .deb as well:

openxs@ao756:/tmp$ dpkg-deb -c percona-server-server-5.1_5.1.72-rel14.10-597.raring_amd64.deb | grep mysql.err
-rw-r--r-- root/root 416437 2013-10-25 10:45 ./usr/share/mysql/errmsg.txt
openxs@ao756:/tmp$ dpkg-deb -c percona-server-server-5.1_5.1.72-rel14.10-597.raring_amd64.deb | grep /var/log
openxs@ao756:/tmp$ dpkg-deb -c percona-server-server-5.1_5.1.72-rel14.10-597.raring_amd64.deb | grep /var/run
drwxr-xr-x root/root 0 2013-10-25 10:44 ./var/run/
drwxr-xr-x root/root 0 2013-10-25 10:44 ./var/run/mysqld/
openxs@ao756:/tmp$

Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PS-2778

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.