Skip to content

Debugging connection issues

Carsten König edited this page Sep 1, 2022 · 13 revisions

Please try the following steps if you have trouble connecting to your cluster:

1. Check if you can connect to your cluster on the commandline

Try to curl your cluster directly, for example

# curl an unprotected cluster
curl -X GET "http://localhost:9200"

# curl a cluster that uses ssl
curl -k -X GET "https://localhost:9200"

# curl a cluster that uses authorization
curl -k -X GET -u elastic:yourpassword "https://localhost:9200"

Proceed to the next step if you see a response similar to this one:

{
  "name" : "cars10-thinkpad",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "-KjsfLD2TYC36a4FvviZjA",
  "version" : {
    "number" : "8.2.2",
    "build_flavor" : "default",
    "build_type" : "tar",
    "build_hash" : "9876968ef3c745186b94fdabd4483e01499224ef",
    "build_date" : "2022-05-25T15:47:06.259735307Z",
    "build_snapshot" : false,
    "lucene_version" : "9.1.0",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}
Clone this wiki locally