Jump to content
Sign in to follow this  
SSHosting

System Health Cron Warning

Recommended Posts

I'm having a System Health Warning towards cron. Our WHMCS (7.2.3) was pre-installed with softaculous. Here are the warnings below:

 

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.

 

Pop Cron Ticket Import

We notice you have POP3 account connection details configured for at least one support department, but the ticket import cron task does not appear to have completed successfully within the past hour. Please ensure the cron is configured correctly. You can learn more about pop email importing in our documentation.

 

 

Here is the cron set up in cPanel(username was replaced for security:

 

*/5	*	*	*	*	php -q /home/username/whmcsdata/crons/cron.php

*/5	*	*	*	*	php -q /home/username/whmcsdata/crons/pop.php

0	3	*/2	*	*	php -q /home/username/whmcsdata/crons/domainsync.php

 

 

Thanks!

Share this post


Link to post
Share on other sites

Hey SSHosting,

 

Thanks for getting in touch.

 

It sounds like something may be preventing the cron from running could you please try running the following in your servers terminal window and see if any errors appear

 

php -q /home/username/whmcsdata/crons/cron.php -F all -vvv

Share this post


Link to post
Share on other sites
Hey SSHosting,

 

Thanks for getting in touch.

 

It sounds like something may be preventing the cron from running could you please try running the following in your servers terminal window and see if any errors appear

 

Here is the error

 

	
Warning: getWhmcsInitPath(/home/username/whmcsdata/crons/config.php): failed to open stream: Permission denied in /home/username/whmcsdata/crons/functions.php on line 0
mmap cache can't open /home/username/whmcsdata/crons/config.php - Permission denied
Warning: getWhmcsInitPath(/home/username/whmcsdata/crons/config.php): failed to open stream: Permission denied in /home/username/whmcsdata/crons/functions.php on line 0

Fatal error: getWhmcsInitPath(): Failed opening required '/home/username/whmcsdata/crons/config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/username/whmcsdata/crons/functions.php on line 0

 

Thank you!

Share this post


Link to post
Share on other sites

Hi SSHosting,

 

Thanks for your reply.

 

It sounds like the permissions may be an issue here can you check they are set to 0644 and your cron 0755

Share this post


Link to post
Share on other sites

Hi,

 

Cron folder is set to 0755 and then all files are set to 0644 except the config.php file. That file was set to 0640, should I change it to 0644 as well?

 

Thanks

Share this post


Link to post
Share on other sites

Yes, please make that change, if your cron folder is located outside of the standard WHMCS directory please ensure you have the right path specified in your cron config.php file

Share this post


Link to post
Share on other sites

Okay made the permission change. How long would I need to wait for the System Health Status to change in order to know if the fix worked?

 

thank you.

Share this post


Link to post
Share on other sites

That can take upto 24 hours, in the meantime try manually executing the cron using:

 

php -q /home/username/whmcsdata/crons/cron.php -F all -vvv

Share this post


Link to post
Share on other sites

I found the issue was that on WHMCS installation, it had messed up the CRON setup in Cpanel.

 

It put it as something strange.

Not what it was suppose to be.

 

So I edited it to a common default of 5 minutes.

 

Cron now works ok, yet the STATUS still says the cron is not working.

 

I am still trying to iron out the rest of the installation bugs that WHMCS has done upon installation.

e.g. Welcome email does not send, yet rest do, upon account creation.

 

So I removed all the crap that was in the welcome email, simply put, "Test Welcome Email" and it worked, it sent.

 

Put it back to default, it don't.

 

Along with automatic payment issues and many other things.

 

Imagine if you got a refund per BUG, this would be FREE or WHMCS would owe me money.

Share this post


Link to post
Share on other sites
I found the issue was that on WHMCS installation, it had messed up the CRON setup in Cpanel.

It put it as something strange.

Not what it was suppose to be.

In mine, I had to set the cron up myself. Yours set it up automatically? What was in it?

Imagine if you got a refund per BUG, this would be FREE or WHMCS would owe me money.

Rampant negativity isn't helping, so you might consider toning down your responses some. WHMCS is complicated, and errors are bound to happen, though not all of them are the script's fault. ;)

Share this post


Link to post
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.

