Kibana is not starting: Unable to retrieve version information from Elasticsearch nodes

[2023-12-28T16:45:31.743+05:30][INFO ][plugins.taskManager] TaskManager is identified by the Kibana UUID: 40011819-3390-4e5d-a0bc-5b2571fd083c
[2023-12-28T16:45:31.767+05:30][INFO ][custom-branding-service] CustomBrandingService registering plugin: customBranding[2023-12-28T16:45:31.826+05:30][WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-12-28T16:45:31.827+05:30][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2023-12-28T16:45:31.845+05:30][WARN ][plugins.security.config] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-12-28T16:45:31.845+05:30][WARN ][plugins.security.config] Session cookies will be transmitted over insecure connections. This is not recommended.
[2023-12-28T16:45:31.866+05:30][WARN ][plugins.encryptedSavedObjects] Saved objects encryption key is not set. This will severely limit Kibana functionality. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-12-28T16:45:31.870+05:30][WARN ][plugins.actions] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-12-28T16:45:31.875+05:30][INFO ][plugins.notifications] Email Service Error: Email connector not specified.
[2023-12-28T16:45:31.945+05:30][INFO ][plugins.alerting] using indexes and aliases for persisting alerts
[2023-12-28T16:45:31.948+05:30][WARN ][plugins.alerting] APIs are disabled because the Encrypted Saved Objects plugin is missing encryption key. Please set xpack.encryptedSavedObjects.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-12-28T16:45:32.052+05:30][INFO ][plugins.alerting] Registering resources for context "stack".
[2023-12-28T16:45:32.078+05:30][WARN ][plugins.reporting.config] Generating a random key for xpack.reporting.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.reporting.encryptionKey in the kibana.yml or use the bin/kibana-encryption-keys command.
[2023-12-28T16:45:32.129+05:30][INFO ][plugins.cloudSecurityPosture] Registered task successfully [Task: cloud_security_posture-stats_task]
[2023-12-28T16:45:32.171+05:30][INFO ][plugins.alerting] Registering resources for context "observability.slo".
[2023-12-28T16:45:32.175+05:30][INFO ][plugins.alerting] Registering resources for context "observability.threshold".
[2023-12-28T16:45:32.201+05:30][INFO ][plugins.alerting] Registering resources for context "ml.anomaly-detection".
[2023-12-28T16:45:32.213+05:30][INFO ][plugins.alerting] Registering resources for context "observability.uptime".
[2023-12-28T16:45:32.236+05:30][INFO ][plugins.alerting] Registering resources for context "observability.logs".
[2023-12-28T16:45:32.239+05:30][INFO ][plugins.alerting] Registering resources for context "observability.metrics".
[2023-12-28T16:45:32.325+05:30][INFO ][plugins.alerting] Registering resources for context "security".
[2023-12-28T16:45:32.360+05:30][INFO ][plugins.assetManager] Server is NOT enabled
[2023-12-28T16:45:32.367+05:30][INFO ][plugins.alerting] Registering resources for context "observability.apm".
[2023-12-28T16:45:32.481+05:30][INFO ][plugins.screenshotting.config] Chromium sandbox provides an additional layer of protection, and is supported for Win32 OS. Automatically enabling Chromium sandbox.
[2023-12-28T16:45:32.518+05:30][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. security_exception
        Root causes:
                security_exception: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]
[2023-12-28T16:45:32.530+05:30][INFO ][plugins.screenshotting.chromium] Browser executable: C:\Program Files (x86)\Elastic-Stack\kibana-8.11.3\node_modules\@kbn\screenshotting-plugin\chromium\chrome-win\chrome.exe

Hi @Kunal_Rastogi

In order to get help faster, please make sure to clearly state your problem in the summary.

Now to back to the issue:

security_exception: missing authentication credentials for REST request [/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip]

First I would double check you can access Elasticsearch instance with credentials you set in kibana.yml

curl --user <your_username> -X GET "http://<your_es_host>:<your_es_port>/?pretty"

You can also check the similar issue and its troubleshooting.

Best, Dima

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