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_length
is not enough to accommodate the reindexing request. -
Change the value for
http.max_content_length
in theelasticsearch.yml
file, the default value is 100mb. The value could be increased to accommodate the size of the request.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.
Entrar