[MDEV-17710] "unknown error" with FLUSH LOGS if log directory is not writeable Created: 2018-11-14 Updated: 2019-05-07 Resolved: 2019-05-07 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.3.9 |
| Fix Version/s: | 10.3.15, 10.4.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Hartmut Holzgraefe | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This actually only happens on log rotation, not on simple flush with the log file(s) still in place. When doing a log rotate by first renaming the log file, then calling FLUSH LOGS, the open() call by flush actually needs to re-create the log file under its own name, and that rightfully fails if the mysql user does not have write permission on the directory. The problem though is that it just reports "Unknown error" instead of "Can't create logfile $path" plus the correct error code, e.g. "errno 13: permission denied" How to reproduce:
|
| Comments |
| Comment by Hartmut Holzgraefe [ 2018-11-14 ] |
|
See also e.g.: https://lists.launchpad.net/maria-discuss/msg04421.html |