[MDEV-6211] MariaDB-Galera-server uses 'socat', but 'socat' is not in the dependency list Created: 2014-05-06  Updated: 2018-03-23  Resolved: 2014-05-25

Status: Closed
Project: MariaDB Server
Component/s: None
Affects Version/s: 5.5.37-galera
Fix Version/s: 5.5.38-galera, 10.0.11-galera, 10.1.14

Type: Bug Priority: Major
Reporter: Timofey Turenko Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: galera

Issue Links:
Relates
relates to MDEV-15638 galera package should contain depende... Closed

 Description   

Scripts '/usr/bin/wsrep_sst_xtrabackup' and '/usr/bin/wsrep_sst_xtrabackup-v2' are part of 'mariadb-galera-server' and they use 'socat' command. If 'mariadb-galera-server' is installed on the fresh system wich does noit have 'socat' package installed node joining operation failed.

Steps to reproduce:
1. use two fresh CentOS6 or Debian7 machies to create a cluster
2. install 'mariadb-galera-server' package on both
3. start node1
4. try to join node2 to the cluster

Expected result: two-nodes cluster is running

Actual result:
node2 start operation failed
log contains:
WSREP_SST: [INFO] Using socat as streamer (20140505 14:32:41.368)
*which: no socat in
(/usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin)**
**WSREP_SST: [ERROR] socat not found in path:

Note: CentOS6 default repositories does not contain 'socat' package. It is available from EPEL repo. Should it be mentioned somewhere in README?

It would be good to check if scripts are using other commands that are not mentioned in the dependecy list (even 'sudo' is not installed by default in some distributions)
nc, grep, rsync, tar, gawk, findutils, sed? coreutils util-linux curl net-tools?



 Comments   
Comment by Timofey Turenko [ 2014-05-06 ]

one note regarding dependecy on 'nc package: in Debian7 default nc is netcat-traditional which gives an error "nc: invalid option – ‘d’” in the sst.err log file. Fixed by installing netcat-openbsd package. Should it be also reflected in the mariadb-galera-server package dependecy list?

Comment by Nirbhay Choubey (Inactive) [ 2014-05-25 ]

Fix pushed in maria-5.5-galera and maria-10.0-galera.
http://bazaar.launchpad.net/~maria-captains/maria/maria-5.5-galera/revision/3494

Comment by Pavel Kaidalov [ 2016-03-29 ]

This problem still exists in MariaDB-server-10.1.12 and 10.1.13 on CentOS 6.7. Here is my logs from second empty Galera node:

2016-03-29 10:05:52 140481556117248 [Note] WSREP: Running: 'wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '/var/lib/mysql/' --parent
'31307' --binlog 'mysql-bin' '
WSREP_SST: [INFO] Streaming with tar (20160329 10:05:53.037)
WSREP_SST: [INFO] Using socat as streamer (20160329 10:05:53.039)
which: no socat in (/usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin)
WSREP_SST: [ERROR] socat not found in path: /usr/sbin:/sbin:/usr//bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/bin (20160329 10:05:53.041)
2016-03-29 10:05:53 140481556117248 [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '
/var/lib/mysql/' --parent '31307' --binlog 'mysql-bin'
Read: '(null)'
2016-03-29 10:05:53 140481556117248 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role 'joiner' --address '10.10.32.144' --datadir '/var/l
ib/mysql/' --parent '31307' --binlog 'mysql-bin' : 2 (No such file or directory)
2016-03-29 10:05:53 140487386848000 [ERROR] WSREP: Failed to prepare for 'xtrabackup' SST. Unrecoverable.
2016-03-29 10:05:53 140487386848000 [ERROR] Aborting

I had to install "socat" manually from EPEL to fix this.

Comment by Nirbhay Choubey (Inactive) [ 2016-03-30 ]

kpvadm Thanks for reporting. A fix for this has been queued for next 10.1 version.

Generated at Thu Feb 08 07:10:11 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.