legacy-knowledge-base
公開されました Sep. 10, 2025

再インデックス時に「HTTP/1.1 413 Request Entity Too Large」エラーが発生します

written-by

Neil Cuzon

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

問題

  • 再インデックス作成中に以下のエラーが発生しました:
    •  Error reindexing all com.liferay.journal.model.JournalArticle for company: 10157

      com.liferay.portal.kernel.log.LogSanitizerException: java.lang.RuntimeException: ElasticsearchStatusException[Unable to parse response body]; nested: ResponseException[method [POST], host [http://daltstlfrsrch02:9200], URI [/_bulk?refresh=true&timeout=1m], status line [HTTP/1.1 413 Request Entity Too Large]_]; [Sanitized]

      (...)

      Caused by: com.liferay.portal.kernel.log.LogSanitizerException: org.elasticsearch.client.ResponseException: method [POST], host [http://daltstlfrsrch02:9200], URI [/_bulk?refresh=true&timeout=1m], status line [HTTP/1.1 413 Request Entity Too Large]_ [Sanitized]

環境

  • DXP 7.4

解決

  • このエラーは、 http.max_content_lengthの値が、インデックス再作成リクエストに対応するのに十分でない場合に発生します。
  • elasticsearch.ymlファイルhttp.max_content_length の値を変更してください。デフォルト値は 100mb です。 この値はリクエストの大きさに合わせて増やすことができます。

 

did-this-article-resolve-your-issue

legacy-knowledge-base