Plesk

Plesk is slow: Token validation failed: The license key was not verified

Symptoms

  1. Plesk is slow, however, there are enough system resources on the server.

  2. Error in /var/log/plesk/panel.log :

    ERR [1] Exception: Token validation failed: The license key 'PLSK.0000000' was not verified. Plesk will try to verify license key. Please wait for few minutes and try again. To manually run verification of license key click "Retrieve Keys" button in "License Management".
    file: /usr/local/psa/admin/plib/functions.php
    line: 2232

  3. Pressing Retrieve Keys in Tools & Settings > Licence Management shows that the license is up-to-date.

  4. grsecurity is used on a server.

    Or:

    The /etc/sw/keys/instances directory has permissions that differ from below ones:

    # ls -la /etc/sw/keys/ | grep instances
    drwxrws--- 2 root swkey-data 4096 Jun 2 2012 instances

Cause

Plesk bug with ID #PPPM-6573 fixed in Plesk Onyx 17.8 on April 17th, 2018.

Resolution

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

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

If update is not possible for some reason, try the following

temporary solution

  1. Connect to Plesk server via SSH.

  2. Fix the permissions:

    # chmod 2770 /etc/sw/keys/
    # chown root:swkey-data /etc/sw/keys/

  3. If grsecurity is used, make psaadm a member of procread group:

    # usermod -a -G procread psaadm

  4. Back up the file /etc/sw/keys/registry.xml:

    # mv /etc/sw/keys/registry.xml /etc/sw/keys/registry.xml.bak

  5. Regenerate the file by pressing Retrieve Keys in Tools & Settings > Licence Management.

Note: If it did not help, reinstall the license key at Tools & Settings > Licence Management > Install Key.

Exit mobile version