Confluence XML restore fails because the packet for query is too large
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
問題
An XML backup fails to restore.
診断
atlassian-confluence.log に次のエラーが返される。
-- referer: http://localhost:8090/setup/setup-restore-start.action | url: /setup/setup-restore.action | userName: anonymous | action: setup-restore
com.atlassian.confluence.importexport.ImportExportException: Unable to complete import: Error while importing backup: could not insert: [com.atlassian.confluence.core.BodyContent#787560]
Caused by: com.mysql.jdbc.PacketTooBigException: Packet for query is too large (17825792 > 16777216 ). You can change this value on the server by setting the max_allowed_packet' variable.
原因
The packet query size exceeds the maximum allowed size that is set in the database configuration, therefore XML restore process will fail.
ソリューション
ソリューション
In order to resolve this, you will need to check the max_allowed_packet set within the MySQL server:
Confluence を停止します。
Ensure that the size max_allowed_packet parameter is set to 256MB per our Database Setup For MySQL guide:
max_allowed_packet =256MRestart the Mysql service.
Confluence を再起動します。
この内容はお役に立ちましたか?