# Cannot start xtrabackup

**URL:** <https://forums.percona.com/t/cannot-start-xtrabackup/2345>\
**Category:** Percona XtraBackup\
**Created:** [March 15, 2013, 1:28pm UTC](https://forums.percona.com/t/cannot-start-xtrabackup/2345 "2013-03-15T13:28:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gearbolt](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gearbolt](https://forums.percona.com/u/gearbolt)\
**Post date:** [March 15, 2013, 1:28pm UTC](https://forums.percona.com/t/cannot-start-xtrabackup/2345/1 "2013-03-15T13:28:14Z")

</div>

I hope someone can help, I have been working on this for two days with no luck.  
The OS user which runs the database is the same user I start Xtrabackup as. The OS user has complete ownership of the MySQL directory, the Xtrabackup directory and my backup destination directory. When I start Xtrabackup it fails with the error below. Any ideas. Thanks

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009  
Innobase Oyand Percona Ireland Ltd 2009-2012. All Rights Reserved.

This software is published under  
the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.

IMPORTANT: Please check that the apply-log run completes successfully.  
At the end of a successful apply-log run innobackupex  
prints “completed OK!”.

130315 13:54:42 innobackupex: Starting ibbackup with command: /opt/percona/percona-xtrabackup-2.0.5/bin/xtrabackup\_55 --defaults-file=“/opt/mysql/mysqldb/db/db.cnf” --defaults-group=“mysqld” --prepare --target-dir=/opt/mysql/database\_backup

/opt/percona/percona-xtrabackup-2.0.5/bin/xtrabackup\_55 version 2.0.5 for Percona Server 5.5.16 Linux (x86\_64) (revision id: undefined)  
xtrabackup: cd to /opt/mysql/database\_backup  
xtrabackup: Error: cannot open ./xtrabackup\_checkpoints  
xtrabackup: error: xtrabackup\_read\_metadata()  
xtrabackup: This target seems not to have correct metadata…  
130315 13:54:42 InnoDB: Operating system error number 2 in a file operation.  
InnoDB: The error means the system cannot find the path specified.  
xtrabackup: Warning: cannot open ./xtrabackup\_logfile. will try to find.  
130315 13:54:42 InnoDB: Operating system error number 2 in a file operation.  
InnoDB: The error means the system cannot find the path specified.  
xtrabackup: Fatal error: cannot find ./xtrabackup\_logfile.  
xtrabackup: Error: xtrabackup\_init\_temp\_log() failed.  
innobackupex: Error:  
innobackupex: ibbackup failed at /opt/percona/percona-xtrabackup-2.0.5/bin/innobackupex line 381.

---

<div class="post-metadata">

**Author:** ![gmouse](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gmouse](https://forums.percona.com/u/gmouse)\
**Post date:** [March 16, 2013, 1:32pm UTC](https://forums.percona.com/t/cannot-start-xtrabackup/2345/2 "2013-03-16T13:32:42Z")

</div>

try this:

cd /opt/mysql/database\_backup  
touch test

and see whether you can create the file.

---

<div class="post-metadata">

**Author:** ![gearbolt](https://avatars.discourse-cdn.com/v4/letter/g/77aa72/32.png) [@gearbolt](https://forums.percona.com/u/gearbolt)\
**Post date:** [March 16, 2013, 2:53pm UTC](https://forums.percona.com/t/cannot-start-xtrabackup/2345/3 "2013-03-16T14:53:30Z")

</div>

Yup I can create the file. In fact I created xtrabackup\_checkpoints & xtrabackup\_logfile files manually and tried to run the following command and received the below error.

innobackupex --user=root–password=password–defaults file=/opt/mysql/mysqldb/db/db.cnf /opt/mysql/database\_backup --no-lock --apply-log – ibbackup=xtrabackup\_55

xtrabackup\_55 version 2.0.5 for Percona Server 5.5.16 Linux (x86\_64)  
(revision id: undefined)  
xtrabackup: cd to /opt/mysql/database\_backup  
xtrabackup: error: xtrabackup\_read\_metadata()  
xtrabackup: This target seems not to have correct metadata…  
InnoDB: Error: tried to read 2048 bytes at offset 0 0.  
InnoDB: Was only able to read 0.  
130316 9:32:22 InnoDB: Operating system error number 0 in a file  
operation.  
InnoDB: Error number 0 means ‘Success’.  
InnoDB: Some operating system error numbers are described at  
InnoDB: File operation call: ‘read’.  
InnoDB: Cannot continue operation.  
innobackupex: Error:  
innobackupex: ibbackup failed at /opt/percona/percona-xtrabackup-2.0.5/  
bin/innobackupex line 381.
