Cron Jobs stopped working - URGENT

Status
Not open for further replies.

btlclanx

Member
Messages
31
Reaction score
0
Points
6
My cron job has recently stopped working however I have made no change to anything!! Can support please take a look this is urgent!
 

btlclanx

Member
Messages
31
Reaction score
0
Points
6
I can't access the x10hosting site:

37763003336d9626821ca84c3930d97d.png


PLEASE CAN SUPPORT GET THEIR SERVERS SORTED!

I will not be ordering premium with this kind of service!!
 

fit4school49

New Member
Messages
12
Reaction score
0
Points
1
Crons should now be working properly, please confirm when possible.

Mine aren't working as well. I added a new one as of December 8th. The new one is working, but all the others aren't executed.

Thanks for your help
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Hi, I believe I've located the cause of the issue with web requests from the local server back to itself, and that the problem is now resolved. Please let me know if this is not the case or if the problem returns.
 

fit4school49

New Member
Messages
12
Reaction score
0
Points
1
never count on free-hosting Cron jobs to run or to run on time
Actually they worked perfectly for quite a while now – then all of a sudden they all stopped working. After Bryon's intervention some of them started working again, not all though.

be sure to have any script that runs by a Cron job to make a log file - with the server date and time it ran - in your account

That I have. That's why I know which are working and which aren't. Doesn't help much though.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Do you log the error output too?
Are they all on the same account?
Have you checked cPanel to see if they are still listed?
Is there a pattern to which ones do not run?
 

fit4school49

New Member
Messages
12
Reaction score
0
Points
1
Do you log the error output too?
Are they all on the same account?
Have you checked cPanel to see if they are still listed?
Is there a pattern to which ones do not run?

Which error output? php?
All of the same account, still listed in cPanel.
My guess is that curl isn't working properly anymore. The cron jobs that call a curl to one of my php scripts with GET-arguments don't work on a regular basis.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Which error output? php?

Cron job listing:

Code:
/usr/bin/php -q  /home/igor/public_html/test/test.php >>/home/igor/public_html/test/test_log.txt 2>&1

Any output from test.php is logged and any errors, such as file not found (you mistyped the script name), etc.
Make sure you do not suppress error reporting in your script.
 

fit4school49

New Member
Messages
12
Reaction score
0
Points
1
Cron job listing:

Code:
/usr/bin/php -q  /home/igor/public_html/test/test.php >>/home/igor/public_html/test/test_log.txt 2>&1

Any output from test.php is logged and any errors, such as file not found (you mistyped the script name), etc.
Make sure you do not suppress error reporting in your script.

Thanks, I've changed it. I don't think that there's something wrong with the cron command per se, since it has all been working perfectly before. The log file confirms that the curl commands fail to execute, I always get
Code:
  % Total    % Received % Xferd  Average Speed  Time    Time    Time  Current
                                Dload  Upload  Total  Spent    Left  Speed

  0    0    0    0    0    0      0      0 --:--:-- --:--:-- --:--:--    0
curl: (56) Failure when receiving data from the peer

So I changed the 'curl' to a 'wget -qO-' and first I only got
Code:
HTTP request sent, awaiting response... Read error (Connection reset by peer) in headers.
Retrying.
But now it seems to work pretty well, I'll let it run for a while and let you know if it's stable or not.

Edit: Sometimes, it can't establish a connection after 20 retries and ends with a "Giving up."
 
Last edited:
Status
Not open for further replies.
Top