# Replication fails from percona cluster

**URL:** <https://forums.percona.com/t/replication-fails-from-percona-cluster/14737>\
**Category:** Percona XtraBackup\
**Tags:** percona\
**Created:** [March 13, 2022, 12:31pm UTC](https://forums.percona.com/t/replication-fails-from-percona-cluster/14737 "2022-03-13T12:31:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pappu\_Dba](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pappu_dba/32/6056_2.png) [@Pappu\_Dba](https://forums.percona.com/u/Pappu_Dba)\
**Post date:** [March 13, 2022, 12:31pm UTC](https://forums.percona.com/t/replication-fails-from-percona-cluster/14737/1 "2022-03-13T12:31:57Z")

</div>

Hi I have a percona xtradb cluster and its fine , but when i try to create a slave from one of the node it fails as

```
           Last_IO_Errno: 3159
            Last_IO_Error: error connecting to master 'repluser@10.128.0.21:3306' - retry-time: 60 retries: 1
           Last_SQL_Errno: 0

```

but i can login through mysql -hmysql1 -urepluser -pPassword123#@!

below are cnf

log-bin  
log\_slave\_updates  
expire\_logs\_days=7

# Disabling symbolic-links is recommended to prevent assorted security risks

symbolic-links=0

#binlog encrption

#encrypt-binlog=1  
#master\_verify\_checksum  
#binlog\_checksum=crc32

require\_secure\_transport = ON

#Cluster encryption

early-plugin-load = keyring\_file.so  
keyring-file-data = /var/lib/mysql-keyring/keyring  
ssl-key=/etc/certs/server-key.pem  
ssl-ca=/etc/certs/ca.pem  
ssl-cert=/etc/certs/server-cert.pem

[mysqld\_safe]  
log-error=/var/log/mariadb/mariadb.log  
pid-file=/var/run/mariadb/mariadb.pid

# 

# include all files from the config directory

# 

!includedir /etc/my.cnf.d

Please help

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [March 14, 2022, 12:45pm UTC](https://forums.percona.com/t/replication-fails-from-percona-cluster/14737/2 "2022-03-14T12:45:40Z")

</div>

Hello, did you grant the replication slave privilege to the user? did you create the user with % wildcard or limited to login from specific ip addresses? See [MySQL :: MySQL 8.0 Reference Manual :: 17.1.2.3 Creating a User for Replication](https://dev.mysql.com/doc/refman/8.0/en/replication-howto-repuser.html) for more info.

---

<div class="post-metadata">

**Author:** ![Pappu\_Dba](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/pappu_dba/32/6056_2.png) [@Pappu\_Dba](https://forums.percona.com/u/Pappu_Dba)\
**Post date:** [March 16, 2022, 3:57am UTC](https://forums.percona.com/t/replication-fails-from-percona-cluster/14737/3 "2022-03-16T03:57:49Z")

</div>

Hello, did you grant the replication slave privilege to the user? did you create the user with % wildcard or limited to login from specific ip addresses?

Yes i have tried both the approach still no luck

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [March 17, 2022, 4:52pm UTC](https://forums.percona.com/t/replication-fails-from-percona-cluster/14737/4 "2022-03-17T16:52:42Z")

</div>

@Pappu_Dba,  
I see MariaDB mentioned above. Are you trying to replicate between PXC and Maria? If you are, and GTID is enabled, then this won’t work because MariaDB uses a proprietary GTID sequence.

Can you also share the CREATE USER and GRANT syntax you used to create the ‘repluser’ account?

---

<div class="post-metadata">

**Author:** ![yunus\_shaikh](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/yunus_shaikh/32/3512_2.png) [@yunus\_shaikh](https://forums.percona.com/u/yunus_shaikh)\
**Post date:** [December 26, 2023, 6:48am UTC](https://forums.percona.com/t/replication-fails-from-percona-cluster/14737/5 "2023-12-26T06:48:43Z")

</div>

Even though this is an old issue. I came across similar one and thought to update this one after getting resolution.  
This should be because of `require_secure_transport = ON`  
and the user is created without SSL or the connection is without SSL certs

Error no 3159 is an insecure connection being prohibited.
