# Unable to stop XtraDB cluster node

**URL:** <https://forums.percona.com/t/unable-to-stop-xtradb-cluster-node/6546>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [August 29, 2018, 11:34am UTC](https://forums.percona.com/t/unable-to-stop-xtradb-cluster-node/6546 "2018-08-29T11:34:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahidbashir7861](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shahidbashir7861/32/4908_2.png) [@shahidbashir7861](https://forums.percona.com/u/shahidbashir7861)\
**Post date:** [August 29, 2018, 11:34am UTC](https://forums.percona.com/t/unable-to-stop-xtradb-cluster-node/6546/1 "2018-08-29T11:34:17Z")

</div>

Hello,

I have setup a two node cluster using using MySQL-5.7. Now i am trying to stop one of the nodes using the command “systemctl stop mysql” and it keeps waiting. I can see the following at the end of the logs

2018-08-29T16:40:19.055121Z 2 [Note] WSREP: Setting wsrep\_ready to false  
2018-08-29T16:40:19.055080Z 0 [Note] WSREP: RECV thread exiting 0: Success  
2018-08-29T16:40:19.055267Z 0 [Note] WSREP: recv\_thread() joined.  
2018-08-29T16:40:19.055298Z 0 [Note] WSREP: Closing replication queue.  
2018-08-29T16:40:19.055322Z 0 [Note] WSREP: Closing slave action queue.  
2018-08-29T16:40:19.055345Z 0 [Note] WSREP: Waiting for active wsrep applier to exit  
mysql: [Warning] Using a password on the command line interface can be insecure.

It seems while it is stopping the server it tries to use some command close to the end and that is not responding. Please help.

Thanks.

---

<div class="post-metadata">

**Author:** ![krunalbauskar](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@krunalbauskar](https://forums.percona.com/u/krunalbauskar)\
**Post date:** [August 29, 2018, 9:28pm UTC](https://forums.percona.com/t/unable-to-stop-xtradb-cluster-node/6546/2 "2018-08-29T21:28:16Z")

</div>

Seems like applier thread is busy applying replicated action. But of-course it should exit.  
Do you have reproducible test-case. We can investigate the problem.

Also, please share complete log files and error log.

---

<div class="post-metadata">

**Author:** ![shahidbashir7861](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/shahidbashir7861/32/4908_2.png) [@shahidbashir7861](https://forums.percona.com/u/shahidbashir7861)\
**Post date:** [August 30, 2018, 5:00am UTC](https://forums.percona.com/t/unable-to-stop-xtradb-cluster-node/6546/3 "2018-08-30T05:00:17Z")

</div>

Hey Krunal,

It seems i had defined a script in wsrep\_notify\_cmd that was causing this issue. I have disabled this option at the moment and now it is stopping as expected.

Thanks.

---

<div class="post-metadata">

**Author:** ![krunalbauskar](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@krunalbauskar](https://forums.percona.com/u/krunalbauskar)\
**Post date:** [August 30, 2018, 5:48am UTC](https://forums.percona.com/t/unable-to-stop-xtradb-cluster-node/6546/4 "2018-08-30T05:48:08Z")

</div>

Great to hear you got it working.  
Happy using PXC 🙂
