• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue Failed to copy content of database

Vikelidis Kostas

New Pleskian
Server operating system version
AlmaLinux release 8.9
Plesk version and microupdate number
Plesk Obsidian 18.0.58.2
I am trying to transfer a subscription from one Plesk server (Centos7.9) to another one (AlmaLinux 8.9) and i am getting the following error:

Code:
Failed to copy content of database 'the_database_name_here'
Migration tools tried to perform operation in 3 attempts: Command execution failed on the source server 'source' (xxx.xxx.xxx.xxx) with non-zero exit code.
command: MYSQL_PWD="$(cat)" mysqldump --no-defaults -h localhost -P 3306 -uadmin --quick --quote-names --add-drop-table --default-character-set=utf8mb4 --set-charset --routines --events the_database_name_here > /root/plesk_migrator/plesk_migrator-a6oxhtf9ddrwtvzarn8hklab3898u1ht/db-dumps/the_database_name_here.sql
exit code: 3
stdout:
stderr: mysqldump: Error 2013: Lost connection to MySQL server during query when dumping table `cvEpBK7UP_pmxe_exports` at row: 1

I have already increased the max_allowed_packet to 1G in both [mysqld] and [mysqldump] sections of MariaDB config files but the problem remains.

If i run the same command (omitting the --no-defaults option) direct in the command line of the server the dump is created successfully.

The man page of mysqldump states that:
Code:
--no-defaults
          Do not read default options from any option file. This must be given as the first argument.

It seems that the mysqldump utility (or the way that Plesk uses this utility) ignores the variables in the config files of MariaDB.

Is there any solution for this?
 
Same Problem here with Plesk-Migrator from Centos-7 to Almalinux-9

Failed to perform an action on subscription '<domain>': Failed to copy content of database '<dbname>' Exception message: Migration tools tried to perform operation in 3 attempts: Command execution failed on the source server 'source' (<ip>) with non-zero exit code.command: MYSQL_PWD="$(cat)" mysqldump --no-defaults -h localhost -P 3306 -uadmin --quick --quote-names --add-drop-table --default-character-set=utf8mb4 --set-charset --routines --events <dbname> > /root/plesk_migrator/plesk_migrator-nqn2zck9ivj19vidca1k9uy31byp2t4x/db-dumps/nordmedia.sqlexit code: 3stdout: stderr: mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table `binaries` at row: 69961

I changed [mysqldump] sections but because of "--no-defaults" it has no use.

the same line with
mysqldump --no-defaults --max_allowed_packet=1024M ...
works.
Any help?
 
Back
Top