# Machine Learning - Lab 1 - login error

**URL:** <https://discuss.elastic.co/t/machine-learning-lab-1-login-error/115104>\
**Category:** Elastic Training\
**Created:** [January 11, 2018, 2:03pm UTC](https://discuss.elastic.co/t/machine-learning-lab-1-login-error/115104 "2018-01-11T14:03:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrauch](https://avatars.discourse-cdn.com/v4/letter/m/50afbb/32.png) [@mrauch](https://discuss.elastic.co/u/mrauch)\
**Post date:** [January 11, 2018, 2:03pm UTC](https://discuss.elastic.co/t/machine-learning-lab-1-login-error/115104/1 "2018-01-11T14:03:00Z")

</div>

Hello,  
I got a problem logging in on localhost:9200 (step 7 in Lab 1) even I followed all instructions for installing elasticsearch and x-pack. This error occurs:  
`{"error":{"root_cause":[{"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}}],"type":"security_exception","reason":"failed to authenticate user [elastic]","header":{"WWW-Authenticate":"Basic realm=\"security\" charset=\"UTF-8\""}},"status":401}`  
How can I solve this?  
Cheers  
Miriam

---

<div class="post-metadata">

**Author:** ![nzamecnik](https://avatars.discourse-cdn.com/v4/letter/n/76d3ee/32.png) [@nzamecnik](https://discuss.elastic.co/u/nzamecnik)\
**Post date:** [January 11, 2018, 2:29pm UTC](https://discuss.elastic.co/t/machine-learning-lab-1-login-error/115104/2 "2018-01-11T14:29:30Z")

</div>

Hello,

The course was built using Elasticsearch 5.x. You may need to ensure you're using 5.6 or earlier.

We will update the labs to use Elasticsearch 6 soon. In the meantime, if you want to continue using v6.x of the Elastic Stack then read this to see how to install X-Pack. It's pretty simple, but a bit different from 5.x.

[https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html](https://www.elastic.co/guide/en/x-pack/current/installing-xpack.html)

---

<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:** [February 10, 2018, 2:29pm UTC](https://discuss.elastic.co/t/machine-learning-lab-1-login-error/115104/3 "2018-02-10T14:29:44Z")

</div>

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