Jump to content

Cron Job completion issue .


Recommended Posts

Hello Dear WHMCS Community ,

After moving my WHMCS installation to a new cPanel , I noticed automation warning :

 

The last recorded successful end time is 2025-06-26 09:01:28. Please refer to our troubleshooting guide for details regarding how to identify the problem preventing daily cron completion. Learn more...

 

it seems the cron job is running but it's not completing . I asked my web hosting provider to run the cron job in server terminal :

/opt/cpanel/ea-php81/root/usr/bin/php -q /home/wvrfktuw/public_html/domain.com/crons/cron.php all -F -vvv

And this is what they sent to me :

 

WHMCS Automation Task Utility: all

Daily Cron Automation Mode

Queuing Tasks

Force run any tasks: ignore "in progress" and "is due"
Task queues ready

Executing Application Queue

0/34 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% < 1 sec/< 1 sec 22.0 MiB
Currency Exchange Rates
1/34 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 2% 1 sec/34 secs 22.0 MiB
Product Pricing Updates
2/34 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░] 5% 1 sec/17 secs 22.0 MiB
Tenant Usage Metrics
3/34 [▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░] 8% 4 secs/45 secs 24.0 MiB
Invoices
4/34 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░] 11% 5 secs/43 secs 24.0 MiB
Late Fees
5/34 [▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░] 14% 5 secs/34 secs 26.0 MiB
Credit Card Charges
6/34 [▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░] 17% 5 secs/28 secs 26.0 MiB
Invoice & Overdue Reminders
Terminated

 

It seems the process is terminated mid way . There is no specific errors and it just says "Terminated" . How can I fix this issue or investigate it further to find the cause ?

 

Kind Regards ,

Link to comment
Share on other sites

  • 3 weeks later...

I have been dealing with this issue for over 2 weeks now . Unfortunately , I haven't yet been able to fix the problem . The termination happens without any errors . For example today it stopped at overdue suspensions :

 

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

yesterday it stopped at SSL Sync :

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

As you see there are no errors , it just stops . Here is my php.ini that is being used for the cronjob :

 

display_errors = Off
max_execution_time = 3600
max_input_time = 3600
max_input_vars = 1000000
memory_limit = 6144M
post_max_size = 8072M
session.gc_maxlifetime = 1440
session.save_path = "/var/cpanel/php/sessions/ea-php74"
upload_max_filesize = 2048M
zlib.output_compression = On

I also talked with my hosting provider and they set cloudlinux limits to maximum amounts possible .

I have run out of ideas . does anyone know how I can get a log for the reason of termination instead of just saying Terminated ?

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