• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Repository is not opened

T

Terryv

Guest
Good day,
When I go to my plesk interface I got the following error:
ERROR: SWKeyExFatalError
Repository is not opened

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

When I enter "grep -i repository /usr/local/psa/admin/conf/php.ini" I get the following respone:
swkey.repository_dir = "/etc/sw/keys"

When I enter "ll /etc/sw/keys/" I get the following:
total 16
drwxrws--- 2 psaadm swkey-data 4096 Jan 10 12:56 backup
drwxrws--- 2 psaadm swkey-data 4096 Oct 6 16:44 instances
drwxrws--- 2 psaadm swkey-data 4096 Jan 10 12:56 keys
drwxrws--- 2 psaadm swkey-data 4096 Jan 10 12:56 restart

From what I've seen online I'm missing the folders: info and lock. I removed registry.xml to see if that would fix the problem, but it didn't. If you need any information let me know and how I can get (not a linux expert)
 
It should be:

# ll /etc/sw/keys
total 32
drwxrws--- 2 root swkey-data 4096 Jan 12 23:14 backup
-rw-r--r-- 1 root swkey-data 22 Nov 2 18:37 info
drwxrws--- 2 root swkey-data 4096 Nov 10 01:12 instances
drwxrws--- 2 root swkey-data 4096 Jan 12 23:14 keys
drwxrws--- 2 root swkey-data 4096 Dec 7 14:14 lock
-rw-rw---- 1 root swkey-data 4869 Jan 16 05:32 registry.xml
drwxrws--- 2 root swkey-data 4096 Dec 7 14:14 restart
 
after trying to get a mail server running again, it looks like I removed /etc/rc.d/init.d/psa, its complaining it can't find the file and I can't seem to get it installed again.
 
Sorry, it should be /etc/init.d/psa instead /etc/rc.d/init.d/psa
 
As you can see this file is a part of psa-core package:

# rpm -qf /etc/rc.d/init.d/psa
plesk-core-10.13.4-cos5.build1013111102.18

Seems you have seriously corrupted Plesk installation. Do you have /usr/local/psa/admin/sbin/autoinstaller file? Try to use it for Plesk reinstallation if you have it.
 
As you can see this file is a part of psa-core package:

# rpm -qf /etc/rc.d/init.d/psa
plesk-core-10.13.4-cos5.build1013111102.18

Seems you have seriously corrupted Plesk installation. Do you have /usr/local/psa/admin/sbin/autoinstaller file? Try to use it for Plesk reinstallation if you have it.

When running the autoinstaller I got the following errors:
ERROR 1045 (28000) at line 1: Access denied for user 'admin'@'localhost' (using password: YES)
Trying to start service mysqld... mysqld (pid 31801) is running...
done
Trying to establish test connection... connected
done
Trying to check psa database... Trying to find psa database... version is 010120
DATABASE ERROR!!!
Previous product version is , but previous database
version is 010120. In most of cases it is result of
previous upgrade try failure. Please, restore previous version
from backup, and try again or contact technical support.

ERROR while trying to check database version
Check the error reason(see log file: /tmp/plesk_10.4.4_installation.log), fix and try again

***** problem report *****
ERROR while trying to check database version
Check the error reason(see log file: /tmp/plesk_10.4.4_installation.log), fix and try again

ERROR: An error occurred during performing of installation PREP actions (see log for details). Installation was rolled back.
Warning! Not all packages were installed.
Please check if your system services are operable.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for assistance.
 
I can suggest you contact Support Team for repairing this completely damaged Plesk.
 
Hey,

i have the same problem but i delete the keys folder :-(
Can i repair the installation or create a new folder?!

Thanks
Nico
 
Back
Top