# Unable setup password for 3 nodes cluster

**URL:** <https://discuss.elastic.co/t/unable-setup-password-for-3-nodes-cluster/271481>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-security, docker\
**Created:** [April 28, 2021, 8:04am UTC](https://discuss.elastic.co/t/unable-setup-password-for-3-nodes-cluster/271481 "2021-04-28T08:04:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![overbid](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/overbid/32/87426_2.png) [@overbid](https://discuss.elastic.co/u/overbid)\
**Post date:** [April 28, 2021, 8:04am UTC](https://discuss.elastic.co/t/unable-setup-password-for-3-nodes-cluster/271481/1 "2021-04-28T08:04:44Z")

</div>

I use podman to deploy 3 nodes cluster in 3 machines.

```
version: "3"
services:
  es01:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.12.0
    container_name: es01
    environment:
      - node.name=es01
      - cluster.name=es-cluster
      - discovery.seed_hosts=es02,es03
      - cluster.initial_master_nodes=es01,es02,es03
      - "ES_JAVA_OPTS=-Xms3g -Xmx3g"
      - index.codec=best_compression
      - xpack.security.enabled=true
      - network.publish_host=172.31.44.179
    extra_hosts:
      - "es02:172.31.25.120"
      - "es03:172.31.18.77"
    ports:
      - 9200:9200
      - 9300:9300
    networks:
      - elastic
networks:
  elastic:
    driver: bridge

```

After all node join cluster inside container after run commands.

```
[root@4b932ee9997a elasticsearch]# bin/elasticsearch-setup-passwords auto -u "http://localhost:9200"
[root@4b932ee9997a elasticsearch]# bin/elasticsearch-setup-passwords auto

```

Both freeze and not response. How to fix it?

---

<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:** [May 26, 2021, 8:05am UTC](https://discuss.elastic.co/t/unable-setup-password-for-3-nodes-cluster/271481/2 "2021-05-26T08:05:03Z")

</div>

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