wsrep-recover fails in mysqld_safe, Ubuntu (dash)

Bug #1108431 reported by Dane Miller
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Galera
Fix Released
High
Alex Yurchenko
MySQL patches by Codership
Fix Released
High
Alex Yurchenko
Percona XtraDB Cluster moved to https://jira.percona.com/projects/PXC
Fix Released
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
Revision history for this message
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
Revision history for this message
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)
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PXC-1287

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.