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!

cPanel backups stopped being made suddenly

Discussion in 'Data Protection' started by postcd, Oct 19, 2015.

Tags:
  1. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    Hello,

    i noticed that for past many days daily backups suddenly stopped being created by WHM (im doing local backups (no Legacy ones) to the WHM server hard drive)

    I checked Backup configuration from WHM and backups are enabled. It just suddenly stopped and no new backups are automatically made by schedule.

    # df -h | grep -v virtfs
    (so there is enough space i assume)

    # ls -lt /usr/local/cpanel/logs/cpbackup | head
    (last backup log file is Oct 8, now is Oct 19)

    # ps ax | grep back
    Please any ideas what to do to make backups working again?

    Someone mentioned how to run backup manually, but i assume it do not solve the issue i have?
    # /usr/local/cpanel/bin/backup --force

    thank you
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 postcd, Oct 19, 2015
    Last edited: Oct 19, 2015
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    Check to ensure the "crond" service is running on your system. You can restart it via:

    Code:
    service crond restart
    Also, you should kill those hanging backup processes. EX:

    Code:
    kill -9 PID
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    SOLVED
    Thanks alot Michael, that helped. Crond was running, so i restarted it. Then i killed these hanged backup processes as you suggested and today i see new daily backups was created. Not sure why backup processes was hanged, but it appears backups are working again now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    The issue repeats, please is there any command that i can run via cron to automatically kill the backup processes if they run too long? time?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's a better idea to terminate the backup process and then remove the temporary backup archive data for the account so that it's generated successfully on the next backup attempt. Otherwise, you risk corrupted restore data if you kill the parent process before the backup completes.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    Because issue with hanged backups continued i tried to add this script into crontab:
    Code:
    #!/bin/bash
    # This script will kill process which running more than X hours
    # egrep: only processes matching set phrasses
    # grep: only processes running more than X (30) hours
    
    PIDS="`ps eaxo bsdtime,pid,comm | egrep "pkgacc|pkgggg|pkkkkk" | grep " 30:" | awk '{print $2}'`"
    for pid in ${PIDS}; do { kill -9 $pid; }; done;
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,532
    Likes Received:
    1,966
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @postcd,

    Have you considered opening a support ticket so we can take a closer look and determine why your backup processes are hanging?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice