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

**URL:** <https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [November 16, 2022, 5:07am UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015 "2022-11-16T05:07:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vasuji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasuji/32/64616_2.png) [@Vasuji](https://discuss.elastic.co/u/Vasuji)\
**Post date:** [November 16, 2022, 5:07am UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015/1 "2022-11-16T05:07:15Z")

</div>

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?

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

```

 ![Screen Shot 2022-11-15 at 9.05.20 PM](https://us1.discourse-cdn.com/elastic/original/3X/3/1/313017ff2e5c802a47020af36874da88b73f7446.jpeg)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 16, 2022, 10:15pm UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015/2 "2022-11-16T22:15:56Z")

</div>

Can you curl Elasticsearch successfully?

---

<div class="post-metadata">

**Author:** ![Vasuji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasuji/32/64616_2.png) [@Vasuji](https://discuss.elastic.co/u/Vasuji)\
**Post date:** [November 16, 2022, 10:27pm UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015/3 "2022-11-16T22:27:50Z")

</div>

Yes, I can:

```auto
% 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"
}

```

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [November 17, 2022, 2:24am UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015/4 "2022-11-17T02:24:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Vasuji](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasuji/32/64616_2.png) [@Vasuji](https://discuss.elastic.co/u/Vasuji)\
**Post date:** [November 17, 2022, 8:23pm UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015/5 "2022-11-17T20:23:05Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 15, 2022, 8:23pm UTC](https://discuss.elastic.co/t/the-client-is-unable-to-verify-that-the-server-is-elasticsearch-due-security-privileges-on-the-server-side/319015/6 "2022-12-15T20:23:45Z")

</div>

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