# Error message with open files limit too low

**URL:** <https://forums.percona.com/t/error-message-with-open-files-limit-too-low/4761>\
**Category:** Percona XtraBackup\
**Created:** [March 7, 2016, 3:01pm UTC](https://forums.percona.com/t/error-message-with-open-files-limit-too-low/4761 "2016-03-07T15:01:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pnkdoshi](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pnkdoshi](https://forums.percona.com/u/pnkdoshi)\
**Post date:** [March 7, 2016, 3:01pm UTC](https://forums.percona.com/t/error-message-with-open-files-limit-too-low/4761/1 "2016-03-07T15:01:27Z")

</div>

Why are we getting this error? I know our open file limit is set to 1024 on the Linux box. If we have to raise it, that is fine but the error goes away when I delete one of the schemas. I assume what is going on is that the program opens all the database tables that it needs to backup so if that is true then we could almost never be able to do a full backup without knowing the number of tables that will be backed-up.

I guess what I am asking is how does Xtrabackup leverage that variable to become a problem?

Using server version 5.6.27-75.0-log  
innobackupex version 2.3.3 based on MySQL server 5.6.24 Linux (x86\_64) (revision id: 525ca7d)  
xtrabackup: uses posix\_fadvise().  
xtrabackup: cd to /var/lib/mysql\_production  
xtrabackup: open files limit requested 0, set to 1024  
xtrabackup: using the following InnoDB configuration:  
xtrabackup: innodb\_data\_home\_dir = ./  
xtrabackup: innodb\_data\_file\_path = ibdata1:12M:autoextend  
xtrabackup: innodb\_log\_group\_home\_dir = ./  
xtrabackup: innodb\_log\_files\_in\_group = 2  
xtrabackup: innodb\_log\_file\_size = 524288000  
160229 11:06:43 \>\> log scanned up to (287150252406)  
xtrabackup: Generating a list of tablespaces  
2016-02-29 11:06:44 7fda43cc1720 InnoDB: Operating system error number 24 in a file operation.  
InnoDB: Error number 24 means ‘Too many open files’.  
InnoDB: Some operating system error numbers are described at  
InnoDB: [URL][http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html[/URL]](http://dev.mysql.com/doc/refman/5.6/en/operating-system-error-codes.html%5B/URL%5D)  
InnoDB: Error: could not open single-table tablespace file ./xtrabackup\_test\_2/SurveyFlowAuditAssignRole.ibd  
InnoDB: We do not continue the crash recovery, because the table may become  
InnoDB: corrupt if we cannot apply the log records in the InnoDB log to it.  
InnoDB: To fix the problem and start mysqld:  
InnoDB: 1) If there is a permission problem in the file and mysqld cannot  
InnoDB: open the file, you should modify the permissions.  
InnoDB: 2) If the table is not needed, or you can restore it from a backup,  
InnoDB: then you can remove the .ibd file, and InnoDB will do a normal  
InnoDB: crash recovery and ignore that table.  
InnoDB: 3) If the file system or the disk is broken, and you cannot remove  
InnoDB: the .ibd file, you can set innodb\_force\_recovery \> 0 in my.cnf  
InnoDB: and force InnoDB to continue crash recovery here.

---

<div class="post-metadata">

**Author:** ![pnkdoshi](https://avatars.discourse-cdn.com/v4/letter/p/a6a055/32.png) [@pnkdoshi](https://forums.percona.com/u/pnkdoshi)\
**Post date:** [April 28, 2016, 11:53am UTC](https://forums.percona.com/t/error-message-with-open-files-limit-too-low/4761/2 "2016-04-28T11:53:14Z")

</div>

Just curious if any one has also experienced the same issue
