Plesk for Linux
DoNotDelete:docref
kb: technical
ABT: Group B
Applicable to:
- Plesk 11.x for Linux
- Plesk 12.0 for Linux
- Plesk 12.5 for Linux
症状
次のような異なる症状があります。
-
Plesk のアップグレード前チェッカーに次の警告が表示される。
WARNING: Reference between several subscriptions and APS applications has been broken.
-
Apache ウェブサーバの構成ファイルの再作成を前提とする Plesk オブジェクトの構成を変更する際に、以下のエラーが表示される。
Error: New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration.
-
バックアップの作成が以下のエラーで失敗する。
Unable to get APS instances on webspace id 123 (ErrorCode: 255, STDOUT:).
解決策
解決策としては、破損したデータベース参照を修正します(すべての sql コマンドは PSA データベースを対象としています):
-
PSA データベースダンプを作成します。
# mysqldump -uadmin -p`cat /etc/psa/.psa.shadow ` psa > /var/lib/psa/dumps/psadump.kb112815.`date "+%Y-%m-%d_%H:%M"`.sql
次に、以下のように Plesk PSA データベースにログインします。
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
-
Plesk データベースの構成エラーをリストします。
mysql> select id,objectId,status,description from Configurations where status="error";
+-----+----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| id | objectId | status | description |
+-----+----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| 5 | 1 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = SQLSTATE[HY093]: Invalid parameter number: no parameters were bound |
| 195 | 96 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = SQLSTATE[HY093]: Invalid parameter number: no parameters were bound |
| 205 | 101 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = SQLSTATE[HY093]: Invalid parameter number: no parameters were bound |
| 835 | 434 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = SQLSTATE[HY093]: Invalid parameter number: no parameters were bound |
| 837 | 435 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = SQLSTATE[HY093]: Invalid parameter number: no parameters were bound |
+-----+----------+--------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ -
APS アプリケーションの破損したコンテキストをリストします( subscriptionId が MainSubscriptionId または AdditionalSubscriptionId と等しくなければなりません)。
mysql> select aps.id, pleskId, subscriptionId, s.id as MainSubscriptionId, su.id as AddSubscriptionId from apsContexts aps left join domains d on d.id=aps.pleskId left join domains w on w.id = d.webspace_id left join Subscriptions s on s.object_id=d.id left join Subscriptions su on su.object_id = w.id where (subscriptionId!=s.id and su.id is null) or (subscriptionId!=su.id and s.id is null) or aps.subscriptionId is null;
+----+---------+----------------+--------------------+-------------------+
| id | pleskId | subscriptionId | MainSubscriptionId | AddSubscriptionId |
+----+---------+----------------+--------------------+-------------------+
| 2 | 1 | 0 | 1 | NULL |
| 3 | 96 | 96 | 75 | NULL |
| 4 | 101 | 101 | 79 | NULL |
| 5 | 434 | 0 | NULL | 75 |
| 6 | 435 | NULL | NULL | 75 |
+----+---------+----------------+--------------------+-------------------+
5 rows in set (0.00 sec) -
3 で得た、APS アプリケーションの破損したコンテキストを修正します。
mysql> update apsContexts set subscriptionId=1 where pleskId=1;
Query OK, 1 row affected (0.01 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update apsContexts set subscriptionId=75 where pleskId=96;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update apsContexts set subscriptionId=79 where pleskId=101;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update apsContexts set subscriptionId=75 where pleskId=434;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> update apsContexts set subscriptionId=75 where pleskId=435;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0 -
すべての Apache ウェブサーバ構成ファイルを強制的に再作成します。
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
コメント
0件のコメント
サインインしてコメントを残してください。