# Xtrabackup 2.1.1 failing with Percona-Server 5.1

**URL:** <https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687>\
**Category:** Percona XtraBackup\
**Created:** [May 16, 2013, 7:28am UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687 "2013-05-16T07:28:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JDooley](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@JDooley](https://forums.percona.com/u/JDooley)\
**Post date:** [May 16, 2013, 7:28am UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687/1 "2013-05-16T07:28:20Z")

</div>

I noticed error messages popping up this morning with a dr replication script I have been writing after xtrabackup updated last night. I am seeing the following errors in the logs:

innobackupex: Error: Support 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. at /usr/bin/innobackupex line 387.

I am not sure what I am missing, but I am using Percona 5.1 not vanilla MySQL.

I do see that the built in innodb engine is being listed in the information\_schema which is a bit strange:

±------------±---------------±--------------------±---------------±-----------------------±--------------+  
| PLUGIN\_NAME | PLUGIN\_VERSION | PLUGIN\_TYPE\_VERSION | PLUGIN\_LIBRARY | PLUGIN\_LIBRARY\_VERSION | PLUGIN\_AUTHOR |  
±------------±---------------±--------------------±---------------±-----------------------±--------------+  
| InnoDB | 5.1 | 50168.0 | NULL | NULL | Innobase Oy |  
±------------±---------------±--------------------±---------------±-----------------------±--------------+

| innodb\_version | 5.1.68-14.6 |

Percona-Server-client-51.x86\_64 5.1.68-rel14.6.551.rhel6 @percona  
Percona-Server-server-51.x86\_64 5.1.68-rel14.6.551.rhel6 @percona  
Percona-Server-shared-51.x86\_64 5.1.68-rel14.6.551.rhel6 @percona  
percona-xtrabackup.x86\_64 2.1.1-600.rhel6 @percona

Also my my.cnf file is mainly empty, there are a few things for replication. The only innodb specific setting is file per table.

So does Xtrabackup 2.1.1 no longer support Percona 5.1 or am I just missing something obvious?

---

<div class="post-metadata">

**Author:** ![JDooley](https://avatars.discourse-cdn.com/v4/letter/j/f17d59/32.png) [@JDooley](https://forums.percona.com/u/JDooley)\
**Post date:** [May 16, 2013, 10:50am UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687/2 "2013-05-16T10:50:03Z")

</div>

This looks like the code in question:

```auto

	 if($var_version =~ m/5\.1\.\d/ && $var_innodb_version =~ m/.*/) {
	 Die "Support 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.";
	 }
	

```

```
Basically, if MySQL matches 5.1 and innodb_version matches anything, die.

Interestingly enough there is more code below that works with 5.1 and innodb_version 1.0.x:

```

```auto

	 if($var_version =~ m/5\.1\.\d/ && $var_innodb_version =~ m/1\.0\.\d+$/) {
	 $ibbackup_binary = ($win eq 1 ? 'xtrabackup.exe' : 'xtrabackup');
	 }
	

```

---

<div class="post-metadata">

**Author:** ![hallamigo](https://avatars.discourse-cdn.com/v4/letter/h/50afbb/32.png) [@hallamigo](https://forums.percona.com/u/hallamigo)\
**Post date:** [May 17, 2013, 10:28pm UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687/3 "2013-05-17T22:28:11Z")

</div>

I’ve found the same issue with my server. From the error it sounds like the plugin should be allowed still. I’ve written the following patch that modifies the code you have above and makes it work. Can someone at Percona jump in on this thread and let me know if my assumptions are right or wrong. Thanks.

Patch:  
[url][http://mos.greenaspen.com/misc/innobackupex.patch[/url]](http://mos.greenaspen.com/misc/innobackupex.patch%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![miguelangelnieto](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@miguelangelnieto](https://forums.percona.com/u/miguelangelnieto)\
**Post date:** [May 20, 2013, 4:00am UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687/4 "2013-05-20T04:00:29Z")

</div>

Hi,

Please, upgrade to 2.1.2. We have fixed some bugs related with InnoDB plugin detection in 5.1:

[url][https://bugs.launchpad.net/percona-xtrabackup/+bug/1181092[/url]](https://bugs.launchpad.net/percona-xtrabackup/+bug/1181092%5B/url%5D)  
[url][https://bugs.launchpad.net/percona-xtrabackup/+bug/1181099[/url]](https://bugs.launchpad.net/percona-xtrabackup/+bug/1181099%5B/url%5D)  
[url][https://bugs.launchpad.net/percona-xtrabackup/+bug/1180905[/url]](https://bugs.launchpad.net/percona-xtrabackup/+bug/1180905%5B/url%5D)

Test it again with the new version and tell me if the problem is not solved.

Regards.

---

<div class="post-metadata">

**Author:** ![marat.komarov](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/marat.komarov/32/931_2.png) [@marat.komarov](https://forums.percona.com/u/marat.komarov)\
**Post date:** [May 21, 2013, 8:36am UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687/5 "2013-05-21T08:36:03Z")

</div>

I’ve got the same problem with MySQL 5.1 and xtrabackup 2.1.2 on Debian 6

Server version: 5.1.66-0+squeeze1-log (Debian)  
Xtrabackup: 2.1.2-611.squeeze  
Debian GNU/Linux 6.0.7 (squeeze)

```auto

	mysql> select * from PLUGINS where PLUGIN_NAME = 'InnoDB' \G

	***************************1. row***************************

	 PLUGIN_NAME: InnoDB

	 PLUGIN_VERSION: 1.0

	 PLUGIN_STATUS: ACTIVE

	 PLUGIN_TYPE: STORAGE ENGINE

	 PLUGIN_TYPE_VERSION: 50166.0

	 PLUGIN_LIBRARY: NULL

	PLUGIN_LIBRARY_VERSION: NULL

	 PLUGIN_AUTHOR: Innobase OY

	 PLUGIN_DESCRIPTION: Supports transactions, row-level locking, and foreign keys

	 PLUGIN_LICENSE: GPL

	1 row in set (0.00 sec)

```

---

<div class="post-metadata">

**Author:** ![sbrendtro](https://avatars.discourse-cdn.com/v4/letter/s/2bfe46/32.png) [@sbrendtro](https://forums.percona.com/u/sbrendtro)\
**Post date:** [May 21, 2013, 4:10pm UTC](https://forums.percona.com/t/xtrabackup-2-1-1-failing-with-percona-server-5-1/2687/6 "2013-05-21T16:10:17Z")

</div>

For those looking for a quick workaround, try using the following option to explicitly set the backend:

–ibbackup=xtrabackup
