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.
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:
Furthermore, even attempting to download the zip is failing due to the servers being at capacity:
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 regarding updating my license for my version.
Can anyone please give me some guidance in what I'm doing incorrectly? Thanks in advance.
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. 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!
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.