I'm on:
- MacOS 14.2.1 (Sonoma on an M1 Macbook Pro)
- OpenSSL 3.2.1
- Docker Desktop has 8GB of RAM allocated to it
I'm following this guide to setup Elasticsearch + Kibana locally for development purposes, but am encountering a number of issues, the biggest one being some sort of issue with TLS/SSL when trying to connect to the Elasticsearch cluster.
Following the steps in the guide, when I get to the part where you ping the ES container with curl and the --cacerts
flag, I get the following error:
curl --cacert http_ca.crt -v -u elastic:$ELASTIC_PASSWORD https://localhost:9200/
* Trying [::1]:9200...
* Connected to localhost (::1) port 9200
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: http_ca.crt
* CApath: none
* LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version
* Closing connection
curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version
I've deleted and restarted the setup from scratch multiple times, and every time I get stuck here, with this error, and I'm not sure how to proceed.
If I ping http
instead, it works fine:
curl --cacert http_ca.crt -v -u elastic:$ELASTIC_PASSWORD http://localhost:9200/
{
"name" : "ctXSsVx",
"cluster_name" : "elasticsearch_brew",
"cluster_uuid" : "MFpSeyKBQne-qs09ZoYHlw",
"version" : {
"number" : "6.8.23",
"build_flavor" : "oss",
"build_type" : "tar",
"build_hash" : "4f67856",
"build_date" : "2022-01-06T21:30:50.087716Z",
"build_snapshot" : false,
"lucene_version" : "7.7.3",
"minimum_wire_compatibility_version" : "5.6.0",
"minimum_index_compatibility_version" : "5.0.0"
},
"tagline" : "You Know, for Search"
}
I tried setting the ENV
flag to ENV=ELASTICSEARCH_HOSTS=http://localhost:9200
when trying to run Kibana which will actually sort of work. It takes me to the Configuration page where I have to input my enrollment token, however once I paste the token in I immediately get a connect ECONNREFUSED 127.0.0.1:9200
error. I tried doing the manual setup and setting this to https
AND http
, however the same thing happens regardless.
Any help would be greatly appreciated here, I'm quite stuck!