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.

upcp and cpbackup never run

Discussion in 'Data Protection' started by circlec, Jun 26, 2004.

  1. circlec

    circlec Active Member

    Joined:
    Jun 15, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Cape Town, South Africa
    Hi,

    I have 2 seperate cPanel servers, each configured in the same way and made sure of. On server A /scripts/upcp and /scripts/cpbackup run every night and a mail is sent to me.

    On server B, although everything is configured perfectly, it never runs and neither have I ever received a email to say that cron or upcp ran! Also, I understand that the /scripts/cpbackup results will be included in the upcp email that is sent, this is the case with serverA but not with serverB - nothing is received or done on serverB.

    Any idea?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If both servers are configured the same as far as upcp and backups, the next 2 things I'd check are the system mail settings in WHM, and root's cron job settings.
     
  3. gordonrp

    gordonrp Member

    Joined:
    Oct 14, 2004
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    service crond restart

    I bet cron isnt running, i just had the same problem... stumped me for weeks.

    gp
     
  4. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    18
    I had this problem, but appears it's rsync:

    rsync: failed to connect to rsync.cpanel.net: Connection timed out
    rsync error: error in socket IO (code 10) at clientserver.c(83)

    Anyone has any fix ?
     
  5. circlec

    circlec Active Member

    Joined:
    Jun 15, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Cape Town, South Africa
    gp,

    I noticed that indeed crond was not running. I have done the restart as you have mentioned. We shall now see if this machine now performs the upcp's and cpbackups as the other machine does.

    It will be very interesting to see if it actually does because this machine has been up for around a year and has never done it, im sure crond hasnt been stuck for over a year already!
     
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should be able to tell when cron was last running by checking through its log file:

    /var/log/cron

    Unless it was rotated out of the way long before you restarted it ;)
     
  7. circlec

    circlec Active Member

    Joined:
    Jun 15, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Cape Town, South Africa
    chirpy,

    Thanks for the reply. It seems that crond has been running for other users on the machine and also there are somethings that root has called up, wheather that was manual while something else was restarting im not sure but it looks like this:

    Oct 6 16:08:46 pentagon crontab[1307]: (root) LIST (root)
    Oct 6 16:08:47 pentagon crontab[1317]: (root) LIST (root)
    Oct 6 16:08:47 pentagon crontab[1318]: (root) LIST (root)
    Oct 6 16:08:47 pentagon crontab[1319]: (root) REPLACE (root)
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Those are indeed just things being listed, added, etc to user crontabs. Unless you have lines like:

    Oct 17 17:00:00 homer CROND[21613]: (root) CMD (/usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1)

    This is a job actually running. Could be that it has been down for a while ;)
     
  9. circlec

    circlec Active Member

    Joined:
    Jun 15, 2004
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Cape Town, South Africa
    ahhhh take a look at this:

    Oct 18 00:30:01 pentagon CROND[8533]: (root) CMD (/usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1)
    Oct 18 00:35:00 pentagon CROND[12324]: (root) CMD (/usr/bin/mrtg /etc/mrtg/mrtg.cfg)
    Oct 18 00:35:00 pentagon CROND[12325]: (root) CMD (/usr/local/cpanel/bin/dcpumon >/dev/null 2>&1)

    seems that starting the cron indeed worked, now to see if upcp and cpbackups start performing too!! how can I double check on those besides by checking if it actually did the files across FTP?
     
  10. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Easiest way is to check the last modified date on the backups. You could check /var/log/cpupdate.log to see when it was last modified, but if you are using the latest version for you already, this won't work.
     
  11. HendrikM

    HendrikM Active Member

    Joined:
    Jun 26, 2004
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
Loading...

Share This Page