Symptoms
-
License key installation fails with the following error:
PLESK_ERROR: Error: The license key is invalid. In order to use Plesk, please obtain and install a new valid license key.
The license key is intended only for use with Parallels Plesk operating inside the following virtual environments: Parallels Virtuozzo Containers, VMWare, Microsoft Hyper-V, Xen, KVM, Parallels Server. -
Installing a key through CLI fails with the following error:
# plesk bin license -i XXXXXX-XXXXXX-XXXXXX-XXXXXX-XXXXXX
PHP Warning: Invalid argument supplied for foreach(); File: /usr/local/psa/admin/plib/StatInfo.php, Line: 372
PHP Warning: reset() expects parameter 1 to be array, boolean given; File: /usr/local/psa/admin/plib/StatInfo.php, Line: 309
The license key was successfully installed.
Cause
-
The following file is empty or contains incorrect data:
# ls -al /usr/local/psa/admin/sbin/wrapper
—s–x—. 1 root psaadm 0 jan 22 21:31 /usr/local/psa/admin/sbin/wrapper
Resolution
-
Log in to the server via SSH.
-
Reinstall
plesk-service-node-utilities
package.
This example is for CentOS 7 with the latest Plesk Obsidian 18.0.30 version:# rpm -Uhv –force https://autoinstall.plesk.com/PSA_18.0.30/dist-rpm-CentOS-7-x86_64/base/plesk-service-node-utilities-18.0-2.centos.7+p18.0.30.2+t200930.1355.x86_64.rpm
Note: If the Plesk version or OS are different open a support ticket with Plesk for further assistance.