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.

My cron jobs has stopped running

Discussion in 'General Discussion' started by djblamire, Oct 31, 2011.

  1. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    I had a cron job set to run daily that was a backup script that FTP'd backup files to a remote server.

    Since one of the cpanel updates this has stopped running - Although I can see if listed in the cron file.

    Any ideas what I could do to fix this issue ?

    Any help appreciated.

    Thanks
    Daniel
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Check if crond is still running:

    Code:
    ps aux | grep crond
    If it isn't, then restart it:

    Code:
    /etc/init.d/crond restart
    If that is not the issue, then what does /var/log/cron show for the cronjob in question?

    Code:
    grep cronname /var/log/cron
    Replace cronname with the name of the cronjob file.
     
  3. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    ps aux | grep crond shows:

    root 27065 0.0 0.0 4628 676 pts/0 D+ 19:02 0:00 grep crond

    The last entry in /var/log/cron shows as Sept 16th 2011.

    Something is definitely not quite right....

    Any ideas ?

    Thanks
    Daniel
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Yes, restart crond, because it isn't running. Your return was the grep on crond itself not crond running. Again, it is:

    Code:
    /etc/init.d/crond restart
     
  5. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Thanks.

    That resulted in the following (which makes sense):

    Stopping crond: [FAILED]
    Starting crond: [ OK ]

    I'll see how it goes.

    Thanks again,

    Daniel
     
Loading...

Share This Page