# Password reset require for elasticsearch 7.17.7

**URL:** https://discuss.elastic.co/t/password-reset-require-for-elasticsearch-7-17-7/340780
**Category:** Elasticsearch
**Tags:** elastic-stack-security
**Created:** [August 14, 2023, 6:49pm UTC](https://discuss.elastic.co/t/password-reset-require-for-elasticsearch-7-17-7/340780 "2023-08-14T18:49:09Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sohag](https://avatars.discourse-cdn.com/v4/letter/s/6a8cbe/32.png) [@sohag](https://discuss.elastic.co/u/sohag)
#### Post date: [August 14, 2023, 6:49pm UTC](https://discuss.elastic.co/t/password-reset-require-for-elasticsearch-7-17-7/340780/1 "2023-08-14T18:49:09Z")

</div>

Hi  
Please help me to resolve the below issue.

I lost my Elasticsearch password of user elastic .  
Now i am trying to reset the password but error is like below-

```auto
curl -XPOST "http://localhost:9200/_security/user/elastic/_password" -H "Content-Type: application/json" -d '{
  "password": "CfzkwGPJ0L4uOOTpuK1E"
}'
curl: (7) Failed to connect to localhost port 9200 after 0 ms: Connection refused

```

Elasticsearch log below

```auto
tail -f /var/log/elasticsearch/elasticsearch.log
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1158) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
	at java.lang.Thread.run(Thread.java:1589) [?:?]
	at jdk.internal.misc.InnocuousThread.run(InnocuousThread.java:186) ~[?:?]
[2022-12-08T07:15:12,917][INFO][o.e.n.Node] [ip-172-16-4-208] stopped
[2022-12-08T07:15:12,917][INFO][o.e.n.Node] [ip-172-16-4-208] closing ...
[2022-12-08T07:15:12,929][INFO][o.e.i.g.DatabaseReaderLazyLoader] [ip-172-16-4-208] evicted [0] entries from cache after reloading database [/tmp/elasticsearch-11390345350643707989/geoip-databases/J3We3-jRRzWKR0SbL-GPwA/GeoLite2-Country.mmdb]
[2022-12-08T07:15:12,930][INFO][o.e.i.g.DatabaseReaderLazyLoader] [ip-172-16-4-208] evicted [0] entries from cache after reloading database [/tmp/elasticsearch-11390345350643707989/geoip-databases/J3We3-jRRzWKR0SbL-GPwA/GeoLite2-ASN.mmdb]
[2022-12-08T07:15:12,930][INFO][o.e.i.g.DatabaseReaderLazyLoader] [ip-172-16-4-208] evicted [0] entries from cache after reloading database [/tmp/elasticsearch-11390345350643707989/geoip-databases/J3We3-jRRzWKR0SbL-GPwA/GeoLite2-City.mmdb]
[2022-12-08T07:15:12,934][INFO][o.e.n.Node] [ip-172-16-4-208] closed

```

---

<div class="post-metadata">

### Author: ![Yang\_Wang](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yang_wang/32/48857_2.png) [@Yang\_Wang](https://discuss.elastic.co/u/Yang_Wang)
#### Post date: [August 14, 2023, 10:19pm UTC](https://discuss.elastic.co/t/password-reset-require-for-elasticsearch-7-17-7/340780/2 "2023-08-14T22:19:39Z")

</div>

> [@sohag](#):
>
> ```auto
> [2022-12-08T07:15:12,917][INFO][o.e.n.Node] [ip-172-16-4-208] stopped
> [2022-12-08T07:15:12,917][INFO][o.e.n.Node] [ip-172-16-4-208] closing ...
> ...
> [2022-12-08T07:15:12,934][INFO][o.e.n.Node] [ip-172-16-4-208] closed
> 
> ```

The node stopped a while back. You need restart it first. Also, if you don't have password for any users, you might want to start with the [elasticsearch-users](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/users-command.html) CLI.

---

<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: [September 11, 2023, 10:20pm UTC](https://discuss.elastic.co/t/password-reset-require-for-elasticsearch-7-17-7/340780/3 "2023-09-11T22:20:38Z")

</div>

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