"HTTP/1.1 413 Request Entity Too Large" Error encountered when reindexing

Issue

  • We encountered the error below while reindexing:
    •  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]

Environment

  • DXP 7.4

Resolution

  • The error occurs if the value for http.max_content_lengthis not enough to accommodate the reindexing request.
  • Change the value for http.max_content_length in the elasticsearch.ymlfile, the default value is 100mb. The value could be increased to accommodate the size of the request.

 

Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0