Elasticsearch incorrect licensing

I have just pulled 7.16.1 rpms for Elasticsearch to do a fresh install, in my environment i have a platinum license but for some reason Elasticsearch is loading a random incorrect license that is basic which is causing issues as the basic license has functional limitations that are only provided via platinum license

 [2022-01-04T18:54:40,744][INFO ][o.e.l.LicenseService     ] [elastic]license [acec776c-8c37-425e-8e39-48a71d0c5f98] mode [basic] - valid

[2022-01-04T18:55:24,214][WARN ][o.e.x.s.a.RealmsAuthenticator] [elastic]No authentication credential could be extracted using realms [reserved/reserved,native/native]. Realms [pki/pki1] were skipped because they are not permitted on the current license

Above is the random license uid that is getting loaded which does not match the uid in my platinum_license.json file and one of the warning that are getting thrown in the logs due to the incorrect basic license getting uploaded. Any ideas why Elasticsearch would be loading this incorrect basic license or where it would be getting this value from?

After the fresh install did you update your license use the license API and your license file?

Ran python rest PUT API but it seems it is unable to connect to elasticsearch to apply this change

[DEBUG   ] Starting new HTTP connection (1): <elasticsearch_ip>:9200
Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 706, in urlopen
    chunked=chunked,
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 445, in _make_request
    six.raise_from(e, None)
  File "<string>", line 3, in raise_from
  File "/usr/local/lib/python3.6/site-packages/urllib3/connectionpool.py", line 440, in _make_request
    httplib_response = conn.getresponse()
  File "/usr/lib64/python3.6/http/client.py", line 1346, in getresponse
    response.begin()
  File "/usr/lib64/python3.6/http/client.py", line 307, in begin
    version, status, reason = self._read_status()
  File "/usr/lib64/python3.6/http/client.py", line 276, in _read_status
    raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response

This is the corresponding log in elasticsearch logfile

2022-01-05T17:40:30,153][WARN ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [elastic]received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=0.0.0.0/0.0.0.0:9200, remoteAddress=/ <elasticsearch_ip>:45092}

You made an http request to a https endpoint, your cluster is expecting an encrypted connection.

Can you explain better what was the steps you did? You downloaded the 7.16 rpm and installed it, them wiped the data directory? It is not clear if you just installed the binary or if you are starting a new cluster.

Figured out the issue, a variable specific to my setup wasn't correctly set which was causing http connection instead of https connection. when I changed that everything started working correctly including the license configuration. Thanks

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