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.
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión