Symptom
The cpkeyclt script fails with one of the following errors and the wrong IP address:
CONFIG_TEXT: The exact message was: The license is expired. (203.0.113.2)
CONFIG_TEXT: The exact message was: No valid cPanel/WHM license found. (203.0.113.2)
Cause
The IP address used for outbound connections is the main IP address on the interface through which the default route is configured. The error occurs when the main IP address is not configured on the interface where the default route is configured, or when it is not the main IP address on that interface.
Resolution
Warning: We highly recommend that you consult your network or system administrator before making any changes, as incorrectly configuring the interface can result in an unreachable server. Please make sure that you have console or other out-of-band access to the server before attempting to make any of these changes. cPanel Support is unable to assist with making any of these changes.
- Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
-
Check the default route.
# ip -4 route show|grep default
-
Check which interface the licensed IP address is configured on.
# ip -4 addr show|grep inet
- Adjust the network configuration so that the licensed IP address is the only IP address on the default route's interface.
-
Verify that the outbound IP address is the licensed IP address.
# curl -s https://myip.cpanel.net/v1.0/
Additional Resources
What is the cPanel main IP?
The server's outgoing IP keeps changing.
Comments
0 comments
Article is closed for comments.