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.

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:
    621
    Likes Received:
    6
    Trophy Points:
    18
    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
     
    #1 postcd, Oct 19, 2015
    Last edited: Oct 19, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    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.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  5. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    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?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  7. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    621
    Likes Received:
    6
    Trophy Points:
    18
    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;
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page