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

問題

  • 再インデックス作成中に以下のエラーが発生しました:
    •  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 です。 この値はリクエストの大きさに合わせて増やすことができます。

 

この記事は役に立ちましたか?
0人中0人がこの記事が役に立ったと言っています