# Timeout when registering license

**URL:** <https://discuss.elastic.co/t/timeout-when-registering-license/94426>\
**Category:** Elasticsearch\
**Created:** [July 25, 2017, 6:55am UTC](https://discuss.elastic.co/t/timeout-when-registering-license/94426 "2017-07-25T06:55:06Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![yangliping](https://avatars.discourse-cdn.com/v4/letter/y/96bed5/32.png) [@yangliping](https://discuss.elastic.co/u/yangliping)\
**Post date:** [July 25, 2017, 6:55am UTC](https://discuss.elastic.co/t/timeout-when-registering-license/94426/1 "2017-07-25T06:55:07Z")

</div>

The one month xpack trial expired. So I register a basic license and try to update the license in the server. I got the following error. What should I do?

$ curl -XPUT -u elastic '[http://localhost:9200/\_xpack/license?acknowledge=true](http://localhost:9200/_xpack/license?acknowledge=true)' -H "Content-Type: application/json" -d @license.json  
Enter host password for user 'elastic':  
{"error":{"root\_cause":[{"type":"process\_cluster\_event\_timeout\_exception","reason":"failed to process cluster event (register license [my\_basic\_license\_xxx]) within 30s"}],"type":"process\_cluster\_event\_timeout\_exception","reason":"failed to process cluster event (register license [my\_basic\_license\_xxx]) within 30s"},"status":503}

I run elasticsearch in docker. Here's the docker compose file I used:

version: '2'  
services:  
elasticsearch:  
image: [docker.elastic.co/elasticsearch/elasticsearch:5.4.1](http://docker.elastic.co/elasticsearch/elasticsearch:5.4.1)  
container\_name: elasticsearch  
environment:  
bootstrap.memory\_lock: "true"  
ES\_JAVA\_OPTS: "-Xms16g -Xmx16g -Dio.netty.recycler.maxCapacityPerThread=0"  
ulimits:  
memlock:  
soft: -1  
hard: -1  
mem\_limit: 32g  
volumes:  
- /image/elasticsearch/elasticsearch:/usr/share/elasticsearch/data  
ports:  
- 9200:9200  
networks:  
- esnet  
logstash:  
image: [docker.elastic.co/logstash/logstash:5.4.1](http://docker.elastic.co/logstash/logstash:5.4.1)  
container\_name: logstash  
volumes:  
- ./logstash/pipeline:/usr/share/logstash/pipeline  
ports:  
- "5000:5000"  
environment:  
LS\_JAVA\_OPTS: "-Xmx256m -Xms256m"  
networks:  
- esnet  
depends\_on:  
- elasticsearch  
kibana:  
image: [docker.elastic.co/kibana/kibana:5.4.1](http://docker.elastic.co/kibana/kibana:5.4.1)  
container\_name: kibana  
ports:  
- 5601:5601  
networks:  
- esnet  
depends\_on:  
- elasticsearch

networks:  
esnet:  
driver: bridge  
ipam:  
driver: default  
config:  
- subnet: 192.168.1.32/29  
gateway: 192.168.1.33

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [July 27, 2017, 3:31pm UTC](https://discuss.elastic.co/t/timeout-when-registering-license/94426/2 "2017-07-27T15:31:56Z")

</div>

Hey,

do you have any logfiles you could share in a gist maybe? Can you also post  
the elasticsearch and jvm versions you are using and the steps you are  
executing to reproduce this problem? Does this happen with an empty cluster  
(no data in it) and same exception occurs when you upgrade ? Can be reliable reproduced as well?

thanks!  
Rashmi

---

<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 28, 2017, 3:32am UTC](https://discuss.elastic.co/t/timeout-when-registering-license/94426/3 "2017-07-28T03:32:34Z")

</div>

At a guess I would think that this license issue is just a symptom of an underlying cluster problem. It is quite unlikely that you would get _this_ sort of failure, without seeing any other problems.

Is your cluster functioning correctly in all other ways?  
Do you have multiple nodes running, or just the 1?

---

<div class="post-metadata">

**Author:** ![yangliping](https://avatars.discourse-cdn.com/v4/letter/y/96bed5/32.png) [@yangliping](https://discuss.elastic.co/u/yangliping)\
**Post date:** [July 28, 2017, 8:47am UTC](https://discuss.elastic.co/t/timeout-when-registering-license/94426/4 "2017-07-28T08:47:31Z")

</div>

I retried it today, and it works now.

This happen in a cluster with a few terabyte of data. It reminds me that kibana crash the elasticsearch server every time I search data with time range more than 24 hours. It's a single node elasticsearch server.

Thanks.

---

<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 25, 2017, 8:47am UTC](https://discuss.elastic.co/t/timeout-when-registering-license/94426/5 "2017-08-25T08:47:39Z")

</div>

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