Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
5.5.29-galera
-
None
-
centos 6.4 amd64
Description
Start it from command:
/usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log
|
And it will NOT never create sub process with mysqld , the status is shown as below:
root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my
|
root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va
|
root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position:
|
HOW TO FIX IT:
in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm)
line 220:
[ "$EUID" = "0" ] && chown $user $wr_logfile
|
to fix it:
[ "$EUID" == "0" ] && chown $user $wr_logfile
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Description |
Start it from command: /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log And it will NOT create sub process with mysqld , the status is shown as blow: root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position: HOW TO FIX IT: in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm) line 220: [ "$EUID" = "0" ] && chown $user $wr_logfile to fix it: [ "$EUID" == "0" ] && chown $user $wr_logfile |
*Start it from command:* {code} /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log {code} *And it will NOT create sub process with mysqld , the status is shown as blow:* {code} root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position: {code} *HOW TO FIX IT:* in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm) line 220: [ "$EUID" = "0" ] && chown $user $wr_logfile to fix it: [ "$EUID" == "0" ] && chown $user $wr_logfile |
Description |
*Start it from command:* {code} /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log {code} *And it will NOT create sub process with mysqld , the status is shown as blow:* {code} root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position: {code} *HOW TO FIX IT:* in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm) line 220: [ "$EUID" = "0" ] && chown $user $wr_logfile to fix it: [ "$EUID" == "0" ] && chown $user $wr_logfile |
*Start it from command:* {code} /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log {code} *And it will NOT never create sub process with mysqld , the status is shown as blow:* {code} root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position: {code} *HOW TO FIX IT:* in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm) line 220: {code} [ "$EUID" = "0" ] && chown $user $wr_logfile {code} to fix it: {code} [ "$EUID" == "0" ] && chown $user $wr_logfile {code} |
Description |
*Start it from command:* {code} /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log {code} *And it will NOT never create sub process with mysqld , the status is shown as blow:* {code} root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position: {code} *HOW TO FIX IT:* in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm) line 220: {code} [ "$EUID" = "0" ] && chown $user $wr_logfile {code} to fix it: {code} [ "$EUID" == "0" ] && chown $user $wr_logfile {code} |
*Start it from command:* {code} /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/var/run/mysqld/mysqld.pid --basedir=/usr --user=mysql --log-error=/var/log/mysqld.log {code} *And it will NOT never create sub process with mysqld , the status is shown as below:* {code} root 13648 0.0 0.1 122240 4784 ? S 13:18 0:00 /usr/bin/python /usr/bin/pidproxy /var/run/mysqld/mysqld.pid /usr/bin/mysqld_safe --datadir=/var/lib/my root 13649 0.0 0.0 108328 1544 ? S 13:18 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --pid-file=/va root 13921 0.0 0.0 103248 848 ? S 13:18 0:00 grep WSREP: Recovered position: {code} *HOW TO FIX IT:* in /usr/bin/mysqld_safe (MariaDB-Galera-server-5.5.29-1.x86_64.rpm) line 220: {code} [ "$EUID" = "0" ] && chown $user $wr_logfile {code} to fix it: {code} [ "$EUID" == "0" ] && chown $user $wr_logfile {code} |
Assignee | Elena Stepanova [ elenst ] |
Due Date | 2013-07-28 |
Fix Version/s | 5.5.32-galera [ 13203 ] | |
Assignee | Elena Stepanova [ elenst ] | Seppo Jaakola [ seppo ] |
Due Date | 2013-07-28 | |
Labels | galera | |
Priority | Major [ 3 ] | Minor [ 4 ] |
Fix Version/s | 5.5.33-galera [ 13600 ] | |
Fix Version/s | 5.5.32-galera [ 13203 ] |
Fix Version/s | 5.5.34-galera [ 13900 ] | |
Fix Version/s | 5.5.33a-galera [ 13600 ] |
Fix Version/s | 5.5.35-galera [ 14300 ] | |
Fix Version/s | 5.5.34-galera [ 13900 ] |
Fix Version/s | 5.5.36-galera [ 14801 ] | |
Fix Version/s | 5.5.35-galera [ 14300 ] |
Fix Version/s | 5.5.36-galera [ 14801 ] |
Workflow | defaullt [ 27772 ] | MariaDB v2 [ 42744 ] |
Assignee | Seppo Jaakola [ seppo ] | Nirbhay Choubey [ nirbhay_c ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Fix Version/s | 5.5.39-galera [ 16302 ] | |
Fix Version/s | 10.0.13-galera [ 16800 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Workflow | MariaDB v2 [ 42744 ] | MariaDB v3 [ 64529 ] |
Workflow | MariaDB v3 [ 64529 ] | MariaDB v4 [ 146821 ] |
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
#!/bin/sh
[ "$EUID" = "0" ] && echo "My EUID with =: $EUID"
[ "$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.