Article ID: 111684, created on Jul 21, 2011, last review on Oct 3, 2016

  • Applies to:
  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 10.4 for Linux/Unix


When logging into Plesk, one of the following errors occurs:

Repository is not opened

0: Abstract.php:97
    of_get_key_by_product(string 'plesk-unix')
1: Abstract.php:97
2: General.php:25
3: Restrictions.php:38
4: CatalogsConfiguration.php:49
5: CatalogsConfiguration.php:123
6: Catalog.php:108
7: Catalog.php:169
    Smb_Plesk_Bridge_Aps_Catalog::getCatalogsByType(string 'apscatalog')
8: Config.php:59
9: Config.php:50


ERROR: SWKeyExFatalError
error: Cannot open file

0: common_func.php3:4480
of_get_key_by_product(string 'plesk-unix')
1: common_func.php3:4480
2: common_func.php3:4559
getKeyProp(string 'demo')
3: auth.php3:48 


ERROR: SWKeyExFatalError
error: /etc/sw/keys/lock/repository: cannot create: Permission denied


  • An absent psaadm user in the swkey-data group.
  • Broken permissions on the /etc/sw/keys directory.
  • Broken permissions on the /etc/sw/keys/lock/repository directory.
  • Some files or directories were removed from /etc/sw/keys directory.


  1. Check which directories are absent and recover them (it's possible to copy from test environment).

  2. Set the correct permissions by following the commands below:

    # /usr/sbin/usermod -a -G swkey-data psaadm
    # chown -R root:swkey-data /etc/sw/keys/
    # chmod u+s /etc/sw/keys/restart/apskeyhandler /etc/sw/keys/restart/plesk-key-handler 
    # chmod 2770 /etc/sw/keys
    # chmod 2770 /etc/sw/keys/instances
    # chmod 2770 /etc/sw/keys/lock
    # chmod 2770 /etc/sw/keys/restart
    # chmod 660 /etc/sw/keys/lock/repository
  3. Restart psa service:

    # service psa restart

Search Words

500 Internal Server Error

Unabe to login to Plesk control panel

ERROR: SWKeyExFatalError Repository is not opened

ERROR: SWKeyExFatalError Repository is not opened in the logs: [2015-07-31 15:40:02] ERR [panel] Unable to get key: Repository is not opened [31-Jul-2015 15:40:02 Europe/Berlin] SWKeyExFatalError: Repository is not opened file: /opt/psa/admin/plib/functions.php line: 3352 code: 0 trace: #0 /opt/psa/admin/plib/functions.php(3352): of_get_all_keys() #1 /opt/psa/admin/plib/Key/Primary/InfoForm.php(155): pkey_fetch_key_list() #2 /opt/psa/admin/plib/Key/Primary/InfoForm.php(64): Key_Primary_InfoForm->get_bye_online_url('new', '') #3 /opt/psa/admin/htdocs/server/key_info.php(44): Key_Primary_InfoForm->assign() #4 {main}

thrown in /opt/psa/admin/externals/Zend/Log/Writer/Stream.php on line 81" while reading response header

add web presence builder

ERROR: SWKeyExFatalError

error: Cannot open file

Unable to execute php_handlers_control: Error reading /etc/psa/php_versions.json: can not parse php_versions_info object : JSON object is expected. Error occured at offset 0, character '['. Also system error occured: No such file or directory (2).

Unable to connect to database: get_admin_password() failed: file_get_contents() failed: Undefined index: PLESK_DEBUG_SQL

sh: /usr/local/psa/admin/bin/packagemng: Permission denied

a914db3fdc7a53ddcfd1b2db8f5a1b9c 29d1e90fd304f01e6420fbe60f66f838 dd0611b6086474193d9bf78e2b293040 56797cefb1efc9130f7c48a7d1db0f0c e8756e9388aeca36710ac39e739b2b37 01bc4c8cf5b7f01f815a7ada004154a2 0a53c5a9ca65a74d37ef5c5eaeb55d7f aea4cd7bfd353ad7a1341a257ad4724a 2a5151f57629129e26ff206d171fbb5f e335d9adf7edffca6a8af8039031a4c7 742559b1631652fadd74764ae8be475e

Email subscription for changes to this article
Save as PDF