# Login problem w/ superuser on other nodes (docker)

**URL:** <https://discuss.elastic.co/t/login-problem-w-superuser-on-other-nodes-docker/316635>\
**Category:** Elasticsearch\
**Tags:** docker, language-clients\
**Created:** [October 14, 2022, 12:12pm UTC](https://discuss.elastic.co/t/login-problem-w-superuser-on-other-nodes-docker/316635 "2022-10-14T12:12:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![divadpoc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/divadpoc/32/97844_2.png) [@divadpoc](https://discuss.elastic.co/u/divadpoc)\
**Post date:** [October 14, 2022, 12:12pm UTC](https://discuss.elastic.co/t/login-problem-w-superuser-on-other-nodes-docker/316635/1 "2022-10-14T12:12:34Z")

</div>

Hi, I had a problem I was able to figure out, but I don't understanding why, yet.

All versions, ES, Kibana, Java Client, w/ latest version (8.4)

I followed the instructions [here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) in order to run elasticsearch and kibana w/ docker-compose.

I was used to using Sniffer from previous projects (but those were bare metal installations, w/o docker or any other virtualization). So therefore I configured Sniffer as described [here](https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/_usage.html). In order to work properly I had to adapt the `compose.yml` file adding environment entry `http.publish_host=es0{1,2,3}` respectively. Furthermore, I had to use the `ElasticsearchNodesSniffer` in order to support `https`.

At that moment everything seems to work fine, my java service is configuring the cluster by installing component and index templates etc.

BUT - health check `_cluster/health/` did not work, at least not on hosts `es02` and `es03`, where I received log messages for the respective nodes like:  
`authentication of elastic was terminated by realm reserved`, or `system_critical_read`. but, as I said, for all nodes except `es01`.

Then I disabled sniffing, and everything works fine.

So, my questions now are:

- Why is the request `_cluster/health/` not working on the other nodes?
- Why is login not allowed on the other nodes?

Thanks in advance for your elaborations

---

<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:** [November 11, 2022, 12:12pm UTC](https://discuss.elastic.co/t/login-problem-w-superuser-on-other-nodes-docker/316635/2 "2022-11-11T12:12:41Z")

</div>

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