Timeout when registering license


(YANG Liping) #1

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' -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
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
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
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


(kulkarni) #2

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


(Tim Vernum) #3

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?


(YANG Liping) #4

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.


(system) #5

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