Cron jobs not working

Status
Not open for further replies.

elinthorsthoman36

New Member
Messages
19
Reaction score
0
Points
0
Dear Support,

For a while I have a weekly cron job set up to send an email with website updates.
It has worked for a couple of months, but now it somehow stopped working.
I also do not get any messages from Cron Daemon anymore if the cron is a succes of failure.
To check if I had something incorrectly set up I have recreated the cron job and fully checked the php script.
The previously working script and the cron are all set up correctly.
Could this be a service on starka that needs restarting?

Your support is very much appreciated.

Many Thanks

Eddie
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
This has nothing to do with the problems with the outgoing mail.

PHP mail() on cron fails in a different way and was a problem before the current general problem with mail().

They turned off the email notification by the cron daemon a long time ago. It was putting too much strain on the mail server. You have to catch errors on your own.

Add something like:

Code:
>>/home/cPanelUserName/public_html/cron_log.txt 2>&1

to the end of your cron command. That way any output, even system errors will be logged. Add an echo that outputs the time and you will be able to see if the cron is running or when it ran last.
 
Status
Not open for further replies.
Top