Community Forums

Discuss, share and get help from our community of friendly WHMCS users

Close
Login to Your Account
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2017
    Posts
    5

    Default Cron problem, System Cron Tasks don't completed successfully within the last 24 hours.

    Hi,

    I getting this eror:

    ===========================
    System Cron Tasks
    The system cron does not appear to have completed successfully within the last 24 hours. Check your activity logs or learn more about enabling the cron in our documentation.
    ===========================


    After try to search there is problem finally I Install new server with new fresh install. After config Cron, everything was work and get every day "WHMCS Cron Job Activity" email.

    Just I setup of DataBase backup, config hosting servers. The problem start be same... (funny is everything work, but not at full what must cron do)

    Everything work like shut to work, all config made like must be made (second install) everything is double check. I don't see any issue from my side (i hope).

    Then I delete all not using servers, move cron back to the public, change back cron patch, delete mysql backup form whmcs. Everything was start work normally again...

    I really don't know there is problem, really not cron directory.

    Now I try catch problem step by step, In my opinion its a bug...


    Maybe somebody can explain how to run immediately cron? what not need wait 24 hours or half day for it?

    I'm not talk about whmcs/crons/cron.php or others but I need run immediately what cron who runs once a 24 hour...

    in (Automation Settings -> Scheduling -> Time of Day) I need to forced to run it for my testing...

    how to do it by WHMCS system? Directadmin panel? or ssh connection?

    open in website cron.php its not work... there is another file of main cron?

    thanks

  2. #2
    Join Date
    Aug 2016
    Location
    Auckland, New Zealand
    Posts
    721

    Default Re: Cron problem, System Cron Tasks don't completed successfully within the last 24 hours.

    Hi SVytis,

    Thanks for your post on the community forums.

    Can you confirm what your cron setup as?

    What happens if you run the following in your server terminal

    php -q /path/to/cron.php --force -vvv
    Thanks,
    Chris D.

    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  3. #3
    Join Date
    Apr 2017
    Posts
    5

    Default Re: Cron problem, System Cron Tasks don't completed successfully within the last 24 hours.

    Hi,

    problem is still is here...


    I delete all whmcs configuration (servers, backup and so), and start made force cron by ssh, Everything work fine without any problems, no problems, start config server back, one by one,

    I config mysql backup to email, after FORCE cron i get emails, I get full cron work with the cron closing.
    I config mysql backup to ftp, after FORCE cron i get emails, I get full cron work with the cron closing.
    I config servers, after FORCE cron i get emails, I get full cron work with the cron closing.
    I config everything what I was deleted, after FORCE cron i get emails, I get full cron work with the cron closing.
    I move cron directory, write info to cron config and whmcs config there is cron, after FORCE cron i get emails, I get full cron work with the cron closing.

    I start use normaly WHMCS without any problems, made some test users, everything is fine! no problems, I made more time of force cron, and cron work without any problems, I get emails, I get backup to FTP and email, Cron closing normaly...

    whats all, I thing case is close...


    Just now I was wait more then 24 hour until cron will make by system normal working without my force cron... to be sure what everything is perfect.

    And is again problems, same problem:
    -------------------------------
    System Cron Tasks
    The system cron does not appear to have completed successfully within the last 24 hours. Check your activity logs or learn more about enabling the cron in our documentation.
    -------------------------------

    by log, cron stop:

    Automated Task: Starting Server Usage Stats

    and this is end of the cron, no more....


    I really don't know there is problem...

  4. #4
    Join Date
    Aug 2016
    Location
    Auckland, New Zealand
    Posts
    721

    Default Re: Cron problem, System Cron Tasks don't completed successfully within the last 24 hours.

    Hi SVtis,

    Please open a support ticket so we can investigate this further.
    Thanks,
    Chris D.

    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

  5. #5
    Join Date
    Apr 2017
    Posts
    5

    Default Re: Cron problem, System Cron Tasks don't completed successfully within the last 24 hours.

    Hi Chris,

    I open ticket, Sometime no problem, sometime problems... I just want found there is problem and maybe it will help for future yours costumers.

    if I run:

    php -q cron.php --force -vvv

    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/22 [░░░░░░░░░░░░░░░░░░░░░░░░░░░░] 0% < 1 sec/< 1 sec 16.0 MiB
    Currency Exchange Rates
    1/22 [▓░░░░░░░░░░░░░░░░░░░░░░░░░░░] 4% < 1 sec/< 1 sec 16.0 MiB
    Product Pricing Updates
    2/22 [▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░] 9% < 1 sec/< 1 sec 16.0 MiB
    Invoices
    3/22 [▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░] 13% < 1 sec/< 1 sec 16.0 MiB
    Late Fees
    4/22 [▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░] 18% < 1 sec/< 1 sec 16.0 MiB
    Credit Card Charges
    5/22 [▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░] 22% < 1 sec/< 1 sec 16.0 MiB
    Invoice & Overdue Reminders
    6/22 [▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░] 27% < 1 sec/< 1 sec 16.0 MiB
    Domain Renewal Notices
    7/22 [▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░] 31% < 1 sec/< 1 sec 18.0 MiB
    Cancellation Requests
    8/22 [▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░] 36% < 1 sec/< 1 sec 18.0 MiB
    Overdue Suspensions
    9/22 [▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░] 40% < 1 sec/< 1 sec 18.0 MiB
    Overdue Terminations
    10/22 [▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░] 45% < 1 sec/< 1 sec 18.0 MiB
    Fixed Term Terminations
    11/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░] 50% < 1 sec/< 1 sec 18.0 MiB
    Inactive Tickets
    12/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░] 54% < 1 sec/< 1 sec 18.0 MiB
    Delayed Affiliate Commissions
    13/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░] 59% < 1 sec/< 1 sec 18.0 MiB
    Affiliate Reports
    14/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░] 63% < 1 sec/< 1 sec 18.0 MiB
    Email Marketer Rules
    15/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░] 68% < 1 sec/< 1 sec 18.0 MiB
    Credit Card Expiry Notices
    16/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░] 72% < 1 sec/< 1 sec 18.0 MiB
    Server Usage Stats
    17/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░] 77% 1 min/1 min 20.0 MiB
    Overage Billing Charges
    18/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░] 81% 1 min/1 min 20.0 MiB
    Client Status Update
    19/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░] 86% 1 min/1 min 20.0 MiB
    Domain Expiry
    20/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░] 90% 1 min/1 min 20.0 MiB
    Ticket Escalation Rules
    21/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░] 95% 1 min/1 min 20.0 MiB
    WHMCS Updates
    22/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% 1 min/1 min 24.0 MiB


    Sending Daily Cron Digest email

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

    4/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100% < 1 sec/< 1 sec 26.0 MiB


    [OK] Completed



    Like you see system little stack on 72% (Server Usage Stats) but after min he past everything...

    from WHMCS log not show anything more then (Automated Task: Starting Server Usage Stats) he stop here... and still I have "System Cron Tasks 24 hour error"

    But in this case I get mysql backup email and to ftp. Just WHMCS logs stop at (Server Usage Stats) and then Cron was in schedule he stop and I don't get any mysql backup and so...



    I made again same cron: php -q cron.php --force -vvv

    And scenario is a same, 72% stop, after one min he past. everything OK by ssh, I get "WHMCS Database Backup" by email and FTP, WHMCS last log is "Automated Task: Starting Server Usage Stats" and still I have "System Cron Tasks 24 hour error"


    I removed one server from servers setup, it was CentovaCast server witch I using, but this server was not connect to any product. Force cron past. No errors from log, and "System Cron Tasks 24 hour error was gone"

    Its seems is working now, but it is same scenario like yesterday, It was work, no errors, all log is in same place, but after 24 hour its back to same problem without any changes...


    I will check it. And inform if be same situation.

  6. #6
    Join Date
    Aug 2016
    Location
    Auckland, New Zealand
    Posts
    721

    Default Re: Cron problem, System Cron Tasks don't completed successfully within the last 24 hours.

    Hi,

    Do you happen to have a server that is no longer active still trying to check for Usage Statistics?

    What is your PHP Memory Limit & Timeouts?
    Thanks,
    Chris D.

    WHMCompleteSolution
    The Complete Client Management, Billing & Support Solution
    www.whmcs.com

Similar Threads

  1. The system cron does not appear to have completed successfully within the last 24 hours.
    By fireupjb in forum Installation, Upgrade, and Import Support
    Replies: 6
    Last Post: 04-18-17, 03:23 PM
  2. CRON not completed
    By nvidian in forum Using WHMCS
    Replies: 4
    Last Post: 01-16-17, 05:17 AM
  3. System Cron Tasks Not working showing error. Please help me
    By trewhost in forum Troubleshooting Issues
    Replies: 2
    Last Post: 12-25-16, 04:22 AM
  4. Replies: 38
    Last Post: 03-07-16, 03:46 PM
  5. Domain cron not running successfully
    By wispr in forum Using WHMCS
    Replies: 2
    Last Post: 05-29-15, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •