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
-
Connect to your Plesk server via SSH.
-
Open
/etc/sw/keys/info
file in a text editor. In this example, we use vi editor:# vi /etc/sw/keys/info
-
Add the following line:
Note: Make sure no additional empty lines are added.
CONFIG_TEXT: sw-key-repository-1.0
-
Save the changes and close the file.
-
Restart Plesk services:
# service sw-cp-server restart && service sw-engine restart
Comments
0 comments
Please sign in to leave a comment.