# Error while enrolling: empty access\_token

**URL:** <https://discuss.elastic.co/t/error-while-enrolling-empty-access-token/175626>\
**Category:** Beats\
**Tags:** fleet, filebeat\
**Created:** [April 5, 2019, 3:31pm UTC](https://discuss.elastic.co/t/error-while-enrolling-empty-access-token/175626 "2019-04-05T15:31:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [April 5, 2019, 3:31pm UTC](https://discuss.elastic.co/t/error-while-enrolling-empty-access-token/175626/1 "2019-04-05T15:31:36Z")

</div>

Hello World!

I'm using Elastic stack 6.7.1 and trying to follow [Enroll Beats in central management](https://www.elastic.co/guide/en/beats/filebeat/current/enroll-beats.html#username-password-enrollment), yet running into following issue:

```
# filebeat enroll --force https://X.X.X:443 --username elastic --password stdin
Enter password: 
Error while enrolling: empty access_token
# echo $?
1
# filebeat version
filebeat version 6.7.0 (amd64), libbeat 6.7.0 [14ca49c28a6e10b84b4ea8cdebdc46bd2eab3130 built 2019-03-21 14:33:56 +0000 UTC]
# 

```

Above method used to work w/ 6.6.X ([Error creating a new enrollment token](https://discuss.elastic.co/t/error-creating-a-new-enrollment-token/169320/3)), yet broken in 6.7.X(

Please advise.

---

<div class="post-metadata">

**Author:** ![BraveRBT](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/braverbt/32/43920_2.png) [@BraveRBT](https://discuss.elastic.co/u/BraveRBT)\
**Post date:** [April 11, 2019, 9:14am UTC](https://discuss.elastic.co/t/error-while-enrolling-empty-access-token/175626/2 "2019-04-11T09:14:54Z")

</div>

Just try remove some file at /var/lib/filebeat/\* and try again , It's going to work again.

---

<div class="post-metadata">

**Author:** ![alexus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexus/32/12696_2.png) [@alexus](https://discuss.elastic.co/u/alexus)\
**Post date:** [April 12, 2019, 4:31am UTC](https://discuss.elastic.co/t/error-while-enrolling-empty-access-token/175626/3 "2019-04-12T04:31:59Z")

</div>

i used following:

> apt-get remove filebeat && apt-get purge filebeat && apt-get install filebeat

---

<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 10, 2019, 4:32am UTC](https://discuss.elastic.co/t/error-while-enrolling-empty-access-token/175626/4 "2019-05-10T04:32:05Z")

</div>

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