wsrep-recover fails in mysqld_safe, Ubuntu (dash)

Reported by Dane Miller on 2013-01-29
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Galera
High
Alex Yurchenko
MySQL patches by Codership
High
Alex Yurchenko
Percona XtraDB Cluster
Undecided
Unassigned

Bug Description

The mysqld_safe script in PXC 5.5.28 fails to recover the galera replication position (--wsrep-recover) on Ubuntu 10.04 x86_64. I believe this is because Ubuntu links /bin/sh to the dash shell (https://wiki.ubuntu.com/DashAsBinSh), and dash does not support the $EUID variable used here:

# grep -n EUID /usr/bin/mysqld_safe
192: [ "$EUID" = "0" ] && chown $user $wr_logfile

The problem is fixed if I change mysqld_safe to use /bin/bash, instead of /bin/sh, or if I use `id -u` instead of "$EUID"

I am running...
percona-xtradb-cluster-client-5.5 5.5.28-23.7-369.lucid
percona-xtradb-cluster-common-5.5 5.5.28-23.7-369.lucid
percona-xtradb-cluster-galera-2.x 115.lucid
percona-xtradb-cluster-server-5.5 5.5.28-23.7-369.lucid

# lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 10.04.4 LTS
Release: 10.04
Codename: lucid

Dane

Changed in percona-xtradb-cluster:
status: New → Confirmed
Changed in codership-mysql:
assignee: nobody → Alex Yurchenko (ayurchen)
importance: Undecided → High
milestone: none → 5.5.29-23.7.3
status: New → In Progress
Alex Yurchenko (ayurchen) wrote :

mysqld_safe for Debian/Ubunty is stored in Galera repository. Committed fix by http://bazaar.launchpad.net/~codership/galera/2.x/revision/146.

Changed in galera:
importance: Undecided → High
milestone: none → 23.2.4
status: New → Fix Committed
assignee: nobody → Alex Yurchenko (ayurchen)
Changed in galera:
status: Fix Committed → Fix Released
Alex Yurchenko (ayurchen) wrote :

merged the fix from galera tree in r3854

Changed in codership-mysql:
status: In Progress → Fix Released
milestone: 5.5.29-23.7.3 → 5.5.30-23.7.4
status: Fix Released → Fix Committed
Changed in percona-xtradb-cluster:
milestone: none → 5.5.30-23.7.3
status: Confirmed → Fix Released
milestone: 5.5.30-23.7.3 → none
Changed in percona-xtradb-cluster:
milestone: none → 5.5.30-23.7.4
Changed in codership-mysql:
status: Fix Committed → Fix Released
summary: - wsrep-recover fails in mysqld_safe, PXC 5.5.28, Ubuntu
+ wsrep-recover fails in mysqld_safe, Ubuntu (dash)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers