[MDEV-20863] debian logrotate errors Created: 2019-10-19 Updated: 2021-12-03 Resolved: 2021-12-03 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Platform Debian |
| Affects Version/s: | 10.3.18 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Trivial | |||
| Reporter: | RobJE | Assignee: | Otto Kekäläinen | |||
| Resolution: | Duplicate | Votes: | 1 | |||
| Labels: | None | |||||
| Environment: |
user@saihs:~$ uname -a
|
|||||
| Issue Links: |
|
||||||||
| Description |
|
When logrotate is done, an error email is generated
This is due to the command
generating multiple (in my case 3) output lines. Two of these are because pid-file is defines in /etc/mysql/my.cnf and in /etc/mysql/mariadb.conf.d/50-server.cnf. The fix implemented in Debian proper is to limit this output to 1 line using
. Please update logrotate script line to
|
| Comments |
| Comment by RobJE [ 2019-10-19 ] | ||
|
maybe a regression of | ||
| Comment by Pablo Catalina [ 2019-10-24 ] | ||
|
The fix implemented in Debian is not a proper solution, as the process will use the latest definition of a variable. So the 1st instance in /etc/mysql/my.cnf will be overwritten with the second instance in /etc/mysql/mariadb.conf.d/50-server.cnf. Or, potentially in other custom definitions of the variable. It is better to use:
| ||
| Comment by RobJE [ 2020-02-24 ] | ||
|
parameter -m1 limits grep output to one line. because of this the command
does not do much This would be a better solution:
| ||
| Comment by Otto Kekäläinen [ 2020-04-14 ] | ||
|
See https://github.com/MariaDB/server/pull/934 and https://salsa.debian.org/mariadb-team/mariadb-10.4/-/commit/143569f09de024e7e3c2fc82074012e0cbbcd207 or simply start using existing `support-files/mysql-log-rotate.sh` in Debian packages as well. | ||
| Comment by Otto Kekäläinen [ 2021-04-04 ] | ||
|
Superseded by https://github.com/MariaDB/server/pull/1556 and | ||
| Comment by Otto Kekäläinen [ 2021-12-03 ] | ||
|
This will be fixed via |