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.

Cron stopped working after WHM/cPanel update

Discussion in 'General Discussion' started by Chase34, Dec 19, 2011.

  1. Chase34

    Chase34 Registered

    Joined:
    Mar 11, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I have a VPS and my cron files have stopped working. It was working prior to the updates. :confused:

    I am using wget in cPanel Cron jobs. It has been suggested that I use curl. However I have not used curl before and would prefer to figure out what has caused the cron jobs from working.

    This is what I have, site and file edited.

    sleep 10; /usr/bin/wget -O - -q -t 1 http://www.mytestsite.com/mytestcron.php>/dev/null 2>&1

    Can someone help me out here.

    I am using version 11.30.5 (build 2)>

    Would greatly appreciate the help.
     
  2. faisikhan

    faisikhan Well-Known Member

    Joined:
    Dec 12, 2011
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Islamabad, Pakistan
    cPanel Access Level:
    Root Administrator
    Hi,

    It has been usually experienced that the up-gradation can cause some of the daemons to be stopped so,

    1. Are you sure the cron daemon is running properly? You can check as:
    ps -aux | grep crond

    And did you restart it manually once you found the cron jobs are not working? You can restart as:
    service crond restart

    I hope it will help to solve the problem.
     
  3. 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
    Also, for future reference, you can see if cron jobs are running or not in /var/log/cron location for the log files.
     
  4. Chase34

    Chase34 Registered

    Joined:
    Mar 11, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Sorry for delaying my response. The cron appears to be functioning manually. However, timers and counters are still not funtioning via cron jobs. The code is valid. I've been checking all of my logs, because something has this hanging and my site is no longer functioning properly.

    Thanks,
     
  5. 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
    Hello,

    Please provide the output for this command as mentioned previously:

    Code:
    ps -aux | grep crond
    Crons will work manually if crond isn't running, so manually running a cron would not indicate crond is processing.

    Your latest response has me confused on whether crond is running and whether it has been restarted or not. Also, whether it is running or not, please restart it regardless to ensure it is properly functioning:

    Code:
    /etc/init.d/crond restart
    Thanks!
     
Loading...

Share This Page