Cron stopped working after WHM/cPanel update

Chase34

Registered
Mar 11, 2010
2
0
51
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.
 

faisikhan

Well-Known Member
Dec 12, 2011
86
0
56
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.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
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.
 

Chase34

Registered
Mar 11, 2010
2
0
51
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,
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
42
348
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!