[debian-mysql] Bug#622119: Bug#622119: mysql-server:	logrotatescript fails, nothing to do
    Bjoern Boschman 
    bjoern at boschman.de
       
    Wed May 22 17:44:38 UTC 2013
    
    
  
Hi,
the problem comes from mysqladmin flush-logs
that logs have the wrong owner
this is somehow done wrong by the safe_mysqld script
this script reads my.cnf, identifies error_log and creates it as user root
solution:
chown them as user mysql
Cheers
B
Am 21.05.2013 18:01, schrieb Fabián Bonetti:
> Package: mysql-server-core-5.5
> Version: 5.5.31+dfsg-0+wheezy1
> Followup-For: Bug #622119
> 
> /etc/cron.daily/logrotate:
> ^G/usr/bin/mysqladmin: refresh failed; error: 'Unknown error'
> error: error running shared postrotate script for '/var/log/mysql.log /var/log/mysql/log-slow-queries.log '
> run-parts: /etc/cron.daily/logrotate exited with return code 1
> 
> 
> -- System Information:
> Debian Release: 7.0
>   APT prefers stable-updates
>   APT policy: (500, 'stable-updates'), (500, 'stable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 3.2.0-4-686-pae (SMP w/2 CPU cores)
> Locale: LANG=es_AR.UTF-8, LC_CTYPE=es_AR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages mysql-server-core-5.5 depends on:
> ii  libaio1     0.3.109-3
> ii  libc6       2.13-38
> ii  libgcc1     1:4.7.2-5
> ii  libstdc++6  4.7.2-5
> ii  libwrap0    7.6.q-24
> ii  zlib1g      1:1.2.7.dfsg-13
> 
> mysql-server-core-5.5 recommends no packages.
> 
> mysql-server-core-5.5 suggests no packages.
> 
> -- no debconf information
> 
> _______________________________________________
> pkg-mysql-maint mailing list
> pkg-mysql-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-mysql-maint
> 
    
    
More information about the pkg-mysql-maint
mailing list