Cortex icon indicating copy to clipboard operation
Cortex copied to clipboard

ERROR CONNECTING REFUSED OR CLOSED CORTEX WITH OPENSEARCH

Open romarito90 opened this issue 2 years ago • 2 comments

ERROR CONNECTING REFUSED OR CLOSED CORTEX WITH OPENSEARCH

Request Type

Error connection refused or closed with opensearch and cortex

Work Environment

Question Answer
OS version (server) RedHat 8.8
Cortex version 3.1.7
Opensearch 1.3.11
Package Type RPM
Browser type & version Firefox

Problem Description

I tried to use opensearch instead elasticsearch with cortex but this cause errors

This is the configuration in opensearch.yml

imagen imagen imagen imagen

this is my configuration with cortex in application.conf

imagen

I got these errors when I tried to reach the cortex page 127.0.0.1:9001

imagen imagen imagen imagen

If I tried to change these values below in opensearch.yml i got this error

I changed the values from false to true imagen

I got the next errors

imagen imagen imagen imagen

Steps to Reproduce

Step 1 install opensearch version 1.3.11 and configure opensearch accordingly and run service Step 2 install cortex 3.1.7 latest version and configure cortex accordingly and run service Step 3 Try to open cortex in browser localhost:9001 and this cause error

Possible solutions

Maybe I think this is a problem with elastic4s and elastic4play libraries of cortex and this cause a problem with compatibility with opensearch, maybe these libraries needs to be change to have a compatibility with opensearch

Complementary information

romarito90 avatar Aug 09 '23 17:08 romarito90

Same for me here, always appear connection closed

dmclazaro01 avatar Nov 06 '24 12:11 dmclazaro01

That's a compatibility error, the workaround for this is to add this line to your elasticsearch.yml or opensearch.yml: compatibility.override_main_response_version: true

Be aware this can break connection between your indexer and other platforms. For example Graylog doesn't work if the compatibility override is set.

egarciam-dev avatar Feb 02 '25 14:02 egarciam-dev