• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Issue Backup error. Error: Failed to exec mysqldump: Exit code: 3

zed2007

Basic Pleskian
Server operating system version
Ubuntu 22.04.2 LTS
Plesk version and microupdate number
Version 18.0.50 Update #2
After migrating the domain to a new server, I had problem with the backup.

Warning: Database "usr_p361672_1"
Unable to make database dump. Error: Failed to exec mysqldump: Exit code: 3: WARNING: Forcing protocol to TCP due to option specification. Please explicitly state intended protocol. mysqldump: Error 2013: Lost connection to server during query when dumping table `magnalister_orders` at row: 520811
Warning: Database "usr_p361672_1"
Unable to back up database usr_p361672_1. Error: DB query failed: SQLSTATE[HY000] [2002] No such file or directory

Which is also interesting, the first 3 backups (1 Full + 2 Incr.) were without errors.
Also, on the previos server was MariaDB 10.2 , and on the new server - 10.6
 
It seems that the database server crashed during the dump. This often happens when a corrupt table or index file is encountered. This symptom does not occur during regular operations, because it needs the access attempt to the corrupt file which may not take place in regular operations. It would be good to look for "mariadb" related entries in /var/log/messages to find out more details on what happened immediately before the crash. Normally you will find entries there describing the issue, e.g. mentioning a file, a database or table.
 
Yes, indeed, the database sever is behaving strangely. Here are the logs during the start of the backup. And before database crash.
 

Attachments

  • Backup_start.jpg
    Backup_start.jpg
    222.5 KB · Views: 17
  • DB_crash.jpg
    DB_crash.jpg
    314.7 KB · Views: 15
That is not the right "look". You'll need to find the location where the restart is logged. Before that you'll find a sequence what happenend that a restart attempt was necessary. Or a shutdown attempt. Try searching for the right timecode with
# grep mariadb /var/log/messages | grep shutdown
 
Back
Top