Troubleshooting Cron Halting on Tenant Usage Metrics: A Comprehensive Guide

thumb_up 1  ·  sell Cron halt on tenant usage metrics, Resolving cron stopping at usage metrics step, Troubleshooting issues with tenant metrics in cron jobs

Symptom

During the daily automation cron run, the script requires a long amount of time and eventually fails to complete. Attempting the Advanced Cron Troubleshooting steps indicates that the cron times out during Tenant Usage Metrics polling.

0a574662-d8f9-4877-9260-f92dc14de687.png

Cause

During Tenant Usage Metrics polling, the system connects to hosting servers in order to provide usage data to WHMCS for usage billing-based invoicing and metrics.

This error occurs when there is a connection issue between WHMCS and the hosting servers. 

This may be due to incorrectly-configured servers in WHMCS or firewall or network issues between WHMCS and the server.

The polling times out while WHMCS is waiting for data from the server, according to the configured PHP max_execution_time value. If this value is large, then the cron will wait for that amount of time.

Solution

To resolve the issue, perform the steps in the two sections below.

1. Check whether server settings are properly-configured.

To do this:

1. Go to Configuration > System Settings > Servers.

2. Click Edit for the desired server.

465aa32e-e2f5-444c-a372-f5dc02fb9ddc.png

3. Click Test Connection.

4. If the test failed, check to ensure that the Server Name and Port values are correct, and then click Save.

d00741b0-0d2b-4bdd-b2d8-3e02cc663e5d.png
9eab87a1-d5c6-4180-8d68-25c656b96bb4.png

5. Repeat these steps for each server.

If the test succeeds for all of your servers, the server configurations are correct. If the issue persists, proceed to the next section.

2. Check for firewall and connectivity issues.

If the server connection test fails for correctly-configured servers, the issue is due to an underlying firewall or connectivity issue between WHMCS and the servers. 

For example, this may be due to firewalls that have closed essential ports or have not whitelisted necessary hostnames.

Contact your hosting provider or system administrator to resolve the issue and allow WHMCS and your hosting servers to connect.

 
 
The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.

Was this answer helpful?

Related Articles

description

Step-by-Step Guide to Installing WHMCS

To start using WHMCS, you will need to install it on your server. You may need help from your hosting provider or system administrator…

arrow_forward
description

Configuring cPanel Site Software for WHMCS Integration: A How-To Guide

You can install WHMCS using cPanel's Site Software feature. Before you can perform the installation, a WHM user must enable WHMCS…

arrow_forward
description

Effortless WHMCS Installation Using cPanel Site Software: A Step-by-Step Tutorial

You can install WHMCS easily using cPanel's Site Software feature. To do this: 1. If you have not already done so, configure…

arrow_forward
description

Configuring WHMCS Cron Jobs: Step-by-Step Setup Guide

You will need to configure the cron job as soon as you finish installing WHMCS. The cron job executes WHMCS's automation tasks,…

arrow_forward
description

Customizing the WHMCS Cron Schedule: Configuration Guide

The WHMCS cron job performs many of the automated tasks for your WHMCS installation. You can customize when and how often it runs…

arrow_forward
arrow_back « Back