# Error :Authentication of \[elastic\] was terminated by realm \[reserved\] - failed to authenticate user \[elastic\]

**URL:** https://discuss.elastic.co/t/error-authentication-of-elastic-was-terminated-by-realm-reserved-failed-to-authenticate-user-elastic/192195
**Category:** Kibana
**Tags:** elastic-stack-security
**Created:** [July 25, 2019, 7:52am UTC](https://discuss.elastic.co/t/error-authentication-of-elastic-was-terminated-by-realm-reserved-failed-to-authenticate-user-elastic/192195 "2019-07-25T07:52:35Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![vaseem](https://avatars.discourse-cdn.com/v4/letter/v/6f9a4e/32.png) [@vaseem](https://discuss.elastic.co/u/vaseem)
#### Post date: [July 25, 2019, 7:52am UTC](https://discuss.elastic.co/t/error-authentication-of-elastic-was-terminated-by-realm-reserved-failed-to-authenticate-user-elastic/192195/1 "2019-07-25T07:52:36Z")

</div>

Hi,

I am getting the following error while running elastic search using "yarn es source"

│ info [o.e.x.s.a.AuthenticationService] [vaseem-virtual-machine] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]  
│ warn assuming [elastic] user not available yet, waiting 1.5 seconds and trying again  
│ info [o.e.l.LicenseService] [vaseem-virtual-machine] license [b3f49081-4763-4a50-b50b-4bd0ccf17c7f] mode [basic] - valid  
│ info [o.e.x.s.a.AuthenticationService] [vaseem-virtual-machine] Authentication of [elastic] was terminated by realm [reserved] - failed to authenticate user [elastic]  
│ERROR ResponseError: security\_exception  
│ at IncomingMessage.response.on (/home/vaseem/vaseem/kibana/node\_modules/@elastic/elasticsearch/lib/Transport.js:290:25)  
│ at IncomingMessage.emit (events.js:194:15)  
│ at endReadableNT (\_stream\_readable.js:1103:12)  
│ at process.\_tickCallback (internal/process/next\_tick.js:63:19)  
│ info [o.e.x.m.p.NativeController] [vaseem-virtual-machine] Native controller process has stopped - no new native processes can be started  
│ info [o.e.n.Node] [vaseem-virtual-machine] stopping ...  
│ info [o.e.x.w.WatcherService] [vaseem-virtual-machine] stopping watch service, reason [shutdown initiated]  
│ info [o.e.n.Node] [vaseem-virtual-machine] stopped  
│ info [o.e.n.Node] [vaseem-virtual-machine] closing ...  
│ info [o.e.n.Node] [vaseem-virtual-machine] closed

Step:

1. git clone [https://github.com/elastic/kibana](https://github.com/elastic/kibana) kibana  
git checkout v7.2.0
2. cd kibana
3. Bootstrap Kibana and install all the dependencies by executing below command(node.js and yarn already installled)

yarn kbn bootstrap

step 3 completed successfully.  
4) git clone [https://github.com/elastic/elasticsearch.git](https://github.com/elastic/elasticsearch.git) elasticsearch  
git checkout v7.2.0

1. Execute below command in kibana home  
yarn es source

Note : version of kibana and elasticsearch was v7.2.0

Please guide me how to resolve this error.

---

<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: [July 29, 2019, 3:37am UTC](https://discuss.elastic.co/t/error-authentication-of-elastic-was-terminated-by-realm-reserved-failed-to-authenticate-user-elastic/192195/2 "2019-07-29T03:37:09Z")

</div>

I moved this to the Kibana topic because the error is occurring in the Kibana build.

---

<div class="post-metadata">

### Author: ![vaseem](https://avatars.discourse-cdn.com/v4/letter/v/6f9a4e/32.png) [@vaseem](https://discuss.elastic.co/u/vaseem)
#### Post date: [July 31, 2019, 4:49pm UTC](https://discuss.elastic.co/t/error-authentication-of-elastic-was-terminated-by-realm-reserved-failed-to-authenticate-user-elastic/192195/3 "2019-07-31T16:49:35Z")

</div>

Thanks tim

---

<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: [August 28, 2019, 4:49pm UTC](https://discuss.elastic.co/t/error-authentication-of-elastic-was-terminated-by-realm-reserved-failed-to-authenticate-user-elastic/192195/4 "2019-08-28T16:49:35Z")

</div>

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