# FREE license expired and now I can't do anything

**URL:** <https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229>\
**Category:** Elasticsearch\
**Created:** [December 5, 2017, 1:04am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229 "2017-12-05T01:04:05Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 1:04am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/1 "2017-12-05T01:04:05Z")

</div>

curl -v -XPUT -u adam '[http://0.0.0.0:9200/\_license](http://0.0.0.0:9200/_license)' -d /home/deploy/adam-medeiros-c6e3e22c-18c0-4b72-8023-5810ee4bed5a-v5.json

- Trying 0.0.0.0...
- Connected to 0.0.0.0 (127.0.0.1) port 9200 (#0)
- Server auth using Basic with user 'adam'

> PUT /\_license HTTP/1.1  
> Host: 0.0.0.0:9200  
> Authorization: Basic YWRhbTpjYW52YXMxMA==  
> User-Agent: curl/7.47.0  
> Accept: _/_  
> Content-Length: 1200  
> Content-Type: application/x-www-form-urlencoded

- upload completely sent off: 1200 out of 1200 bytes
- Empty reply from server
- Connection #0 to host 0.0.0.0 left intact

Ehm.......what now? adam user is a superuser. I also tried the elastic user but same outcome. I'm completely blocked right now and I'm unable to look at my logstashes to find a problem on one of my production servers. Documentation is terribly disorganized and I have to use google search to look up solutions - which is no good since I can't tell of the proposed solutions are outdated or I have some system problem.

Why a complete lockout on a FREE license? Why not just nag me to update my license and let me get on with my life?

Kibana is not allowing me to get in and I can't install a new license to satisfy it either. If someone can get back to me quickly, I'd appreciate it. I can't search through Kibana dashboard at the moment.

---

<div class="post-metadata">

**Author:** ![mujtabahussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mujtabahussain/32/17514_2.png) [@mujtabahussain](https://discuss.elastic.co/u/mujtabahussain)\
**Post date:** [December 5, 2017, 1:19am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/2 "2017-12-05T01:19:47Z")

</div>

Hey! That sucks.

What version of elastic stack are you running?

Although [this page](https://www.elastic.co/guide/en/x-pack/current/license-expiration.html) doesn't mention any degradation of authentication/authorisation that has already been established, I will wait for someone from [elastic.co](http://elastic.co) to officially comment on it.

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 1:29am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/3 "2017-12-05T01:29:53Z")

</div>

Hey there,

:~$ elasticsearch -V  
Version: 5.6.3, Build: 1a2f265/2017-10-06T20:33:39.012Z, JVM: 1.8.0\_151

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 1:33am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/4 "2017-12-05T01:33:43Z")

</div>

OH - and thank you for reaching out to help me. I appreciate it.

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 1:38am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/5 "2017-12-05T01:38:47Z")

</div>

For the record, I also tried a few times to install the license before it expired, but had the same outcome and didn't have time to troubleshoot the issue then. Now it's too late and I'm forced to confront this. I wish there wasn't so much friction to install a free license. Just reading [https://www.elastic.co/guide/en/x-pack/current/license-expiration.html](https://www.elastic.co/guide/en/x-pack/current/license-expiration.html) frustrates me because following those steps didn't actually work.

---

<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:** [December 5, 2017, 1:40am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/6 "2017-12-05T01:40:58Z")

</div>

> [@Adam\_Medeiros](#):
>
> curl -v -XPUT -u adam '[http://0.0.0.0:9200/\_license](http://0.0.0.0:9200/_license)' -d /home/deploy/adam-medeiros-c6e3e22c-18c0-4b72-8023-5810ee4bed5a-v5.json

It looks like you're missing the `@` at the beginning on the filename.

The `-d` flag to curl expect a raw input string, you need to have a leading @ to tell it to read from a file (sorry, it's a curl thing)

```auto
 curl -v -XPUT -u adam 'http://0.0.0.0:9200/_license' -d @/home/deploy/adam-medeiros-c6e3e22c-18c0-4b72-8023-5810ee4bed5a-v5.json

```

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 1:42am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/7 "2017-12-05T01:42:38Z")

</div>

> [@TimV](#):
>
> curl -v -XPUT -u adam '[http://0.0.0.0:9200/\_license](http://0.0.0.0:9200/_license)' -d @/home/deploy/adam-medeiros-c6e3e22c-18c0-4b72-8023-5810ee4bed5a-v5.json

Yeah...I tried that too Tim - that had the same outcome:

:~$ curl -v -XPUT -u adam '[http://0.0.0.0:9200/\_license](http://0.0.0.0:9200/_license)' -d @/home/deploy/adam-medeiros-c6e3e22c-18c0-4b72-8023-5810ee4bed5a-v5.json  
Enter host password for user 'adam':

- Trying 0.0.0.0...
- Connected to 0.0.0.0 (127.0.0.1) port 9200 (#0)
- Server auth using Basic with user 'adam'

> PUT /\_license HTTP/1.1  
> Host: 0.0.0.0:9200  
> Authorization: Basic YWRhbTpjYW52YXMxMA==  
> User-Agent: curl/7.47.0  
> Accept: _/_  
> Content-Length: 1200  
> Content-Type: application/x-www-form-urlencoded  
> Expect: 100-continue

- Empty reply from server
- Connection #0 to host 0.0.0.0 left intact  
curl: (52) Empty reply from server

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 1:44am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/8 "2017-12-05T01:44:06Z")

</div>

Also, just so everyone can see this user should theoretically have the power to do this:

:/usr/share/elasticsearch/bin/x-pack# ./users list  
adam : superuser

---

<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:** [December 5, 2017, 1:48am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/9 "2017-12-05T01:48:49Z")

</div>

Sorry, I just noticed that you also have the wrong URL.

From the [documentation](https://www.elastic.co/guide/en/x-pack/5.6/installing-license.html)

```auto
curl -XPUT -u elastic 'http://<host>:<port>/_xpack/license' -H "Content-Type: application/json" -d @license.json

```

So in your case this should work:

```auto
curl -XPUT -u adam 'http://127.0.0.1:9200/_xpack/license' -H "Content-Type: application/json" -d @/home/deploy/adam-medeiros-c6e3e22c-18c0-4b72-8023-5810ee4bed5a-v5.json

```

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 2:04am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/10 "2017-12-05T02:04:44Z")

</div>

Actually 0.0.0.0 worked - but with https in front. What a dork I am.

---

<div class="post-metadata">

**Author:** ![Adam\_Medeiros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adam_medeiros/32/23321_2.png) [@Adam\_Medeiros](https://discuss.elastic.co/u/Adam_Medeiros)\
**Post date:** [December 5, 2017, 2:05am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/11 "2017-12-05T02:05:34Z")

</div>

My deepest thanks for trying to help me guys! @TimV@mujtabahussain

---

<div class="post-metadata">

**Author:** ![mujtabahussain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mujtabahussain/32/17514_2.png) [@mujtabahussain](https://discuss.elastic.co/u/mujtabahussain)\
**Post date:** [December 5, 2017, 2:11am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/12 "2017-12-05T02:11:44Z")

</div>

All good mate. Best of luck.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [December 5, 2017, 5:13am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/13 "2017-12-05T05:13:45Z")

</div>

Thanks for stepping in to help so quickly @TimV and @mujtabahussain!

---

<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:** [January 2, 2018, 5:13am UTC](https://discuss.elastic.co/t/free-license-expired-and-now-i-cant-do-anything/110229/14 "2018-01-02T05:13:50Z")

</div>

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