• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

ERROR: SWKeyExFatalError Repository is not opened

C

CentOS

Guest
Hi,

I have some problem with it:

ERROR: SWKeyExFatalError
Repository is not opened

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

How to reslove this? I did not do any updates for Plesk. 1-2 month ago worked well and now i see this when i try login to plesk.

Plesk work on CentOS.

Thanks!
 
Yes,

Put - grep -i repository /usr/local/psa/admin/conf/php.ini

Answer - swkey.repository_dir = "/etc/sw/keys"
 
Do you have correct permissions there?

# ll /etc/sw/keys/
total 32
drwxrws--- 2 psaadm swkey-data 4096 Jul 7 05:27 backup
-rw-r--r-- 1 psaadm swkey-data 22 May 4 12:36 info
drwxrws--- 2 root swkey-data 4096 Apr 30 03:24 instances
drwxrws--- 2 psaadm swkey-data 4096 Jul 7 05:27 keys
drwxrws--- 2 psaadm swkey-data 4096 May 11 06:01 lock
-rw-rw---- 1 root swkey-data 5451 Jul 13 05:50 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 May 11 06:02 restart

# stat /etc/sw/keys/
File: `/etc/sw/keys/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: c0h/192d Inode: 21271654 Links: 7
Access: (2770/drwxrws---) Uid: ( 502/ psaadm) Gid: ( 503/swkey-data)
 
In my case:

ll /etc/sw/keys/
total 28
drwxrws--- 2 psaadm swkey-data 4096 May 7 04:02 backup
-rw-r--r-- 1 psaadm swkey-data 22 Dec 29 2009 info
drwxrws--- 2 root swkey-data 4096 Dec 11 2009 instances
drwxrws--- 2 psaadm swkey-data 4096 May 7 04:02 keys
drwxrws--- 2 psaadm swkey-data 4096 Mar 23 09:44 lock
-rw-rw---- 1 root swkey-data 2231 Jul 6 04:02 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 Mar 23 09:46 restart


stat /etc/sw/keys/
File: `/etc/sw/keys/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 803h/2051d Inode: 38174831 Links: 7
Access: (2770/drwxrws---) Uid: ( 501/ psaadm) Gid: ( 502/swkey-data)
 
I would like to join the discussion. I have CentOS 5.4 and updated plesk 9.3 to 9.5 and cannot get to cp.

Errors:

ERROR: SWKeyExFatalError
Repository is not opened

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



Found:

# grep -i repository /usr/local/psa/admin/conf/php.ini
swkey.repository_dir = "/etc/sw/keys"


# ll /etc/sw/keys/
total 32
drwxrws--- 2 psaadm swkey-data 4096 May 4 05:45 backup
-rw-r--r-- 1 psaadm swkey-data 22 May 4 05:45 info
drwxrws--- 2 root swkey-data 4096 Mar 12 14:00 instances
drwxrws--- 2 psaadm swkey-data 4096 May 4 05:45 keys
drwxrws--- 2 psaadm swkey-data 4096 Jul 25 21:57 lock
-rw-r----- 1 root swkey-data 2235 Jul 28 01:58 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 Jul 25 22:03 restart




# stat /etc/sw/keys/
File: `/etc/sw/keys/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 803h/2051d Inode: 59342889 Links: 7
Access: (2770/drwxrws---) Uid: ( 501/ psaadm) Gid: ( 502/swkey-data)



Please help. It is a nightmare not being able co access cp. Thanks.
 
Hello. This is what I get:

[root@m0678 ~]# ldconfig -v | grep libxmlrpc.so
[root@m0678 ~]# rpm -qa |grep xmlrpc
sw-xmlrpc-c-1.06.10-7.centos5



Thanks.
 
Hello guys, i got the same problem here, today i saw a message saying "Warning: You are currently operating within the grace period of your product license. To update your product license, select the Retrieve Keys option on the License Management page." so i went to the License Management Page, and click on Retrieve Keys, and i got this error:

ERROR: SWKeyExFatalError
error: bad lexical cast: source type value could not be interpreted as target

0: common_func.php3:4885
ka_update_key_forced(resource, string 'plesk-unix', string '9.3.0', array)
1: common_func.php3:4885
updateKeyAndNotify(resource)
2: key_update.php:14

Then looking for this problem i found this topic, so i did everything that the guy from Plesk said, follow below

[root@br02 ~]# grep -i repository /usr/local/psa/admin/conf/php.ini
swkey.repository_dir = "/etc/sw/keys"


[root@br02 ~]# ll /etc/sw/keys/
total 52
drwxrws--- 2 psaadm swkey-data 4096 Jun 28 11:36 backup
-rw-r--r-- 1 psaadm swkey-data 22 May 4 00:45 info
drwxrws--- 2 root swkey-data 4096 Nov 17 2009 instances
drwxrws--- 2 psaadm swkey-data 4096 Jun 28 11:36 keys
drwxrws--- 2 psaadm swkey-data 4096 Jun 28 11:24 lock
-rw-rw---- 1 root swkey-data 4691 Jul 1 04:03 registry.xml
drwxrws--- 2 psaadm swkey-data 4096 Jun 28 11:41 restart
[root@br02 ~]# stat /etc/sw/keys/
File: `/etc/sw/keys/'
Size: 4096 Blocks: 16 IO Block: 4096 directory
Device: 803h/2051d Inode: 29098042 Links: 7
Access: (2770/drwxrws---) Uid: ( 501/ psaadm) Gid: ( 502/swkey-data)
Access: 2010-07-28 09:53:50.000000000 -0300
Modify: 2010-07-01 04:03:23.000000000 -0300
Change: 2010-07-01 04:03:23.000000000 -0300


[root@br02 ~]# ldconfig -v | grep libxmlrpc.so
ldconfig: Path `/usr/lib64/mysql' given more than once
[root@br02 ~]# rpm -qa | grep xmlrpc
sw-xmlrpc-c-1.06.10-7.centos5

Please guys, help me. thanks
 
No takers? Anyone? Do I have to update the plesk key or is other issue? Thanks.
 
Ok. Tried to install my version (64) of libxmlrpc but it tells me it is already installed. I will ask for support and point to this post. Thanks.
 
Hi. It seems I cannot get support because my plesk is purchased by my hosting company and has a partner contract. Which takes me back to where I was. So I found this:
http://kb.odin.com/en/8623
but it is for windows. The error message is the same so is it a fix for Linux (in my case CentOS)?
Thanks.
 
Hi. I opened /etc/sw/keys/registry.xml and i can see that it is brocken. Has a lot of brocken code. I compared the registry.xml from my server with another one that I have on a identical server (same machine with same config) and i saw that it was a lot of code missing and some was bad. What is the correct structure or how can I send you my registry.xml output so you can help me fix it? Thanks.
 
My Fix..

Hi

I see this issue with some of the Plesk 9.5 versions Linux servers. I have managed to fix this by running below commands in the server:

# cd /etc/sw/
# chown psaadm.swkey-data keys -R
# /etc/rc.d/init.d/psa restart


Please try this :)
 
Hi

I see this issue with some of the Plesk 9.5 versions Linux servers. I have managed to fix this by running below commands in the server:

# cd /etc/sw/
# chown psaadm.swkey-data keys -R
# /etc/rc.d/init.d/psa restart


Please try this :)

I done this, and didn´t work, same problem here =\
 
If the server is a Virtuzzo one please disable the VZPP and try it again...
 
Back
Top