Symptoms
When trying to access WHM you are presented with this error:
Invalid License File. Incorrect authority delivering the license.
Also, attempting to update the license information fails with this error message:
[root@server ~]cPs# /usr/local/cpanel/cpkeyclt
DNS::Unbound object version 0.19 does not match $DNS::Unbound::VERSION 0.20
Description
1) This is usually indicative of some missing cPanel-required packages specifically this package:
cpanel-perl-530-DNS-Unbound-0.20-1.cp1186
The required packages all need to be installed before the license can be updated.
2) This also could be caused by corrupt files not managed by RPM:
Workaround
1)
For the first cause the following workaround should work:
1. First, make sure that RPM is working and responsive:
/scripts/find_and_fix_rpm_issues
In case RPM is unresponsive then you can visit this link to see how to repair RPM's database:
How to repair an RPM database
2. After making sure RPM is working, you need to run this command to install all the missing cPanel-required packages:
/scripts/check_cpanel_pkgs
In the output, you will see the name of the missing package.
3. If missing packages are detected, you enter "y" when prompted to replace. Alternatively, you can run the script with the --fix flag to fix any missing packages:
/scripts/check_cpanel_pkgs --fix
4. Once the packages have been corrected, you can run the command again to update the license:
[root@server ~]cPs# /usr/local/cpanel/cpkeyclt
Updating cPanel license...Done. Update succeeded.
If you continue experiencing the error upon attempting the above, please open a support ticket for further review.
2)
For the second cause, you can run the following command as a fix:
/scripts/updatenow.static --sync