Article ID: 3969, created on Aug 1, 2013, last review on Apr 29, 2014

  • Applies to:
  • Plesk

问题

Plesk 无法获取许可证密钥。出现的错误如下:

Key Update Status:
Unable to update Plesk Key. An error occurred while processing your key.

You can try to update it later. The key cannot be upgraded due to the network failure during connection with the Key Authority server. Please check that your Internet connection is configured, you can resolve and access ka.swsoft.com and your firewall enables outgoing connections to TCP port 5224.


但是,无法远程登录到端口 5224 上的 ka.swsoft.com。

原因

当 Plesk 发送请求到 KA 服务器时,会生成特殊的 XML 程序包。该程序包的数据取自 Plesk 数据库 "key_history" 表格。

如果数据已损坏,即无法获取。

MySQL 数据库中损坏记录的示例:

mysql> select id, plesk_key_id from key_history;
+----+----------------------------------------------+
| id | plesk_key_id                                 |
+----+----------------------------------------------+
|  1 | plsk000000000000                             |
|  2 | ?^uxi~Lг¦--¬a°Nx-?L¦»<a;?г*f5>-??+?@t?¦b-+i¦ |
|  3 | ?^uxi~Lг¦--¬a°Nx-?L¦»<a;?г*f5>-??+?@t?¦b-+i¦ |
|  4 | PLSK005268120000                             |
|  5 | PLSK004332790001                             |
|  6 | PLSK004332790002                             |
+----+----------------------------------------------+
6 rows in set (0.00 sec)

mysql>

解决方案

ID 为 2 和 3 的记录已损坏。要修复问题需要移除这些记录。使用以下命令移除有问题的记录:

mysql> delete from key_history where id=2 or id=3;
Query OK, 2 rows affected(0.03 sec)

mysql>

a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c

Email subscription for changes to this article