Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

The backup process completed, but 2 errors occurred

Discussion in 'General Discussion' started by Nirjonadda, Apr 19, 2018.

  1. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    578
    Likes Received:
    14
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    I am getting email about The backup process completed, but 2 errors occurred. What the fix for this issue?

    Code:
         
    The system started a separate transport process for remote backup destinations. When the transport completes, the system will send an additional notification with the status of the transport if any errors were encountered.
    
    The backup process encountered the following errors:
    [2018-04-20 02:36:54 +0600] user_database: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect
    warn [pkgacct] user_database: mysqldump: Got error: 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) when trying to connect 
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    944
    Likes Received:
    66
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Nirjonadda

    Based on that output it seems as though MySQL was not responding when the MySQL dump portion of the backup took place or it was not running. Can you confirm if it is now running?
     
  3. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    578
    Likes Received:
    14
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    How to check its running or not?
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    944
    Likes Received:
    66
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    You can see this at WHM>>Server Status>>Service Status or via CLI you can run something like:

    Code:
    /scripts/restartsrv_mysql --status 
     
  5. Nirjonadda

    Nirjonadda Well-Known Member

    Joined:
    May 8, 2013
    Messages:
    578
    Likes Received:
    14
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Yes, mysql 5.7 is up via WHM>>Server Status>>Service Status
     
  6. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    944
    Likes Received:
    66
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,

    That's great, it does seem to have been down during the backup process and the only way to test is to run another backup. You can do this one of two ways:

    - via CLI initiate the backup process with the following:
    Code:
    /usr/local/cpanel/bin/backup --force
    - Wait for the automated backup process to initiate on its own

    In either case, I would monitor the system during the backup process to ensure that the server continues to function normally.


    Thank you,
     
Loading...

Share This Page