# innobackupex unexpectedly ending while creating backup

**URL:** <https://forums.percona.com/t/innobackupex-unexpectedly-ending-while-creating-backup/3540>\
**Category:** Percona XtraBackup\
**Created:** [June 11, 2014, 2:41am UTC](https://forums.percona.com/t/innobackupex-unexpectedly-ending-while-creating-backup/3540 "2014-06-11T02:41:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mice](https://avatars.discourse-cdn.com/v4/letter/m/b19c9b/32.png) [@mice](https://forums.percona.com/u/mice)\
**Post date:** [June 11, 2014, 2:41am UTC](https://forums.percona.com/t/innobackupex-unexpectedly-ending-while-creating-backup/3540/1 "2014-06-11T02:41:59Z")

</div>

Hi!  
I’m starting backup to remote server using innobackupex:  
innobackupex --defaults-file=/etc/mysql/mysqld-2.cnf --slave-info --user=bck\_user --password=bck\_password --socket=/var/run/mysqld/mysqld-2.sock --stream=xbstream /database/| ssh -o StrictHostKeyChecking=no -c arcfour 10.0.102.100 ‘xbstream -x -C /database/db1/’

after some time got:  
…

> > log scanned up to (16773756142840)  
> > log scanned up to (16773756264665)  
> > print() on closed filehandle XTRABACKUP\_PID at /usr/local/bin/innobackupex line 2645.  
> > 140611 07:48:26 innobackupex: Waiting for ibbackup (pid=7957) to finish

that’s it  
using [percona-xtrabackup-2.1.9-744-Linux-x86\_64.tar.gz](http://www.percona.com/redir/downloads/XtraBackup/LATEST/binary/Linux/x86_64/percona-xtrabackup-2.1.9-744-Linux-x86_64.tar.gz)

---

<div class="post-metadata">

**Author:** ![psong](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/psong/32/16894_2.png) [@psong](https://forums.percona.com/u/psong)\
**Post date:** [June 18, 2014, 5:58am UTC](https://forums.percona.com/t/innobackupex-unexpectedly-ending-while-creating-backup/3540/2 "2014-06-18T05:58:06Z")

</div>

Could you check tmpdir in /etc/mysql/mysqld-2.cnf? It looks like the program failed to create a pid file under that directory. Please make sure the user running innobackupex has privilege to write to tmpdir.