Sign in to follow this  

  • Similar Content

    • By ModulesGarden
      1. Discover what our modules are up to!

      You can already view all previously uploaded advances and improvements at any time in our marketplace. What if you could also see what the next stages of development hide? This has just been made possible with the all-new section placed right next to the changelog.

      The implementation of Roadmap will show you that caring for customer engagement is one of the most important aspects taken into consideration at ModulesGarden. Want to know more and give the new feature a go?

      Continue reading on the ModulesGarden Blog!




      2. Zendesk For WHMCS 2.4.0

      You already know that we have a module in our offer that lets you include support tools powered by Zendesk into WHMCS and handle support tickets while bringing your clients unforgettable experience of customer care. Guess what - it’s just been updated with some fresh solutions!

      The description of the 2.4.0 update of Zendesk For WHMCS should start off with WHMCS users support - an addition which will send email notifications about the in-flow of new ticket replies to any user that participates in a conversation. Excited? Let us make you even more eager to give it a look. The latest version makes WHMCS user details fully synchronized with the Zendesk panel!

      See for yourself how easily you can up your customer service at an amazing 15% discount - give the changelog a thorough read!

      Read more about Zendesk For WHMCS 2.4.0!




      3. Password Manager For WHMCS 3.0 - 25% OFF

      In the business landscape of today’s world, cyber security is a top priority. Safe and long passwords are a great start, however remembering complex keystroke combinations can be too much of a challenge sometimes.

      The answer to these concerns is here - Password Manager For WHMCS 3.0! The latest huge update introduces an overhauled user interface with a brand new look, as well as support for Lagom Client Theme and WHMCS "Twenty-One".

      This fabulous module for extended safety has already been flooded with positive reviews, so delve deeper into the subject and find out how we have elevated it to new heights!

      Read more about Password Manager For WHMCS 3.0!




      4. PanelAlpha sets new trends in WordPress automation!

      Let us remind you of one more grand advancement - the next level in the development of our top-notch system for WordPress instances provisioning, PanelAlpha!

      The addition of Personal Hosting Toolkit will provide your clients with swift and painless control over their accounts by empowering them to handle domains, FTP accounts, DNS zones and more, all from the level of PanelAlpha.

      We all know how crucial a unique brand is nowadays. That’s why you will be able to customize the client area to fit yours however you desire with the Style Manager! Switch colors, enable shadows - from now on, you will be able to let out the inner artist.

      In fact, you can experience it right away via live demo, accessible at all times!

      Put theory into practice and see PanelAlpha in powerful action!




      Need Custom Software Development For Your Business?
      Get Your Free Quote Now! Specially for you we will adapt an application and its design to your own needs, create a new module or even a completely new system built from scratch!
    • By kwood
      Hi,
      I have created a separate folder for my cron jobs, following the WHMCS user guide for security, which it stated in the System Health Check area.
      It all changed fine, and the crons are running from the new folder, but when I go to enter the System Health Check area I get the following:
       
      League\Flysystem\Exception: Impossible to create the root directory "........./dashboard/cron_jobs". mkdir(): Permission denied in ........../dashboard/vendor/league/flysystem/src/Adapter/Local.php:112 Stack trace: #0 ..........dashboard/vendor/league/flysystem/src/Adapter/Local.php(78): League\Flysystem\Adapter\Local->ensureDirectory('p...') #1 ..........dashboard/vendor/whmcs/whmcs-foundation/lib/View/Admin/HealthCheck/ApplicationDirectory.php(0): League\Flysystem\Adapter\Local->__construct('p...') #2 ..........dashboard/vendor/whmcs/whmcs-foundation/lib/View/Admin/HealthCheck/HealthCheckRepository.php(0): WHMCS\View\Admin\HealthCheck\ApplicationDirectory->__construct('p...') #3 ..........dashboard/vendor/whmcs/whmcs-foundation/lib/View/Admin/HealthCheck/HealthCheckRepository.php(0): WHMCS\View\Admin\HealthCheck\HealthCheckRepository->newApplicationDirectory('p...') #4 ..........dashboard/vendor/whmcs/whmcs-foundation/lib/View/Admin/HealthCheck/HealthCheckRepository.php(0): WHMCS\View\Admin\HealthCheck\HealthCheckRepository->customizableDirectories() #5 ..........dashboard/vendor/whmcs/whmcs-foundation/lib/View/Admin/HealthCheck/HealthCheckRepository.php(0): WHMCS\View\Admin\HealthCheck\HealthCheckRepository->checkDirectoryCustomizations() #6 ..........dashboard/admin/systemhealthandupdates.php(0): WHMCS\View\Admin\HealthCheck\HealthCheckRepository->nonKeyChecks() #7 {main} Please, can anyone advise what I need to do?
       
      Many thanks
    • By Rowan S
      Hello,
      Is anybody able to assist with a issue I’m having with my WHMCS licence module. The WHMCS licence module is a module which automatically registers/creates WHMCS licences. 
      The idea is that you could utilise the daily cron hook point to run some additional code to check every WHMCS licence addon’s check the next due date and cancel the license if it’s in the past. 
      I don’t believe that this would be too difficult to code but I am not familiar with this. It would be greatly appreciated if somebody could code this for me. 
      Thanks! 
  • 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