[MDEV-14513] rsync not found when SELinux is enabled Created: 2017-11-27  Updated: 2019-12-12  Resolved: 2019-12-12

Status: Closed
Project: MariaDB Server
Component/s: Galera, Galera SST
Affects Version/s: 10.2.10
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: markus makela Assignee: Jan Lindström (Inactive)
Resolution: Incomplete Votes: 0
Labels: None
Environment:

CentOS 7, RPMs from MariaDB repository.



 Description   

Overview

If SELinux is enabled and the SST method is set to rsync, all attempts at an SST will fail and the following message is logged.

2017-11-27 14:48:55 139686027196160 [Note] WSREP: New cluster view: global state: 6177046c-d350-11e7-b2cb-6345311792db:63, view# 14: Primary, number of nodes: 2, my index: 1, protocol version 3
2017-11-27 14:48:55 139686027196160 [Warning] WSREP: Gap in state sequence. Need state transfer.
2017-11-27 14:48:55 139685768206080 [Note] WSREP: Running: 'wsrep_sst_rsync --role 'joiner' --address '192.168.124.50' --datadir '/var/lib/mysql/'   --parent '13921' --binlog 'galera1-bin' '
which: no rsync in (/usr/sbin:/sbin:/usr//bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
2017-11-27 14:48:55 139685768206080 [ERROR] WSREP: Failed to read 'ready <addr>' from: wsrep_sst_rsync --role 'joiner' --address '192.168.124.50' --datadir '/var/lib/mysql/'   --parent '13921' --binlog 'galera1-
bin' 
        Read: ''rsync' not found in PATH'
2017-11-27 14:48:55 139685768206080 [ERROR] WSREP: Process completed with error: wsrep_sst_rsync --role 'joiner' --address '192.168.124.50' --datadir '/var/lib/mysql/'   --parent '13921' --binlog 'galera1-bin' :
 2 (No such file or directory)
2017-11-27 14:48:55 139686027196160 [ERROR] WSREP: Failed to prepare for 'rsync' SST. Unrecoverable.
2017-11-27 14:48:55 139686027196160 [ERROR] Aborting

Configuration

 
# this is only for the mysqld standalone daemon
[mysqld]
log_error=/var/lib/mysql/mysqld.err
 
#
# * Galera-related settings
#
[galera]
# Mandatory settings
wsrep_on=ON
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_cluster_address=gcomm://galera1,galera2
log-bin
binlog_format=row
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2

Steps to Reproduce

  • Install MariaDB 10.2.10 on two servers (hostnames are galera1 and galera2)
  • Use the provided configuration for both servers
  • Start a new cluster
  • Stop galera1
  • Force an SST to be performed (insert data etc.)
  • Start galera1 via systemctl start mysql


 Comments   
Comment by Andrii Nikitin (Inactive) [ 2017-11-29 ]

I can't reproduce the problem; will leave it open for some time in case if somebody hits the same.

Comment by Benoit Mandy [ 2018-01-18 ]

Just to inform, I have the same problem on a fresh install with version 10.1 on CentOS 7.4.1708
janv. 18 09:24:35 v-osncbdd03.openstacklocal mysqld[3003]: Read: ''rsync' not found in PATH'

set "selinux persmissive" to bypass but no selinux activate ...

Comment by Zdravelina Sokolovska (Inactive) [ 2018-03-06 ]

markus makela ,bmandy
1. after the fresh install do you have installed 'rsync' ?
2. please send the output of the #sestatus
3. please attach the output of the #semodule -l and #semanage boolean -l
and also the output of the ls -l /etc/selinux/targeted/modules/active/modules/

Comment by Jan Lindström (Inactive) [ 2019-12-12 ]

Feedback not provided.

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