mysqld_safe on Ubuntu fails to find sysctl binary
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Percona Server moved to https://jira.percona.com/projects/PS | Status tracked in 5.7 | |||||
5.5 |
New
|
Undecided
|
Unassigned | |||
5.6 |
New
|
Undecided
|
Unassigned | |||
5.7 |
Triaged
|
Medium
|
Unassigned |
Bug Description
- Ubuntu trusty.
- Percona Server 5.7.17.
If --flush-caches is enabled, the service won't start with the following error:
sysctl command not found, required for --flush-caches
mysqld_safe try to find it in these places:
6632 stat("/
6632 stat("/
6632 stat("/bin/sysctl", 0x7ffde6c3e590) = -1 ENOENT (No such file or directory)
6632 stat("/
6632 stat("/
but it is on /sbin
The workarounds are:
1- Create a symbolic link:
# ln -s /sbin/sysctl /bin/sysctl
2- Add /sbin to mysqld_safe PATH. Edit /usr/bin/
PATH=$PATH:/sbin
mysqld_safe should be able to find the tool without users having to use those workarounds.
Changed in percona-server: | |
status: | New → Confirmed |
tags: | added: pkg |
Percona now uses JIRA for bug reports so this bug report is migrated to: https:/ /jira.percona. com/browse/ PS-1788