Kibana Error: Unable to retrieve version information from Elasticsearch nodes

Error:

[2023-09-03T03:09:23.433+00:00][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. self signed certificate in certificate chain

Solution

If you want to use the enrollment process, then you should not make configuration changes to your kibana.yml but let the enrollment process handle this for you. enrollment process process would make following changes in kibana.yml

These are the entry needed in Kibana.yaml if you are setting up through manual process

Follow this for step by step Kibana Setup

Kibana Error: Failed to retrieve user profile for the current user

Error

[2023-09-03T03:38:56.269+00:00][ERROR][plugins.security.user-profile] Failed to retrieve user profile for the current user [sid=fAdZoxzz0=]: Cannot read properties of undefined (reading 'uid')

Answer

The error message “Cannot read properties of undefined (reading ‘uid’)” means that the user profile plugin is trying to access the uid property of the current user, but the current user is undefined. This can happen if the user is not logged in or if the user’s session has expired.

To fix this error, you need to make sure that the user is logged in and that their session is still valid. You can do this by checking the sid cookie. If the sid cookie is not present or is invalid, you need to log the user in again.

Once the user is logged in, the user profile plugin should be able to retrieve the user’s profile successfully.

Here are some additional things to keep in mind:

  • The sid cookie is typically set by the authentication plugin.
  • The authentication plugin may also set other cookies, such as the username cookie and the email cookie.
  • If you are using a third-party authentication plugin, you should consult the documentation for that plugin for more information on how to troubleshoot this error.

I hope this helps! Let me know if you have any other questions.