# Unable to retrieve version information from Elasticsearch nodes

**URL:** <https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128>\
**Category:** Kibana\
**Created:** [November 30, 2022, 9:07am UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128 "2022-11-30T09:07:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ali\_haider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_haider/32/104115_2.png) [@ali\_haider](https://discuss.elastic.co/u/ali_haider)\
**Post date:** [November 30, 2022, 9:07am UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128/1 "2022-11-30T09:07:10Z")

</div>

I am using Elasticsearch and Kibana 7.17 free and basic version.  
I am trying to setting up the minimal security.  
I did all of the following steps mentioned in the following document :

> **[Set up minimal security for Elasticsearch | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html)**

I saw multiple solutions in which they ask to add user and password but for me none of them is working.

My elasticsearch.yml is:

```auto
xpack.security.enabled: true
discovery.type: single-node
ingest.geoip.downloader.enabled: false

```

and  
My kibana.yml is:

```auto
elasticsearch.hosts: ["http://localhost:9200"]
elasticsearch.username: "kibana_system"
elasticsearch.password: "<mypassword>"

```

but still getting the following error:

```auto
  log [03:55:28.207] [info][plugins-service] Plugin "metricsEntities" is disabled.
  log [03:55:28.257] [info][server][Preboot][http] http server running at http://localhost:5601
  log [03:55:28.300] [warning][config][deprecation] Starting in 8.0, the Kibana logging format will be changing. This may affect you if you are doing any special handling of your Kibana logs, such as ingesting logs into Elasticsearch for further analysis. If you are using the new logging configuration, you are already receiving logs in both old and new formats, and the old format will simply be going away. If you are not yet using the new logging configuration, the log format will change upon upgrade to 8.0. Beginning in 8.0, the format of JSON logs will be ECS-compatible JSON, and the default pattern log format will be configurable with our new logging system. Please refer to the documentation for more information about the new logging format.
  log [03:55:28.301] [warning][config][deprecation] The default mechanism for Reporting privileges will work differently in future versions, which will affect the behavior of this cluster. Set "xpack.reporting.roles.enabled" to "false" to adopt the future behavior before upgrading.
  log [03:55:28.302] [warning][config][deprecation] User sessions will automatically time out after 8 hours of inactivity starting in 8.0. Override this value to change the timeout.
  log [03:55:28.302] [warning][config][deprecation] Users are automatically required to log in again after 30 days starting in 8.0. Override this value to change the timeout.
  log [03:55:28.381] [info][plugins-system][standard] Setting up [113] plugins: [translations,licensing,globalSearch,globalSearchProviders,features,licenseApiGuard,code,usageCollection,xpackLegacy,taskManager,telemetryCollectionManager,telemetryCollectionXpack,kibanaUsageCollection,share,embeddable,uiActionsEnhanced,screenshotMode,banners,telemetry,newsfeed,mapsEms,mapsLegacy,kibanaLegacy,fieldFormats,expressions,dataViews,charts,esUiShared,bfetch,data,savedObjects,presentationUtil,expressionShape,expressionRevealImage,expressionRepeatImage,expressionMetric,expressionImage,customIntegrations,home,searchprofiler,painlessLab,grokdebugger,management,watcher,licenseManagement,advancedSettings,spaces,security,savedObjectsTagging,reporting,canvas,lists,ingestPipelines,fileUpload,encryptedSavedObjects,dataEnhanced,cloud,snapshotRestore,eventLog,actions,alerting,triggersActionsUi,transform,stackAlerts,ruleRegistry,visualizations,visTypeXy,visTypeVislib,visTypeVega,visTypeTimelion,visTypeTagcloud,visTypeTable,visTypePie,visTypeMetric,visTypeMarkdown,tileMap,regionMap,expressionTagcloud,expressionMetricVis,console,graph,fleet,indexManagement,remoteClusters,crossClusterReplication,indexLifecycleManagement,dashboard,maps,dashboardMode,dashboardEnhanced,visualize,visTypeTimeseries,rollup,indexPatternFieldEditor,lens,cases,timelines,discover,osquery,observability,discoverEnhanced,dataVisualizer,ml,uptime,securitySolution,infra,upgradeAssistant,monitoring,logstash,enterpriseSearch,apm,savedObjectsManagement,indexPatternManagement]
  log [03:55:28.393] [info][plugins][taskManager] TaskManager is identified by the Kibana UUID: 3e643245-28e5-4185-8b1d-c5e9cf463b20
  log [03:55:28.478] [warning][config][plugins][security] 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.
  log [03:55:28.479] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log [03:55:28.493] [warning][config][plugins][security] 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.
  log [03:55:28.495] [warning][config][plugins][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log [03:55:28.508] [warning][config][plugins][reporting] 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.
  log [03:55:28.519] [warning][encryptedSavedObjects][plugins] 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.
  log [03:55:28.529] [warning][actions][plugins] 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.
  log [03:55:28.542] [warning][alerting][plugins] 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.
  log [03:55:28.555] [info][plugins][ruleRegistry] Installing common resources shared between all indices
  log [03:55:28.884] [info][config][plugins][reporting] Chromium sandbox provides an additional layer of protection, and is supported for Win32 OS. Automatically enabling Chromium sandbox.
  log [03:55:29.004] [warning][process] Error [ProductNotSupportedSecurityError]: The client is unable to verify that the server is Elasticsearch due to security privileges on the server side. Some functionality may not be compatible if the server is running an unsupported product.
log [03:55:29.460] [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]

```

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 30, 2022, 9:11am UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128/2 "2022-11-30T09:11:35Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![ali\_haider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_haider/32/104115_2.png) [@ali\_haider](https://discuss.elastic.co/u/ali_haider)\
**Post date:** [November 30, 2022, 10:00am UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128/3 "2022-11-30T10:00:52Z")

</div>

done. shared logs as text

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 30, 2022, 8:53pm UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128/4 "2022-11-30T20:53:49Z")

</div>

> [@ali\_haider](#):
>
> `Reason: missing authentication credentials for REST request`

Do the details you used in your config work talking directly to Elasticsearch, using curl for eg?

---

<div class="post-metadata">

**Author:** ![ali\_haider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ali_haider/32/104115_2.png) [@ali\_haider](https://discuss.elastic.co/u/ali_haider)\
**Post date:** [December 6, 2022, 1:21pm UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128/5 "2022-12-06T13:21:42Z")

</div>

Yes, With Curl it was working, the issue was I saved the password in keystore, It had space in the end maybe that's why it was not been able to authenticate it.  
I Removed the password from there and add it in .yml and it is working fine now.  
Thanks for all your help.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 3, 2023, 1:22pm UTC](https://discuss.elastic.co/t/unable-to-retrieve-version-information-from-elasticsearch-nodes/320128/6 "2023-01-03T13:22:08Z")

</div>

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