legacy-knowledge-base
公開されました Jul. 2, 2025

完全なインデックス再作成後、ヘッドレス API を介して Web コンテンツにアクセスできない

written-by

Richárd Szabácsik

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • 大規模な Web コンテンツの場合、 reindex all search indexes 操作を実行すると、次の警告がスローされる可能性があります。
2021-07-27 06:46:39.595 WARN  [liferay/search_writer/SYSTEM_ENGINE-2][ProxyMessageListener:86] java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [POST], host [http://127.0.0.1:9201], URI [/_bulk?refresh=true&timeout=1m], status line [HTTP/1.1 413 Request Entity Too Large]_]; [Sanitized]
java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [POST], host [http://127.0.0.1:9201], URI [/_bulk?refresh=true&timeout=1m], status line [HTTP/1.1 413 Request Entity Too Large]_];
WARN  [liferay/search_writer/SYSTEM_ENGINE-4][ProxyMessageListener:86] java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: ElasticsearchStatusException[Elasticsearch exception [type=es_rejected_execution_exception, reason=rejected execution of coordinating operation [coordinating_and_primary_bytes=0, replica_bytes=0, all_bytes=0, coordinating_operation_bytes=120110686, max_coordinating_and_primary_bytes=102917734]]]
java.lang.RuntimeException: org.elasticsearch.ElasticsearchStatusException: ElasticsearchStatusException[Elasticsearch exception [type=es_rejected_execution_exception, reason=rejected execution of coordinating operation [coordinating_and_primary_bytes=0, replica_bytes=0, all_bytes=0, coordinating_operation_bytes=120110686, max_coordinating_and_primary_bytes=102917734]]]
  • これらは必ずしも操作が失敗する原因ではありませんが、ヘッドレス API を介してこれらの Web コンテンツにアクセスできなくなります。

環境

  • Liferay DXP 7.3

解決

  • これに対する私たちが推奨するすぐに使える解決策は、Webコンテンツ記事のバルクサイズを減らすことです。
    • このオプションは、「システム設定 -> 検索 -> インデックスの再構築 -> インデックス化バッチサイズ」にあります。
    • com.liferay.journal.model.JournalArticle プロパティの値を下げます。
  • すぐに使えるソリューションがユースケースに合わない場合は、elasticsearch.yml ファイルの http.max_content_length 設定の値を増やすことができます。 これにより、デフォルトの 1g Xmx value (Elastic) がデータのインデックス再構築には低すぎるという問題が発生する可能性があります。 したがって、その値も大きくする必要があります。
did-this-article-resolve-your-issue

legacy-knowledge-base