# Setup-passwords ERROR: Unknown error

**URL:** <https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283>\
**Category:** Elasticsearch\
**Created:** [August 7, 2018, 8:40am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283 "2018-08-07T08:40:13Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssolanoballester](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@ssolanoballester](https://discuss.elastic.co/u/ssolanoballester)\
**Post date:** [August 7, 2018, 8:40am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/1 "2018-08-07T08:40:13Z")

</div>

Hi all,

I recently installed elastic 6.2.2 with xpack.  
I'm trying to set password to elastic user, but I got an Unknow error. There is no messages in cluster log.

[elastic@elastic]$ bin/x-pack/setup-passwords interactive -u [http://10.27.0.2:9201](http://10.27.0.2:9201)

Unexpected response code [404] from calling GET [http://10.27.0.2:9201/\_xpack/security/\_authenticate?pretty](http://10.27.0.2:9201/_xpack/security/_authenticate?pretty)  
Possible causes include:

- The relative path of the URL is incorrect. Is there a proxy in-between?
- The protocol (http/https) does not match the port.
- Is this really an Elasticsearch server?

ERROR: Uknown error  
[elastic@elastic]$ telnet 10.27.0.2 9201  
Trying 10.27.0.2...  
Connected to 10.27.0.2.  
Escape character is '^]'.  
^]  
telnet\> quit  
Connection closed.  
[elastic@elastic]$

Any advice on how to resolve it?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 7, 2018, 9:47am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/2 "2018-08-07T09:47:18Z")

</div>

What gives:

```
curl http://10.27.0.2:9201/ 

```

And also

```
curl http://10.27.0.2:9201/_cat/plugins?v

```

And BTW why are you running on port 9201? Are you running 2 nodes on the same machine?

---

<div class="post-metadata">

**Author:** ![ssolanoballester](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@ssolanoballester](https://discuss.elastic.co/u/ssolanoballester)\
**Post date:** [August 7, 2018, 10:03am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/3 "2018-08-07T10:03:19Z")

</div>

Hi,

That is the response of two requests:

[elastic@elastic ~]# curl [http://10.27.0.2:9201/](http://10.27.0.2:9201/)  
{  
"name" : "ELASTIC75",  
"cluster\_name" : "cluster\_elastic\_I",  
"cluster\_uuid" : "xZwkdYDvTZiH53u61MYg",  
"version" : {  
"number" : "6.2.2",  
"build\_hash" : "10b1edd",  
"build\_date" : "2018-02-16T19:01:30.685723Z",  
"build\_snapshot" : false,  
"lucene\_version" : "7.2.1",  
"minimum\_wire\_compatibility\_version" : "5.6.0",  
"minimum\_index\_compatibility\_version" : "5.0.0"  
},  
"tagline" : "You Know, for Search"  
}  
[elastic@elastic~]# curl [http://10.27.0.2:9201/\_cat/plugins?v](http://10.27.0.2:9201/_cat/plugins?v)  
name component version  
ELASTIC75 x-pack-core 6.2.2  
ELASTIC75 x-pack-deprecation 6.2.2  
ELASTIC75 x-pack-graph 6.2.2  
ELASTIC75 x-pack-logstash 6.2.2  
ELASTIC75 x-pack-ml 6.2.2  
ELASTIC75 x-pack-monitoring 6.2.2  
ELASTIC75 x-pack-security 6.2.2  
ELASTIC75 x-pack-upgrade 6.2.2  
ELASTIC75 x-pack-watcher 6.2.2  
ELASTIC76 x-pack-core 6.2.2  
ELASTIC76 x-pack-deprecation 6.2.2  
ELASTIC76 x-pack-graph 6.2.2  
ELASTIC76 x-pack-logstash 6.2.2  
ELASTIC76 x-pack-ml 6.2.2  
ELASTIC76 x-pack-monitoring 6.2.2  
ELASTIC76 x-pack-security 6.2.2  
ELASTIC76 x-pack-upgrade 6.2.2  
ELASTIC76 x-pack-watcher 6.2.2

> [@dadoonet](#):
>
> And BTW why are you running on port 9201? Are you running 2 nodes on the same machine?

Home security recommendations (change default port to not standard port).

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 7, 2018, 1:20pm UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/4 "2018-08-07T13:20:17Z")

</div>

What is the output of:

```
curl http://10.27.0.2:9201/_xpack/security/_authenticate?pretty

```

?

---

<div class="post-metadata">

**Author:** ![ssolanoballester](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@ssolanoballester](https://discuss.elastic.co/u/ssolanoballester)\
**Post date:** [August 7, 2018, 1:36pm UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/5 "2018-08-07T13:36:36Z")

</div>

[elastic@elastic ~]$ curl [http://10.27.0.2:9201/\_xpack/security/\_authenticate?pretty](http://10.27.0.2:9201/_xpack/security/_authenticate?pretty)  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "index\_not\_found\_exception",  
"reason" : "no such index",  
"resource.type" : "index\_expression",  
"resource.id" : "\_xpack",  
"index\_uuid" : "_na_",  
"index" : "\_xpack"  
}  
],  
"type" : "index\_not\_found\_exception",  
"reason" : "no such index",  
"resource.type" : "index\_expression",  
"resource.id" : "\_xpack",  
"index\_uuid" : "_na_",  
"index" : "\_xpack"  
},  
"status" : 404  
}

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [August 8, 2018, 2:32am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/6 "2018-08-08T02:32:51Z")

</div>

What does

```auto
curl http://10.27.0.2:9201/_xpack/

```

give you?

---

<div class="post-metadata">

**Author:** ![ssolanoballester](https://avatars.discourse-cdn.com/v4/letter/s/41988e/32.png) [@ssolanoballester](https://discuss.elastic.co/u/ssolanoballester)\
**Post date:** [August 8, 2018, 9:08am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/7 "2018-08-08T09:08:03Z")

</div>

Hi Tim and David,

Finally I resolved reinstall whole cluster (elastic and xpack). I had moved elastic installation before problem and unfortunately something happened with data folder.  
Your help was amazing.

Thanks.

---

<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 5, 2018, 9:09am UTC](https://discuss.elastic.co/t/setup-passwords-error-unknown-error/143283/8 "2018-09-05T09:09:34Z")

</div>

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