• 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 System Error 11 in mysqldump

dosmasdos

New Pleskian
Server operating system version
AlmaLinux 8.9 (Midnight Oncilla)
Plesk version and microupdate number
Versión 18.0.57 Actualización 1
Hi all!

I have this error in all of my scheduled backups

<description>Unable to make database dump. Error: Failed to exec mysqldump: Exit code: 2: mysqldump: Got error: 2013: "Lost connection to server at 'handshake: reading initial communication packet', system error: 11" when trying to connect

Best regards.
 
Increase max_allowed_packet Size: If your query has blob data, this issue can be fixed by increasing the max_allowed_packet size in your my.ini file. By default, this will be 1M (the allowed maximum value is 1024M). If the supplied value is not a multiple of 1024K, it will automatically be rounded to the nearest multiple of 1024K.

addjust my.cnf

Code:
max_allowed_packet = 500M
 
Dont work :(
Unable to make database dump. Error: Failed to exec mysqldump: Exit code: 2: mysqldump: Got error: 2013: "Lost connection to server at 'handshake: reading initial communication packet', system error: 11" when trying to connect
 
Dont work :(
Unable to make database dump. Error: Failed to exec mysqldump: Exit code: 2: mysqldump: Got error: 2013: "Lost connection to server at 'handshake: reading initial communication packet', system error: 11" when trying to connect
did you really stored this in the right section?

Code:
[mysqld]
max_allowed_packet = 2G

what is your commandline for mysqldump ? there are the option --skip-lock-tables
did you restart you mysql / mariadb Server?
and also --skip-extended-insert
 
#
# These groups are read by MariaDB server.
# Use it for options that only the server (but not clients) should see
#
# See the examples of server my.cnf files in /usr/share/mysql/
#

# this is read by the standalone daemon and embedded servers
[server]
max_allowed_packet = 2G

# this is only for the mysqld standalone daemon
[mysqld]
max_allowed_packet = 2G

[mysqldump]
max_allowed_packet = 2G

#
# * Galera-related settings
#
[galera]
# Mandatory settings
#wsrep_on=ON
#wsrep_provider=
#wsrep_cluster_address=
#binlog_format=row
#default_storage_engine=InnoDB
#innodb_autoinc_lock_mode=2
#
# Allow server to accept connections on all interfaces.
#
#bind-address=0.0.0.0
#
# Optional setting
#wsrep_slave_threads=1
#innodb_flush_log_at_trx_commit=0

# this is only for embedded server
[embedded]

# This group is only read by MariaDB servers, not by MySQL.
# If you use the same .cnf file for MySQL and MariaDB,
# you can put MariaDB-only options here
[mariadb]
max_allowed_packet = 2G

# This group is only read by MariaDB-10.6 servers.
# If you use the same .cnf file for MariaDB of different versions,
# use this group for options that older servers don't understand
[mariadb-10.6]
max_allowed_packet = 2G

~
~
~
~
 
[root@srv7000 my.cnf.d]# service mysql restart || service mariadb restart || service mysqld restart
Redirecting to /bin/systemctl restart mysql.service
 
did you really stored this in the right section?

Code:
[mysqld]
max_allowed_packet = 2G

what is your commandline for mysqldump ? there are the option --skip-lock-tables
did you restart you mysql / mariadb Server?
and also --skip-extended-insert
I dont use any special setting. Its the plesk configuration GUI
 
try to use mysqldump with --skip-lock-tables

Code:
mysqldump --skip-lock-tables --skip-extended-insert --max_allowed_packet=512M -u [username] -p[password] [database] > backup.sql
 
Sind sie bei MariaDB oder mySQL ?

Bei MariaDB liegt die config Datei hier

Code:
nano /etc/mysql/mariadb.conf.d/50-server.cnf
 
- When you run the backup and at the same time watch the output of
> show processlist;
of your database server, do you see many "waiting on table lock" entries?

- Does the database server stay online all through the backup process or are you kicked out of "# plesk db" while running the backup or creating dumps?
 
MariaDB [psa]> show processlist;
+--------+-------------+-----------+---------------+---------+------+----------+------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+--------+-------------+-----------+---------------+---------+------+----------+------------------+----------+
| 4 | admin | localhost | psa | Sleep | 33 | | NULL | 0.000 |
| 5 | admin | localhost | psa | Sleep | 14 | | NULL | 0.000 |
| 148947 | es_ilorbqf | localhost | emailsecurity | Sleep | 291 | | NULL | 0.000 |
| 149337 | es_ilorbqf | localhost | emailsecurity | Sleep | 1377 | | NULL | 0.000 |
| 149587 | es_ilorbqf | localhost | emailsecurity | Sleep | 230 | | NULL | 0.000 |
| 152178 | es_ilorbqf | localhost | emailsecurity | Sleep | 2592 | | NULL | 0.000 |
| 153477 | es_ilorbqf | localhost | emailsecurity | Sleep | 1307 | | NULL | 0.000 |
| 154126 | es_ilorbqf | localhost | emailsecurity | Sleep | 260 | | NULL | 0.000 |
| 157922 | es_ilorbqf | localhost | emailsecurity | Sleep | 1482 | | NULL | 0.000 |
| 159698 | es_ilorbqf | localhost | emailsecurity | Sleep | 395 | | NULL | 0.000 |
| 161226 | es_ilorbqf | localhost | emailsecurity | Sleep | 1021 | | NULL | 0.000 |
| 161482 | es_ilorbqf | localhost | emailsecurity | Sleep | 1162 | | NULL | 0.000 |
| 166578 | admin | localhost | psa | Sleep | 505 | | NULL | 0.000 |
| 166872 | moodle_aero | localhost | moodle | Sleep | 0 | | NULL | 0.000 |
| 166875 | admin | localhost | psa | Query | 0 | starting | show processlist | 0.000 |
| 166912 | moodle_aero | localhost | moodle | Sleep | 0 | | NULL | 0.000 |
| 166942 | admin | localhost | psa | Sleep | 37 | | NULL | 0.000 |
| 166950 | moodle_aero | localhost | moodle | Sleep | 0 | | NULL | 0.000 |
| 166960 | admin | localhost | psa | Sleep | 0 | | NULL | 0.000 |
+--------+-------------+-----------+---------------+---------+------+----------+------------------+----------+
 
Back
Top