{"id":1899,"date":"2013-05-27T05:46:14","date_gmt":"2013-05-27T05:46:14","guid":{"rendered":"http:\/\/kedar.nitty-witty.com\/?p=1899"},"modified":"2015-02-26T14:07:33","modified_gmt":"2015-02-26T14:07:33","slug":"innobackupex-1-5-1-fatal-error-no-mysqld-group-in-mysql-options","status":"publish","type":"post","link":"https:\/\/kedar.nitty-witty.com\/blog\/innobackupex-1-5-1-fatal-error-no-mysqld-group-in-mysql-options","title":{"rendered":"xtrabackup_51: not found &#038; no &#8216;mysqld&#8217; group in MySQL options"},"content":{"rendered":"<p>Recently I happen to setup a new MySQL instance with my tools &#8211; a standard MySQL 5.1+, xtrabackup setup and last-hotbackup.tar.gz.<\/p>\n<p>To restore from the backup we used xtrabackup binaries and ran into issues following standard commands (assuming no changes):<\/p>\n<p>To prepare the backup I used apply-log as follows:<\/p>\n<p><code>$] innobackupex-1.5.1 --defaults-file=\/usr\/local\/mysql\/data\/backup-my.cnf --apply-log\u00a0 \/usr\/local\/mysql\/data --ibbackup xtrabackup_51<\/code><\/p>\n<p><!--more Continue Reading...--><br \/>\n<code>InnoDB Backup Utility v1.5.1-xtrabackup; Copyright 2003, 2009 Innobase Oy<br \/>\nand Percona Ireland Ltd 2009-2012.\u00a0 All Rights Reserved.<\/code><\/p>\n<p><code>This software is published under<br \/>\nthe GNU GENERAL PUBLIC LICENSE Version 2, June 1991.<\/code><\/p>\n<p><code>IMPORTANT: Please check that the apply-log run completes successfully.<br \/>\nAt the end of a successful apply-log run innobackupex-1.5.1<br \/>\nprints \"completed OK!\".<\/code><\/p>\n<p><code><br \/>\nsh: 1: xtrabackup_51: not found<br \/>\ninnobackupex-1.5.1: fatal error: no 'mysqld' group in MySQL options<\/code><\/p>\n<p>[ <b>Update:<\/b> or you may find error as follows<br \/>\nsh: 1: xtrabackup_55: not found<br \/>\ninnobackupex: got a fatal error with the following stacktrace: at \/usr\/bin\/innobackupex line 4482. ]<\/p>\n<p>To my surprise I really didn&#8217;t find xtrabackup_51 under path &#8211; Later I verified the version for Xtrabackup is 2.1.1 &amp; learnt that xtrabackup_51 is absent with percona-xtrabackup 2.1.1 binaries.<br \/>\n<code>~\/bin$ ls -lhtr<br \/>\ntotal 157M<br \/>\ndrwxr-xr-x 4 kedar kedar  4.0K May 13 21:24 percona-xtrabackup-2.1.1<br \/>\n-rwxr-xr-x 1 kedar kedar   16M May 13 21:30 xtrabackup_55<br \/>\n-rwxr-xr-x 1 kedar kedar   78M May 13 21:36 xtrabackup_56<br \/>\n-rwxr-xr-x 1 kedar kedar   13M May 13 21:42 xtrabackup<br \/>\n-rwxr-xr-x 1 kedar kedar  2.2M May 13 21:42 xbstream<br \/>\n-rwxr-xr-x 1 kedar kedar  2.2M May 13 21:42 xbcrypt<br \/>\nlrwxrwxrwx 1 kedar kedar    12 May 13 21:42 innobackupex-1.5.1 -> innobackupex<br \/>\n-rwxr-xr-x 1 kedar kedar  108K May 13 21:42 innobackupex<br \/>\n-rw-rw-r-- 1 kedar kedar   47M May 13 21:44 percona-xtrabackup-2.1.1-600.tar.gz<\/code><\/p>\n<p>That&#8217;s not cool, I thought until I read an important release note: &#8220;Support for InnoDB 5.0 and InnoDB 5.1 builtin has been removed from Percona XtraBackup.&#8221; [Release notes: http:\/\/www.percona.com\/doc\/percona-xtrabackup\/2.1\/release-notes\/2.1\/2.1.1.html] .<\/p>\n<p>Options with me were:<br \/>\n1. Disable built-in Innodb and enable Innodb plugin or use Percona&#8217;s MySQL build<br \/>\n2. Use &#8211;ibbbackup xtarbackup (not xtrabackup_51)<br \/>\n3. Use XtraBackup 2.0 series for default built-in Innodb<\/p>\n<p>&#8211; I upgraded the MySQL to use Percona&#8217;s build and executed &#8211;apply-logs specifying &#8211;ibbackup xtrabackup<\/p>\n<p>The bug report [https:\/\/bugs.launchpad.net\/percona-xtrabackup\/+bug\/1180905] is already in place and the issue has been resolved in the later version 2.1.2. Fixes: &#8220;innobackupex automatic version detection did not work correctly for latest Percona Server and MySQL 5.1 releases which could cause innobackupex to fail.&#8221;<\/p>\n<p>For using MySQL 5.1+ with built-in support we can use Percona XtraBackup 2.0.<br \/>\nSupport for MySQL 5.1 with builtin InnoDB (not the plugin) was removed in Percona XtraBackup 2.1. The last version to support MySQL 5.1 with builtin InnoDB was Percona XtraBackup 2.0. &#8211; conveyed @productiondba<\/p>\n<p>Take out:<br \/>\n&#8211; Upgrade your xtrabackup to latest Percona XtraBackup Version (Yep, today it&#8217;s 2.1.3, not 2.1.2)<br \/>\n&#8211; Make sure we read release notes before using the latest build \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"Recently I happen to setup a new MySQL instance with my tools &#8211; a standard MySQL 5.1+, xtrabackup setup and last-hotbackup.tar.gz. To restore from the backup we used xtrabackup binaries&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[8,377],"tags":[15,370,368,367,427,366,369],"class_list":{"0":"post-1899","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-mysql","7":"category-mysql-articles","8":"tag-backup","9":"tag-bug","10":"tag-hotbackup","11":"tag-innobackup","12":"tag-mysql","13":"tag-restore","14":"tag-xtrabackup"},"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/1899","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/comments?post=1899"}],"version-history":[{"count":16,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/1899\/revisions"}],"predecessor-version":[{"id":1912,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/posts\/1899\/revisions\/1912"}],"wp:attachment":[{"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/media?parent=1899"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/categories?post=1899"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kedar.nitty-witty.com\/blog\/wp-json\/wp\/v2\/tags?post=1899"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}