Reese Knowledgebase

SWKeyExFatalError : Repository is not opened

View Kristian Reese's profile on LinkedIn

If you like this article, please +1 or Recommend via FB with the provided buttons above:

Article ID: 81
by: Reese K.
Posted: 19 Dec, 2012
Last updated: 19 Dec, 2012
Views: 4464

SWKeyExFatalError : Repository is not opened

I came across this error for the first time on a Plesk 10.3.1 installation.

ERROR: SWKeyExFatalError
Repository is not opened

0: common_func.php3:4759
    of_get_key_by_product(string 'plesk-unix')
1: common_func.php3:4759
2: common_func.php3:4834
    getKeyProp(string 'demo')
3: auth.php3:88

The first place I looked for a clue was in /var/log/sw-cp-server/error_log.  This didn't say much different that what the web browser provided:

Could not open Repository at "/etc/sw/keys": Cannot open file

I checked the parallels forums and found a discussion with this exact issue but there was no definitive answer as to the cause, and it seems different paths were taken for resolution to this issue.


The solution path I took was the recursive user permission change in /etc/sw.  By comparison of another Plesk 10.3.1 installation, files and directories under this path are a user ownership of psaadm.  This particular container had root user ownership, so I changed it:

~# cd /etc/sw
~# chown -R psaadm keys
~# /etc/init.d/psa restart

Plesk then operated as expected

This article was:   Helpful | Not Helpful
Prev   Next
License Update via Plesk produces "Unknown key property:...     How to Rebuild named configuration / DNS zones