Unable to access/activate Plesk Onyx: The license key is invalid.

Started by mahesh, May 04, 2024, 07:29 AM

Previous topic - Next topic

mahesh

Question: Unable to access/activate Plesk Onyx: The license key is invalid. In order to use the Panel, you need to obtain and install a new valid license key
Symptoms
  • Plesk cannot be accessed/activated
One of the following errors on web browser screen:

Error: The license key is invalid. In order to use the Panel, you need to obtain and install a new valid license key. The amount of currently used resources overrides the limits defined by your license.

OR

xmlrpc error: Expected <param> to have 1 children, found 0
---------------------- Debug Info -------------------------------
0: common_func.php3:4675
of_get_all_keys()
1: common_func.php3:4675
pkey_fetch_key_list()
2: KeyInfoForm.php:171
KeyInfoForm->get_bye_online_url(string 'new', string '')
3: KeyInfoForm.php:77
KeyInfoForm->assign()
4: key_info.php:43
require(string 'C:\Program Files\Parallels\Plesk\admin\htdocs\server\key_info.php')
5: plesk.php:66

OR

ERROR: SWKeyExFatalError
OR

xmlrpc error: XML parsing failed
0: common_func.php3:4523
of_get_key_by_product(string 'plesk-win')
1: common_func.php3:4523
getPleskKey()
2: common_func.php3:4602
getKeyProp(string 'demo')
3: auth.php3:54

OR

Internal error:
Repository is not opened
Message Repository is not opened
File functions.php
Line 3330
Type SWKeyExFatalError

OR

Unable to get key: Repository is not opened.
OR

PLESK_ERROR: Error: The license key is invalid. In order to use Plesk, you need to obtain and install a new valid license key.
The amount of currently used resources overrides the limits defined by your license.
The number of websites hosted on the server exceeds the limits defined by your license. You have 5 sites hosted; your license allows hosting only 0 sites.
The number of served customer accounts exceeds the limits defined by your license. You have 8 customer accounts currently served; your license allows serving only 0 customer accounts.
The number of served email accounts exceeds the limits defined by your license. You have 49 email accounts currently served; your license allows serving only 0 email accounts


OR

The amount of resources you operate with has exceeded the limits defined by your current product license. Please contact Plesk sales department and purchase a new license key.
  • Cannot retrieve Plesk license via a command-line interface:
#plesk bin license --retrieve
Could not open Repository at "/etc/sw/keys": Empty repository file: /etc/sw/keys/registry.xml
ERR [panel] Unable to get key: Repository is not opened
ERR [panel] Unable to get key: Repository is not opened
Repository is not opened
exit status 3
Cause
Plesk bug with ID #PPPM-9001 fixed in Plesk Onyx 17.8 for Windows on April 17th, 2018. Fix for Plesk for Linux is expected in future updates.

Resolution
For Plesk Onyx 17.8, install the latest Plesk micro-updates.

For Plesk Onyx 17.5 and 17.0, upgrade to the latest Plesk version.

As a workaround:

Plesk for Linux
1.Connect to a Plesk server via SSH

2.Move corrupted registry.xml file to another location so it will not be used and restart the Plesk service:

#mv /etc/sw/keys/registry.xml /root/
# service sw-engine restart

3.Scan and repair file system:

#plesk repair fs -system -y
5.Retrieve a Plesk license with the command:

#/usr/local/psa/bin/license --retrieve
5.Log in to Plesk to re-create the registry.xml file.

NOTE: In some cases, it will require to re-install Plesk license. If you do not have a Plesk license key, contact Customer Success Team

If the steps above did not help, apply resolution from this article and re-install license (replace AAAA-BBBB-CCCC-DDDD with your activation key)

plesk bin license --install AAAA-BBBB-CCCC-DDDD

Plesk 17.5 and 17.0 for Windows
1.Connect to a Plesk server via RDP

2.Rename the file registry.xml which is located at %plesk_dir%admin\repository.

3.Start a command prompt as an Administrator and run the command below to renew the Plesk license:

c:\>plesk bin license.exe --retrieve
4.Log in to Plesk to re-create the registry.xml file.
In some cases, it will require to install a Plesk license. If you do not have a Plesk license key, contact Customer Success Team.

If the steps above did not solve the issue, follow these steps:

1.Move the files from %plesk_dir%admin\repository\keys\ to any other directory.

2.Reinstall a Plesk license with the command below (replace AAAA-BBBB-CCCC-DDDD with your production activation key):

c:\>"%plesk_dir%bin\license.exe" -i AAAA-BBBB-CCCC-DDDD