CloudLinux Statistics showing API connection errors?

If you're facing such errors at CloudLinux Manager, here's the solution:

First of all, run the following command to get the result, if your server is able to connect with CloudLinux servers:

cloudlinux-summary get-remote

If the output is like this:

[root@srv3 ~]# cloudlinux-summary get-remote
{"result": "HTTPSConnectionPool(host='stat-api.imunify360.com', port=443): Max retries exceeded with url: /api/clos-stat?system_id=ID-292278598&security_token=e4YXGQUeXnHN5YCWk16JVqbNwBIDqP1wJ5j4AFN2MTxm8z9f74P7JxP7LVb2Ngul (Causedby NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x1538c2062450>: Failed to establish a new connection: [Errno -2] Name or service not known'))", "timestamp": 1659363564.2624013}
[root@srv3 ~]#

Check the LVE utils binary version:

rpm -q --whatprovides /opt/alt/python37/lib/python3.7/site-packages/clsummary/summary.py

Output may like:

[root@srv3 ~]# rpm -q --whatprovides /opt/alt/python37/lib/python3.7/site-packages/clsummary/summary.py
lve-utils-6.3.7-1.el7.cloudlinux.x86_64
[root@srv3 ~]#

If an old version of lve-utils is installed on your server, update it, else, reinstall:

yum reinstall lve-utils -y

Once it will be reinstalled, run the first command again to verify the connection once more. If you get the output like this:

[root@srv3 ~]# cloudlinux-summary get-remote
{"data": {"multiple_servers": false, "result": null}, "result": "success", "statistic_enabled": true, "timestamp": 1659363674.2935371}
[root@srv3 ~]#

Now run this command:

cloudlinux-summary --send --json

That's all. The occurred problem should be fixed now.

  • 7 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix lveinfo database error of CLN

Run the following command: service lvestats stoptar -zcvf /root/lveinfo_backup_$(date...

How to Install KernelCare on cPanel/WHM server

To install KernelCare, you need to log in with the root user on your cPanel server. Check for...

Switching all cPanel acc/s to "inherit" PHP version

You can change all cPanel users to inherit with this CLI command: for each in `cat...

How to fix issues like PHP selector not available

Some of our clients face the issues like "PHP selector not available" on cPanel accounts of their...

How to fix boot problem because of CLN kernel

Some of our clients contacted us recently about the boot problem of their server after installing...