# Unable to install ES license

**URL:** <https://discuss.elastic.co/t/unable-to-install-es-license/76850>\
**Category:** Elasticsearch\
**Created:** [February 28, 2017, 6:38pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850 "2017-02-28T18:38:21Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [February 28, 2017, 6:38pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/1 "2017-02-28T18:38:21Z")

</div>

ES: v2.4.4

I recently requested a new basic license for Elasticsearch. When I attempt to install the license remotely by following the documentation, I'm either being denied permission or being prompted for the admin password, which I don't believe I've set.

```auto
seth-comp:Downloads Seth$ curl -XPUT -u admin 'http://my_host:9200/_license' -d @my-license-v2.json
Enter host password for user 'admin':
curl: (7) Failed to connect to lmtopslog01 port 9200: Connection refused

```

If I move the license to the ES node and try to do the curl locally, it also fails:

```auto
root@my_host:/usr/share/elasticsearch# curl -XPUT 'http://127.0.0.1:9200/_license' -d @my-license-v2.json
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":"No InputStream specified"}],"type":"null_pointer_exception","reason":"No InputStream specified"},"status":500}

```

Furthermore, even attempting to download the zip is failing due to the servers being at capacity:

```auto
seth_comp:Downloads Seth$ wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.4.4.zip
--2017-02-28 11:22:23-- https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.4.4.zip
Resolving download.elastic.co... 50.16.218.19, 23.23.215.69, 50.17.233.78, ...
Connecting to download.elastic.co|50.16.218.19|:443... connected.
HTTP request sent, awaiting response... 503 Service Unavailable: Back-end server is at capacity
2017-02-28 11:22:24 ERROR 503: Service Unavailable: Back-end server is at capacity.

```

I've followed the [documentation](https://www.elastic.co/guide/en/watcher/current/license-management.html) regarding updating my license for my version.

Can anyone please give me some guidance in what I'm doing incorrectly? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Kevin\_Lefevre](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kevin_lefevre/32/12905_2.png) [@Kevin\_Lefevre](https://discuss.elastic.co/u/Kevin_Lefevre)\
**Post date:** [February 28, 2017, 7:10pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/2 "2017-02-28T19:10:42Z")

</div>

Same here !

I think their download center is somehow down...

---

<div class="post-metadata">

**Author:** ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)\
**Post date:** [February 28, 2017, 7:26pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/3 "2017-02-28T19:26:52Z")

</div>

Sorry, all. We are affected by the S3 outage, too.

---

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [February 28, 2017, 7:27pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/4 "2017-02-28T19:27:49Z")

</div>

Sure. My post isn't really about the outage at all though, I have a license I'm trying to install offline.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 28, 2017, 7:49pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/5 "2017-02-28T19:49:48Z")

</div>

What happens if you `curl yourhost:9200`?

---

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [February 28, 2017, 7:58pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/6 "2017-02-28T19:58:08Z")

</div>

I can successfully curl, e.g. getting license data:

```auto
root@ES_node:~# curl -XGET 'http://localhost:9200/_license'
{
  "license" : {
    "status" : "expired",
    "uid" : "license-uid",
    "type" : "trial",
    "issue_date" : "2017-01-18T18:39:25.232Z",
    "issue_date_in_millis" : 1484764765232,
    "expiry_date" : "2017-02-17T18:39:25.232Z",
    "expiry_date_in_millis" : 1487356765232,
    "max_nodes" : 1000,
    "issued_to" : "elasticsearch",
    "issuer" : "elasticsearch"
  }
}

```

---

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [March 1, 2017, 6:06pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/7 "2017-03-01T18:06:46Z")

</div>

So the license install works on some clusters but not on others. Can anyone tell me what the error:

```
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":"No InputStream specified"}],"type":"null_pointer_exception","reason":"No InputStream specified"},"status":500}

```

means?

Working license install on one node:

```auto
root@netmon:~# curl -XPUT 'http://localhost:9200/_license?acknowledge=true' -d @my-license-netmon-v2.json
{"acknowledged":true,"license_status":"valid"}

```

Non-working license install on another node on another cluster:

```auto
root@opslog:~# curl -XPUT 'http://localhost:9200/_license?acknowledge=true' -d @my-license-opslog-v2.json
{"error":{"root_cause":[{"type":"null_pointer_exception","reason":"No InputStream specified"}],"type":"null_pointer_exception","reason":"No InputStream specified"},"status":500}

```

---

<div class="post-metadata">

**Author:** ![skearns](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skearns/32/125945_2.png) [@skearns](https://discuss.elastic.co/u/skearns)\
**Post date:** [March 2, 2017, 3:28am UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/8 "2017-03-02T03:28:46Z")

</div>

Hi Seth,

I agree this sounds a bit odd - I haven't seen that particular exception related to licensing (or anything else). What are the differences between the clusters where this works, and where it does not work? (e.g. versions, plugins, etc).

Can you confirm that the `my-license-opslog-v2.json` license file exists and try that license on the other cluster where applying the license was successful?

On the cluster where you're having the issue, can you share the results of a request to \_license?

Apologies for the trouble you're having - this isn't a common problem as far as I can tell.

Thanks,  
Steve

---

<div class="post-metadata">

**Author:** ![seth.yes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/seth.yes/32/11788_2.png) [@seth.yes](https://discuss.elastic.co/u/seth.yes)\
**Post date:** [March 6, 2017, 5:11pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/9 "2017-03-06T17:11:22Z")

</div>

Thanks Steve. It turned out to be a bug with my ES instance on that node. The default elasticsearch.yml was in place and for some reason it wasn't happy with that. Also I had to install a regular license, uninstall and then I was able to use the RESTful API to install the proper license. Weird issue that may point to some underlying problem with this particular node. Thank you for your help!

---

<div class="post-metadata">

**Author:** ![skearns](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/skearns/32/125945_2.png) [@skearns](https://discuss.elastic.co/u/skearns)\
**Post date:** [March 6, 2017, 5:25pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/10 "2017-03-06T17:25:15Z")

</div>

Glad you were able to sort it out!

If something like this happens again, don't hesitate to open a new thread, and we'll see if we can get to the bottom of it.

---

<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:** [April 3, 2017, 5:26pm UTC](https://discuss.elastic.co/t/unable-to-install-es-license/76850/11 "2017-04-03T17:26:00Z")

</div>

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