# Query regarding Xtrabackup issue

**URL:** <https://forums.percona.com/t/query-regarding-xtrabackup-issue/7525>\
**Category:** Percona XtraBackup\
**Created:** [April 10, 2020, 9:33am UTC](https://forums.percona.com/t/query-regarding-xtrabackup-issue/7525 "2020-04-10T09:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soumyaranjan](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@soumyaranjan](https://forums.percona.com/u/soumyaranjan)\
**Post date:** [April 10, 2020, 9:33am UTC](https://forums.percona.com/t/query-regarding-xtrabackup-issue/7525/1 "2020-04-10T09:33:07Z")

</div>

Hi,  
I am doing POC on Kubernetes. I am Following below links for setup master/slave setup using MySQL & xtrabackup.  
Running below issue: In our env. we have multiple DC and in. order to communicate one DC to another we have to use kube load balancer service. I plan is to setup one master on one DC and slave on another DC and they will communicate via load balancer. &nbsp;I have tested the setup but getting below error.  
  
===

**➜&nbsp;**  **working** k logs -f -c xtrabackup mysql-master-5b67c98658-z4vck

+ cd /var/lib/mysql

+ exec ncat --listen --keep-open --send-only --max-conns=1 3307 -c 'xtrabackup --backup --slave-info --stream=xbstream --host=127.0.0.1 --user=root --password=root'

200407 19:16:32&nbsp; version\_check Connecting to MySQL server with DSN 'dbi:mysql:;mysql\_read\_default\_group=xtrabackup;host=127.0.0.1;port=3306;mysql\_socket=/var/run/mysqld/mysqld.sock' as 'root'&nbsp; (using password: YES).

200407 19:16:32&nbsp; version\_check Connected to MySQL server

200407 19:16:32&nbsp; version\_check Executing a version check against the server...

200407 19:16:32&nbsp; version\_check Done.

200407 19:16:32 Connecting to MySQL server host: 127.0.0.1, user: root, password: set, port: 3306, socket: /var/run/mysqld/mysqld.sock

Using server version 5.7.29-log

xtrabackup version 2.4.4 based on MySQL server 5.7.13 Linux (x86\_64) (revision id: df58cf2)

xtrabackup: uses posix\_fadvise().

xtrabackup: cd to /var/lib/mysql

xtrabackup: open files limit requested 0, set to 1048576

xtrabackup: using the following InnoDB configuration:

xtrabackup: &nbsp; innodb\_data\_home\_dir = .

xtrabackup: &nbsp; innodb\_data\_file\_path = ibdata1:12M:autoextend

xtrabackup: &nbsp; innodb\_log\_group\_home\_dir = ./

xtrabackup: &nbsp; innodb\_log\_files\_in\_group = 2

xtrabackup: &nbsp; innodb\_log\_file\_size = 50331648

InnoDB: Number of pools: 1

200407 19:16:32 \>\> log scanned up to (12480867)

xtrabackup: Generating a list of tablespaces

InnoDB: Allocated tablespace ID 2 for mysql/plugin, old maximum was 0

200407 19:16:32 [01] Streaming ./ibdata1

xtrabackup: Error writing file 'UNOPENED' (Errcode: 32 - Broken pipe)

xb\_stream\_write\_data() failed.

xtrabackup: Error writing file 'UNOPENED' (Errcode: 32 - Broken pipe)

[01] xtrabackup: Error: xtrabackup\_copy\_datafile() failed.

[01] xtrabackup: Error: failed to copy datafile.

Ncat: assertion failed: count \<= INT\_MAX QUITTING.

It's working fine&nbsp;

---

<div class="post-metadata">

**Author:** ![jkljajic](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jkljajic/32/1365_2.png) [@jkljajic](https://forums.percona.com/u/jkljajic)\
**Post date:** [July 21, 2020, 9:46am UTC](https://forums.percona.com/t/query-regarding-xtrabackup-issue/7525/2 "2020-07-21T09:46:55Z")

</div>

I have the same issue when building MySQL cluster and that happens if I try to check if xtrabackup is ready&nbsp;  
while&nbsp;!&nbsp;nc&nbsp;-z xtrabackup-host 3307;&nbsp;do&nbsp;&nbsp;sleep&nbsp;5;&nbsp;done  
if I comment out this line before I start to restore database I don’t get error INT\_MAX QUITTING any more&nbsp;  
maybe this till help&nbsp;
