[MDEV-11841] mysqld_safe_helper: Can't create/write to file '/var/log/mysqld.log' Created: 2017-01-19 Updated: 2017-01-19 Resolved: 2017-01-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients, Server |
| Affects Version/s: | 10.0.29 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | George L | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
|
||
| Description |
|
Latest MariaDB 10.0.29 Yum install via mariadb official yum repo for CentOS 6.8 64bit is giving folks issues when log-error is set in /etc/my.cnf. MariaDB 10.0.28 and below didn't have such issues.
|
| Comments |
| Comment by George L [ 2017-01-19 ] | ||||||||||||
|
seems affects MariaDB 10.1.21 on CentOS 6.8 64bit but CentOS 7.3 64bit seems fine
| ||||||||||||
| Comment by Sergei Golubchik [ 2017-01-19 ] | ||||||||||||
|
What are permissions and the ownership of your /var/log/mysqld.log? I suspect it's only user-writable, owned by root. It kind of used to work before, because mysqld_safe was doing chown for you, but arbitrarily chown-ing files is dangerous, there was a bunch of security issues recently related to that (see https://mariadb.com/kb/en/mariadb-10029-release-notes/). Now you need to make sure that mysqld is able to access all files you want it to access. | ||||||||||||
| Comment by George L [ 2017-01-19 ] | ||||||||||||
|
yeah before /var/log/mysqld.log would have mysql:root user/group but now the file /var/log/mysqld.log doesn't exist at all as mariadb server can't create it anymore | ||||||||||||
| Comment by Sergei Golubchik [ 2017-01-19 ] | ||||||||||||
|
Exactly. So, you need to create this file with correct ownership and privileges. | ||||||||||||
| Comment by George L [ 2017-01-19 ] | ||||||||||||
|
Thanks Sergei |