Xtrabackup fails on CentOS6


if i try to --copy-back the files on a db slave, i get this error message

webshop1:~$ innobackupex --defaults-file=/etc/my.cnf --copy-back 2011-08-30_16-59-55

InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy
and Percona Inc 2009-2011. All Rights Reserved.

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

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

sh: autodetect: command not found
innobackupex: fatal error: no ‘mysqld’ group in MySQL options
innobackupex: fatal error: OR no ‘datadir’ option in group ‘mysqld’ in MySQL options

looks like innobackupex tries to find something “sh: autodetect: command not found”

any ideas how to fix this?



Have you checked that you my.cnf have a [mysqld] section with at least datadir value in it?