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