• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Question Migration Unable to copy content of database Too many open files

heopas

New Pleskian
I am trying to migrate a huge website from cpanel to plesk. This website is a WordPress multisite that allows users to create their own blog. Wordpress multisite create new tables for each new user and blog, this is how it works. I have set open-files-limit to 65535 on both servers but I am getting the following error in migration.

stderr: mysqldump: Got error: 1030: "Got error 24 "Too many open files" from storage engine MyISAM" when using LOCK TABLES
 
Some suggestions:

Increase the general maximum file descriptor value. Edit /etc/sysctl.conf and add/modify:
fs.file-max = 65535

Edit /etc/security/limits.conf and add:
mysql soft nofile 65535
mysql hard nofile 65535

Reload values:
# systemctl --system daemon-reload

Restart service:
# service mysql restart
(# service mariadb restart)

You might need to change the MySQL open_files_limit variable, too:
MySQL :: MySQL 5.7 Reference Manual :: 5.1.4 Server Command Options

If this cannot be done you can try to create your MySQL Dump on the CPanel machine by adding
--single-transaction
as a command line parameter. It will break down the transactions to be done one by one.

If that does not help, you can try to user Ozerov's "Bigdump" utility for import.
BigDump: Staggered MySQL Dump Importer
 
Back
Top