The client is unable to verify that the server is Elasticsearch due security privileges on the server side

Why am I getting this error in my Mac with Elasticsearch 8.5.1 running in Docker and Jupyter notebook is supposed to communicate with Elasticsearch through port 9200?

The client is unable to verify that the server is Elasticsearch due to security privileges on the server side

Can you curl Elasticsearch successfully?

Yes, I can:

% curl --cacert http_ca.crt -u elastic https://localhost:9200
Enter host password for user 'elastic':
{
  "name" : "b1bc743382ad",
  "cluster_name" : "docker-cluster",
  "cluster_uuid" : "RYi8f2jYS6SDNvc1SB0yYg",
  "version" : {
    "number" : "8.5.1",
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "c1310c45fc534583afe2c1c03046491efba2bba2",
    "build_date" : "2022-11-09T21:02:20.169855900Z",
    "build_snapshot" : false,
    "lucene_version" : "9.4.1",
    "minimum_wire_compatibility_version" : "7.17.0",
    "minimum_index_compatibility_version" : "7.0.0"
  },
  "tagline" : "You Know, for Search"
}

From where are you running your Jupyter notebook?

If you are using localhost, it needs to be running from the same container that Elasticsearch is running.

Thank you for the additional information! Is there any sample of docker-compose file to combine elasticsearch and jupyter in a single docker?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.