Articles in this section

Unable to log in to Plesk: SWKeyExFatalError Repository is not opened

Plesk for Linux kb: technical ABT: Group A

Applicable to:

  • Plesk for Linux

Symptoms

  • When logging in to the Plesk or browsing its pages, one of the following error messages is shown:

    PLESK_INFO: Type SWKeyExFatalError
    Message Repository is not opened
    File functions.php


    PLESK_INFO: Type GraphQL Error
    Message Repository is not opened

  • One of the following error messages is logged in /var/log/plesk/panel.log:

    CONFIG_TEXT: ERR [panel] Unable to get key: Repository is not opened


    CONFIG_TEXT: Could not open Repository at "/etc/sw/keys": Empty repository file: /etc/sw/keys/registry.xml:


    CONFIG_TEXT: ERR [panel] Repository is not opened:
    0: /usr/local/psa/admin/plib/functions.php:3343
    of_get_key_by_product(string 'plesk-unified')
    1: /usr/local/psa/admin/plib/functions.php:3343
    getPleskKey()
    2: /usr/local/psa/admin/htdocs/server/key_info.php:29

Cause

File /etc/sw/keys/info is empty:

# cat /etc/sw/keys/info
# {empty output}

Resolution

  1. Connect to your Plesk server via SSH.

  2. Open /etc/sw/keys/info file in a text editor. In this example, we use vi editor:

    # vi /etc/sw/keys/info

  3. Add the following line:

    Note: Make sure no additional empty lines are added.

    CONFIG_TEXT: sw-key-repository-1.0

  4. Save the changes and close the file.

  5. Restart Plesk services:

    # systemctl restart sw-cp-server sw-engine

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.