Jump to content

Cronjob running but no daily mail is sent


danielsm

Recommended Posts

Hello,

I have a strage situation with whmcs after upgrade to last version.

The cron its running without problem aparently, but i dont receive the email regarding "Cron Job Activity". 

I did all stuff from docs, debug cron, andvance debug cron, but in llog file everything is ok (ive attached the cron log).

in General settings ive checked "display erros" and no errors are shown in system logs, everything is running.

I also checked the DB to see if changes are made, and yes, all changes are made

Now, if somene can help me, or pointing me to the right direction , what should i also check and where please do so.

for a better understanging, i will describe my whmcs details

License from a third party vendor (reseller with included license)

All my crons are outside public_html folder,

PHP version: 7.4

if i run the cron manualy, again, no errors, but this time the email is sent.

Thank you

cron.log

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @danielsm

Thanks for sharing those logs, they show the Cron Digest email being sent and no PHP errors occurring to indicate a fault.

Is that log from your running cron.php via the command line, or a log generated by the cron job?

If the issue only occurrs when running cron.php via a Cron Job, then the next step is to pipe the output to a file and observe what happened.

Link to comment
Share on other sites

5 hours ago, WHMCS John said:

Hi @danielsm

Thanks for sharing those logs, they show the Cron Digest email being sent and no PHP errors occurring to indicate a fault.

Is that log from your running cron.php via the command line, or a log generated by the cron job?

If the issue only occurrs when running cron.php via a Cron Job, then the next step is to pipe the output to a file and observe what happened.

Its the log generated by daily cron https://help.whmcs.com/m/automation/l/1282145-advanced-cron-troubleshooting-intermittent-issues

when im running manualy the email is sent

Edited by danielsm
Link to comment
Share on other sites

And strage, this is the last cron log (from a huge log)

WHMCS Automation Task Utility: all
==================================

 Daily Cron Automation Mode

Queuing Tasks
-------------

 Applying "in progress" and "is due" state filters
 Task queues ready

Executing Application Queue
---------------------------

 
 Currency Exchange Rates
 
 Product Pricing Updates
 
 Invoices
 
 Late Fees
 
 Credit Card Charges
 
 Invoice & Overdue Reminders
 
 Domain Renewal Notices
 
 Cancellation Requests
 
 Overdue Suspensions
 
 Overdue Terminations
 
 Fixed Term Terminations
 
 Inactive Tickets
 
 Delayed Affiliate Commissions
 
 Process Email Queue
 
 Email Marketer Rules
 
 Process Email Campaigns
 
 SSL Sync
 
 Server Usage Stats

 

after Server Usage Stats the cron stops, but if i run it manually. after Server Usage Stats the cron still running with this 
https://gyazo.com/9fd8960b46809308da63e33ba7c1130d

Now, i think its somenting with that, how can i investigate the server usage stats to see whats happening there? or shoul i increase php execution time?

Link to comment
Share on other sites

  • WHMCS Support Manager

Hi @danielsm,

Thanks for providing that information. This does indeed indicate that the cron.php script is being killed prematurely by the server, as there's no PHP Fatal error being recorded, and no error when run manually.

This guide will help identify the php.ini to modify:https://help.whmcs.com/m/automation/l/969680-identifying-the-php-ini-used-for-in-command-line-cron-engine

There may be other server-side restrictions limiting the execution time for cron scripts to be aware of.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated