# Problem with HAproxy PXC

**URL:** <https://forums.percona.com/t/problem-with-haproxy-pxc/2854>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [July 31, 2013, 8:07am UTC](https://forums.percona.com/t/problem-with-haproxy-pxc/2854 "2013-07-31T08:07:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cetanhota](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@cetanhota](https://forums.percona.com/u/cetanhota)\
**Post date:** [July 31, 2013, 8:07am UTC](https://forums.percona.com/t/problem-with-haproxy-pxc/2854/1 "2013-07-31T08:07:17Z")

</div>

So I have a question about haproxy and PXC.

I have my cluster up and running with no issues. Now when I try to get haproxy to monitor the cluster I get the following error:

HTTP/1.1 503 Service Unavailable  
Content-Type: text/plain  
Connection: close  
Content-Length: 44

Percona XtraDB Cluster Node is not synced.  
Connection closed by foreign host.

I see that haproxy is connecting to each of my nodes and mysqlchk is running but it keeps returning the above error.

When I run clustercheck on the server I get this:

HTTP/1.1 200 OK  
Content-Type: text/plain  
Connection: close  
Content-Length: 40

Percona XtraDB Cluster Node is synced.

I followed this [url][http://www.percona.com/doc/percona-xtradb-cluster/howtos/virt\_sandbox.html[/url]](http://www.percona.com/doc/percona-xtradb-cluster/howtos/virt_sandbox.html%5B/url%5D) to setup my HAproxy.

Any ideas as to whats going on?

---

<div class="post-metadata">

**Author:** ![cetanhota](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@cetanhota](https://forums.percona.com/u/cetanhota)\
**Post date:** [July 31, 2013, 12:54pm UTC](https://forums.percona.com/t/problem-with-haproxy-pxc/2854/2 "2013-07-31T12:54:13Z")

</div>

Ok, found the issue. My install of PXC is not standard so I just needed to add the full path to mysql in the checkcluster script. Now HAproxy and PXC are working just fine.
