[MDEV-10477] MariaDB Galera Cluster on EC2 - rsync error Created: 2016-08-01 Updated: 2017-07-12 Resolved: 2017-07-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Galera SST |
| Affects Version/s: | 10.1.16 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Peter Bulman | Assignee: | Sachin Setiya (Inactive) |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | galera, rsync, sst, wsrep | ||
| Environment: |
RHEL7.2 AWS EC2 |
||
| Attachments: |
|
| Description |
|
I am trying to create a simple two node cluster; on joining node 2 to the cluster there are errors in the log of node 1. looks to be an rsync permission error on node 1. I am running node 1 and node 2 under the default ec2-user with sudo, whilst setting --user=root. the error on node 1 says: How to configure this such that rsync replication works? thanks |
| Comments |
| Comment by Peter Bulman [ 2016-08-02 ] | |||||||
|
further to the above config i have setup key based access for the mysql user between the 2 nodes and have manually verified that rsync works without password between both nodes for the /var/lib/mysql/ibdata1 file. | |||||||
| Comment by Peter Bulman [ 2016-08-02 ] | |||||||
|
having now run: | |||||||
| Comment by Andrii Nikitin (Inactive) [ 2017-07-12 ] | |||||||
|
I did experiment with this and can confirm that rsync under root will not be able to receive files, unless directory is writeable for everyone. (probably protection from mistake / unexperienced users).
The error has gone once I put into rsync_sst.conf file:
I don't think this behaviour should be changed; if somebody really wants to receive files with root - they should either adjust wsrep_sst_rsync script with command below (or use custom one): |