English 中文(简体)
kibana-Unable to retrieve version information from Elasticsearch nodes.missing authentication credentials for REST request
原标题:

Im trying to Install kibana 8.1.1 on windows10 the thing is when it starts installions it stops on an error like that [2022-04-16T01:16:59.744+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception: [security_exception] Reason: missing authentication credentials for REST request [/_nodes? filter_path=nodes..version%2Cnodes..http.publish_address%2Cnodes.*.ip]

i tried so many solutions like, I did change the elastisearch.yml file xpack.security.enabled: false

but it is still doesn t work an i did it on kibana.yml too still same i did add this folowing lines too

`xpack.security.enabled: true  
xpack.monitoring.enabled: true  
xpack.monitoring.ui.enabled: true  
xpack.security.encryptionKey: "XXX"`

still nothing.

i removed the # on kibana.yml too before the elasticsearch.hosts: ["http://localhost:9200"]

and stiiiill noothing here is kibana.yml: server.port: 5601 server.host: "localhost" server.name: "your-hostname" elasticsearch.hosts: ["http://localhost:9200"]

elasticsearch.yml:

`cluster.name: my-application  
network.host: 192.168.0.1  
node.name: node-1  
discovery.seed_hosts: ["host1", "host2"]  
cluster.initial_master_nodes: ["node-1", "node-2"]` 

im soo sorry about my english its not my first langage and for not knowing what to do its for studies project and im still a beginner google is not helping too
thank u for helping me

问题回答

A more detailed steps as below,

Step 1 is required only when you made some changes to both yml files.

  1. Comment everything in elastic and Kibana yml and save
  2. Start Elasticsearch
  3. Open another command prompt from the directory elasticsearch-8.0.0in and run the below command.

Note: We are resetting password for user "kibana_system" not "elastic".

.elasticsearch-reset-password.bat -u kibana_system --auto

This command will give you password for user "kibana_system". Copy and store the password somewhere.

  1. Edit kibana yml file in kibana-8.0.0in directory by setting below values.
elasticsearch.username: "kibana_system"
elasticsearch.password: "the kibana_system password generated above, not the elastic password"

Then save the yml file.

  1. start kibana, wait till you see everything is fine and no error.

  2. open http://localhost:5601/app/home#/ in the browser. Enter username as "elastic" Enter the password as "the elastic password, not kibana password"

elasticsearch.username: "kibana_system"
elasticsearch.password: <my-kibana_system-password>

The error message Unable to retrieve version information from Elasticsearch nodes. write EPROTO 140439658473408:error:1408F10B:SSL routines:ssl3_get_record:wrong version number indicates an SSL-related issue when trying to communicate with Elasticsearch nodes.

To resolve this error, make sure that the Elasticsearch host you are connecting to is serving requests over HTTPS instead of HTTP. May be in your case, the Elasticsearch host was serving HTTP requests, but Kibana was configured to use an HTTPS URL.

To fix this, update your YAML configuration file by changing the elasticsearchHosts value to use the correct protocol and hostname, as shown below:

elasticsearchHosts: https://elasticsearch-master:9200

By specifying the https protocol in the elasticsearchHosts configuration, you ensure that Kibana communicates with Elasticsearch using a secure HTTPS connection. After making this change, Kibana should be able to retrieve the version information from the Elasticsearch nodes without encountering the SSL error.

Remember to restart Kibana after modifying the configuration file to apply the changes.





相关问题
Allow RESTful DELETE method in asp.net mvc?

im currently setting up asp.net to accept DELETE http verb in the application. However, when i send "DELETE /posts/delete/1" i always get a 405 Method not allow error. I tried to take a look at ...

Most appropriate API for URL shortening service

I ve just finished an online service for shortening URLs (in php5 with Zend Framework); you can enter an URL and you get an short URL (like tinyurl and such sites). I m thinking about the API for ...

Use HTTPClient or HttpUrlConnection? [closed]

We re implementing a REST client on JRE 1.4. Seems two good options for a client REST framework are HttpClient and HttpUrlConnection. Is there a reason to use HttpClient over the JRE s ...

Why can t I find the truststore for an SSL handshake?

I m using the Spring RESTTemplate on the client side to make calls to a REST endpoint. The client in this case is a Spring app and Tomcat is the servlet container. I m running into issues making a ...

Which Http redirects status code to use?

friendfeed.com uses 302. bit.ly uses 301. I had decided to use 303. Do they behave differently in terms of support by browsers ?

Three Step Buyonline The RESTful way

We are re-developing our buyonline functionality and we are doing it the RESTful way. The process is a three step one and the customer is asked to enter data at each step. Let s say the three URL s ...

热门标签