RE: Elasticsearch(6.5.0) error after upgrade from 7.0 to 7.2

Najlaa STITOU, modified 5 Years ago. New Member Posts: 10 Join Date: 5/16/16 Recent Posts
Hello,After hours of investigations, i cannot find the origin of the problem, i have already installed the necessary plugins in elasticsearch, i have problem running liferay 7.2.02020-01-22 18:00:44.334 ERROR [liferay/search_writer/SYSTEM_ENGINE-5][ElasticsearchIndexWriter:364] Update failed
2020-01-22 18:00:44.335 ERROR [liferay/search_writer/SYSTEM_ENGINE-2][ElasticsearchIndexWriter:364] Update failed
2020-01-22 18:00:44.334 ERROR [liferay/search_writer/SYSTEM_ENGINE-3][ElasticsearchIndexWriter:364] Update failed
2020-01-22 18:00:44.334 ERROR [liferay/search_writer/SYSTEM_ENGINE-4][ElasticsearchIndexWriter:364] Update failed
2020-01-22 18:00:44.334 ERROR [liferay/search_writer/SYSTEM_ENGINE-1][ElasticsearchIndexWriter:364] Update failed

Can you help please!!!it happens while running method updateDocument in ElasticsearchWriter:public void updateDocument(SearchContext searchContext, Document document) {
        String indexName = _indexNameBuilder.getIndexName(
            searchContext.getCompanyId());        BulkDocumentRequest bulkDocumentRequest = new BulkDocumentRequest();        if (PortalRunMode.isTestMode() || searchContext.isCommitImmediately()) {
            bulkDocumentRequest.setRefresh(true);
        }        DeleteDocumentRequest deleteDocumentRequest = new DeleteDocumentRequest(
            indexName, document.getUID());        deleteDocumentRequest.setType(DocumentTypes.LIFERAY);        bulkDocumentRequest.addBulkableDocumentRequest(deleteDocumentRequest);        IndexDocumentRequest indexDocumentRequest = new IndexDocumentRequest(
            indexName, document);        indexDocumentRequest.setType(DocumentTypes.LIFERAY);        bulkDocumentRequest.addBulkableDocumentRequest(indexDocumentRequest);        BulkDocumentResponse bulkDocumentResponse =
            _searchEngineAdapter.execute(bulkDocumentRequest);        if (bulkDocumentResponse.hasErrors()) {
            if (_logExceptionsOnly) {
                _log.error("Update failed");
            }
            else {
                throw new SystemException("Update failed");
            }
        }
    }
Could you help please emoticon !
thumbnail
Jorge Díaz, modified 5 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts
Are you using a Remote Elasticsearch or embedded one (note that embedded is only fine in case of local development environments!)Do you have any kind of warning, error or exception in Elasticsearch side?
Najlaa STITOU, modified 5 Years ago. New Member Posts: 10 Join Date: 5/16/16 Recent Posts
Hello Jorge,No i dont have any exception in elasticsearch side, it's a remote elasticsearch which is installed in my machine.Thx a lot for your help
thumbnail
Jorge Díaz, modified 5 Years ago. Liferay Master Posts: 753 Join Date: 1/9/14 Recent Posts
Hi Najlaa,
Try activating DEBUG traces at both Liferay and Elasticsearch;
You can also try configuring a clean Elasticsearch installation (or just Embedded Elasticsearch) in order to diagnose the issue is in Liferay or Elasticsearch server.
Najlaa STITOU, modified 5 Years ago. New Member Posts: 10 Join Date: 5/16/16 Recent Posts
Thanks a lot Jorge !