Jump to content

Receiving 2 Copies of Daily Cron sent to my email address


Recommended Posts

  • WHMCS Support Manager

Hi @Crashtest007,

Please review Utilities > Logs > Activity Log, do you see two sets of "Cron Job" entries per day?

If so, this behaviour indicates that the cron.php file is being triggered twice. Please ensure there is only one cron job touching the cron.php file on your server.

If not, you might have two administrator users sending emails to addresses which ultimately forward to the same mailbox.

Link to comment
Share on other sites

Hi John,

 

Thank you for your reply !

I am the only Administrator - So that rules out anyone else !

 

Below is the cron job for that day:

07/10/2018 21:00
Automated Task: Starting WHMCS Updates
System  
07/10/2018 13:08
Cron Job: Backup Complete
System  
07/10/2018 13:08
Cron Job: Email Backup - Sent Successfully
System  
07/10/2018 13:08
Cron Job: Backup Generation Completed
System  
07/10/2018 13:07
Cron Job: Starting Backup Zip Creation
System  
07/10/2018 13:07
Cron Job: Backup Database Dump Complete
System  
07/10/2018 13:00
Cron Job: Starting Backup Database Dump
System  
07/10/2018 13:00
Cron Job: Starting Backup Generation
System  
07/10/2018 13:00
Cron Job: Completed Daily Automation Tasks

 

 

The only other cron running is the  "Job Activity"  and I only receive that email once. So I am unsure why I am receiving 2 x Zip files from the Backup Cron.

In Cpanel - I only have the Domain Sync and the Cron.php with the following settings:    */5 * * * * php -q /home/mydomainname/crons/cron.php

 

Regards,

Wayne

Link to comment
Share on other sites

@Crashtest007 it sounds like the cron may not be fully running, could you enable errors under Setup > General Settings > Other and then tick Display Errors & Log Errors then login to your servers terminal window and try running the following command 

php -q /home/mydomainname/crons/cron.php -F all -vvv

Check for any errors on the output and go into your admin area Utilities > Logs > Activity Log to check for any errors, pop them in here and we can assist you further.

Link to comment
Share on other sites

Hi Chris,

Thank you!

Here is the Result of the Cron running in Terminal, BUT this is Not producing the System to send 2 x Backup Zip files ???

:


I have 2 Crons running in Cpanel - They are

domainsync.php - which works fine

and cron.php

So maybe the error is not in the Cron, from what I can see, neither of these 2 crons run a Backup. Sorry, I am not overly Tech minded. Maybe I need to be looking elsewhere and not in a Cron . Would that be correct? Or am I missing something?

 

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/26 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░]   0% < 1 sec/< 1 sec 22.0 MiB
 Currency Exchange Rates
  1/26 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░]   3% < 1 sec/< 1 sec 22.0 MiB
 Product Pricing Updates
  2/26 [▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░]   7% < 1 sec/< 1 sec 22.0 MiB
 Invoices
  3/26 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░]  11% < 1 sec/< 1 sec 24.0 MiB
 Late Fees
  4/26 [▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░]  15%  1 sec/7 secs 24.0 MiB
 Credit Card Charges
  5/26 [▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░]  19%  1 sec/5 secs 24.0 MiB
 Invoice & Overdue Reminders
  6/26 [▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░]  23%  1 sec/4 secs 24.0 MiB
 Domain Renewal Notices
  7/26 [▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░]  26%  1 sec/4 secs 24.0 MiB
 Cancellation Requests
  8/26 [▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░]  30%  1 sec/3 secs 26.0 MiB
 Overdue Suspensions
  9/26 [▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░]  34%  1 sec/3 secs 24.0 MiB
 Overdue Terminations
 10/26 [▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░]  38%  1 sec/3 secs 24.0 MiB
 Fixed Term Terminations
 11/26 [▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░]  42%  1 sec/2 secs 24.0 MiB
 Inactive Tickets
 12/26 [▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░]  46% 2 secs/4 secs 24.0 MiB
 Delayed Affiliate Commissions
 13/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░]  50% 2 secs/4 secs 24.0 MiB
 Affiliate Reports
 14/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░]  53% 2 secs/4 secs 24.0 MiB
 Email Marketer Rules
 15/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░]  57% 2 secs/3 secs 24.0 MiB
 Credit Card Expiry Notices
 16/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░]  61% 2 secs/3 secs 24.0 MiB
 Server Usage Stats
 17/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░]  65% 3 secs/5 secs 32.0 MiB
 Overage Billing Charges
 18/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░]  69% 3 secs/4 secs 32.0 MiB
 Client Status Update
 19/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░]  73% 3 secs/4 secs 32.0 MiB
 Domain Expiry
 20/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░]  76% 3 secs/4 secs 32.0 MiB
 Ticket Escalation Rules
 21/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░]  80% 4 secs/5 secs 32.0 MiB
 Data Retention Pruning
 22/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░]  84% 4 secs/5 secs 32.0 MiB
 WHMCS Updates
 23/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░]  88% 14 secs/16 secs 38.0 MiB
 Run Jobs Queue
 24/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░]  92% 14 secs/15 secs 38.0 MiB
 Domain Transfer Status Synchronisation
 25/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░]  96% 14 secs/15 secs 38.0 MiB
 Domain Expiry Synchronisation
 26/26 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 17 secs/17 secs 40.0 MiB


 Sending Daily Cron Digest email

Executing System Queue
----------------------

 3/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░]  75%  1 sec/1 sec  40.0 MiB

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