cancel
Showing results for 
Search instead for 
Did you mean: 

Elasticsearch Magento test connection fails

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Elasticsearch Magento test connection fails

Hello,
I have installed Elasticsearch on a different server than the Magento is hosted. I have config it to be accessible over Apache and it's working everything OK.

If I go over browser to domain where I config it https://xxxxx.xxxxx.xx/

I get displayed in browser: 

{
  "name" : "F_BKG4z",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "KT8JBm8RTee7xTxtMv_zSg",
  "version" : {
    "number" : "6.8.2",
    "build_flavor" : "default",
    "build_type" : "rpm",
    "build_hash" : "b506955",
    "build_date" : "2019-07-24T15:24:41.545295Z",
    "build_snapshot" : false,
    "lucene_version" : "7.7.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

and if I go to: https://xxxxx.xxxxx.xx/_cluster/health

I get displayed in browser:

{"cluster_name":"elasticsearch","status":"green","timed_out":false,"number_of_nodes":1,"number_of_data_nodes":1,"active_primary_shards":0,"active_shards":0,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":0,"delayed_unassigned_shards":0,"number_of_pending_tasks":0,"number_of_in_flight_fetch":0,"task_max_waiting_in_queue_millis":0,"active_shards_percent_as_number":100.0}

It seems that everything is working OK.

 

But If I enter this host to elasticsearch configuration in magento admin I get connection failed error.

 

Any Ideas?

 

1 REPLY 1

Re: Elasticsearch Magento test connection fails

Hello,

I have tried to change the port to 80 and the test connection is working now, but if I change it to 443 I get an error.

 

I tried to connect from terminal where magento is installed with CURL and it's connecting to 443 without problems.