CRON Failure

  • chrishall57
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 days 9 hours ago #10179 by chrishall57
CRON Failure was created by chrishall57
Morning Jose, 

Getting this error message by email from a couple of my sites on the same server:Hello,

Planned execution of Scheduled Task#1, SCP Cron, has failed with exit code 5 at Monday, 08 July 2024 14:09.

Please visit the Joomla! backend for more information.

What can I do to rectify?

Thanks

Please Log in or Create an account to join the conversation.

More
3 days 8 hours ago #10180 by Jose
Replied by Jose on topic CRON Failure
Hi Chris,

To debug what's happening go to System -> Global configuration -> Logging tab and enable the "Log Almost Everything" option. This will add info into the everything.php file located in the path set in the "Path to Log Folder" field od the same tab section.

If do you get the same error in the future, just open that file and search for errors.

Regards,
Jose

Please Log in or Create an account to join the conversation.

  • chrishall57
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 days 8 hours ago #10181 by chrishall57
Replied by chrishall57 on topic CRON Failure
Hi, had a look in the log folder and there were logs already there.

A file called joomla_scheduler.php contains this:#
#<?php die('Forbidden.'); ?>
#Date: 2024-07-05 05:23:56 UTC
#Software: Joomla! 4.4.5 Stable [ Pamoja ] 28-May-2024 16:00 GMT

#Fields: date time priority message
2024-07-05 05:23:56 INFO Running task#01 'SCP Cron'.
2024-07-05 05:24:10 INFO Successfully finished task#01 in 13.21 (net 13.21) seconds.
2024-07-06 06:40:22 INFO Running task#01 'SCP Cron'.
2024-07-06 06:45:15 ERROR Task> Could not execute: /usr/sbin/sendmail
2024-07-06 06:45:15 WARNING Task#01 exited with code 5 in 292.48 (net 292.49) seconds.
2024-07-07 11:24:51 INFO Running task#01 'SCP Cron'.
2024-07-07 11:25:07 INFO Successfully finished task#01 in 16.38 (net 16.39) seconds.
2024-07-08 14:09:08 INFO Running task#01 'SCP Cron'.
2024-07-08 14:13:30 ERROR Task> Could not execute: /usr/sbin/sendmail
2024-07-08 14:13:30 WARNING Task#01 exited with code 5 in 262.10 (net 262.10) seconds.
Does this mean anything? 

Please Log in or Create an account to join the conversation.

More
3 days 8 hours ago #10182 by Jose
Replied by Jose on topic CRON Failure
Yes,

It means that the task was not able to send the email after the cron. Is sending email disabled in the site? If so, just also disable that option in SCP (Global configuration -> File integrity tab -> Send email if integrity is wrong).

If the option to send emails is enabled in the site, then be fully sure that you have valid info into SCP -> Waf configuration -> Email notifications tab.

Regards,
Jose

Please Log in or Create an account to join the conversation.

  • chrishall57
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
3 days 7 hours ago #10183 by chrishall57
Replied by chrishall57 on topic CRON Failure
Thanks Jose, given that I'm seeing this on a number of sites on the same server, and I remember the host did a physical server change a few weeks ago, I expect something has changed on the server.

As you suggest I will simply turn off the email notification for the CRON.

Thanks again!

Please Log in or Create an account to join the conversation.

More
3 days 7 hours ago #10184 by Jose
Replied by Jose on topic CRON Failure
You're welcome! :)

Regards,
Jose

Please Log in or Create an account to join the conversation.

Time to create page: 0.196 seconds