Crashtest007 Posted October 3, 2018 Share Posted October 3, 2018 Hi, I am receiving 2 copies of the daily cron being run which is a ZIP file of the Backup files. Can anyone shed some light on why this would be happening please? and offer a solution ! Β Regards, Wayne 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 7, 2018 WHMCS Support Manager Share Posted October 7, 2018 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. 0 Quote Link to comment Share on other sites More sharing options...
Crashtest007 Posted October 7, 2018 Author Share Posted October 7, 2018 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 8, 2018 Share Posted October 8, 2018 @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. 0 Quote Link to comment Share on other sites More sharing options...
Crashtest007 Posted October 8, 2018 Author Share Posted October 8, 2018 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 9, 2018 Share Posted October 9, 2018 @Crashtest007 Could you please open a support ticket so we can look into this further, the cronΒ does handle the backup, it might be worth including -vvv to the end of your cron to see if anything is added to the module log when the standard daily cron runs. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.