[MDEV-4728] MariaDB can't start while bootup Created: 2013-06-28 Updated: 2014-07-15 Resolved: 2014-07-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.29-galera |
| Fix Version/s: | 5.5.39-galera, 10.0.13-galera |
| Type: | Bug | Priority: | Minor |
| Reporter: | Yuanjun.Li | Assignee: | Nirbhay Choubey (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | galera | ||
| Environment: |
centos 6.4 amd64 |
||
| Description |
|
Start it from command:
And it will NOT never create sub process with mysqld , the status is shown as below:
HOW TO FIX IT:
to fix it:
|
| Comments |
| Comment by Elena Stepanova [ 2013-06-28 ] | ||||||||||||||||||||||||||||
|
Hi, I agree there is a potential problem, but I'm not sure about your solution. You put CentOS 6.4 in the environment field. What does your /bin/sh point at? In my (more or less default) installation of CentOS 6.4 it points at bash, of version 4.1.2, which seems to be equally happy about either "=" or "==". At the same time, on Ubuntu 12.04 /bin/sh points at dash; and it accepts "=", although it doesn't work correctly (hence the problem), but with "==" it complains about a syntax error. So,
./1.sh [ "$EUID" = "0" ] && echo "My EUID with =: $EUID" make it executable and execute twice, first time as a normal non-root user, and then under sudo, and paste the output. Thanks. | ||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2013-06-28 ] | ||||||||||||||||||||||||||||
|
It turns out that the '=' comparison in dash also works correctly, the problem is that EUID is not defined in dash, hence the comparison with 0 is always false. This problem has been fixed in the current tree by defining a local euid as But the comparison is still '=', so the question above about your shell version (which understands '==' but not '=') becomes even more important. | ||||||||||||||||||||||||||||
| Comment by Yuanjun.Li [ 2013-07-01 ] | ||||||||||||||||||||||||||||
|
Here are some test outputs:
And this is my fault, I think it's a supervisor bug, or weird behavior of 'mktemp', see following code:
if wr_logfile is empty, and the 'grep' command will hang everything, but in normal shell, mktemp can NOT failed, so it's weird
| ||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2013-07-03 ] | ||||||||||||||||||||||||||||
|
Hi Seppo, See the suggestion above about making wsrep-related logic in mysqld_safe.sh slightly safer. | ||||||||||||||||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-07-15 ] | ||||||||||||||||||||||||||||
|
http://bazaar.launchpad.net/~maria-captains/maria/maria-5.5-galera/revision/3511 | ||||||||||||||||||||||||||||
| Comment by Yuanjun.Li [ 2014-07-15 ] | ||||||||||||||||||||||||||||
|
Nice! |