Symptoms
-
The following error message is shown on attempts to log in to the Plesk UI or browsing its pages:
Type SWKeyExFatalError
Message Repository is not opened
File functions.php -
One of the following error messages appear in
/var/log/plesk/panel.log
:ERR [panel] Unable to get key: Repository is not opened
Could not open Repository at "/etc/sw/keys": Empty repository file: /etc/sw/keys/registry.xml:
[2019-07-04 16:36:07.684] 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 -
Following the article,
plesk repair fs -system
command fails as below:# plesk repair fs -system -y
...
Checking Linux system files
There are incorrect permissions on some items:
/etc/sw/keys/registry.xml ......................................... [ERROR]
- The file /etc/sw/keys/registry.xml was not found.
Repairing incorrect permissions ................................. [2019-07-04 16:30:08.869] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/fsmng' '--set-ac' '/etc/sw/keys/registry.xml'] with exit code [1]
[FAILED]
- fsmng failed: ERROR:[Errno 2] No such file or directory:
'/etc/sw/keys/registry.xml'
Error messages: 1; Warnings: 0; Errors resolved: 0 -
The
/etc/sw/keys/info
file is empty:# cat /etc/sw/keys/info
# (empty output)
Cause
Empty /etc/sw/keys/info
file.