Facing error while starting kibana & trying to connect to elasticsearch version 8.5.1

Hi All,

I am referring this post which is more relevant to my issue,

In my case I am using kibana plugin development environment & when I am trying to invoke enrollment process process using "yarn start" it is taking me to below error on kibana terminal :

[2024-05-22T10:52:31.044+05:30][ERROR][elasticsearch-service] Unable to retrieve version information from Elasticsearch nodes. socket hang up - Local: 127.0.0.1:60140, Remote: 127.0.0.1:9200

As per documentation : Start the Elastic Stack with security enabled automatically | Elasticsearch Guide [8.13] | Elastic

I tried below step :

  • Detached mode (non-browser)Run the kibana-setup tool and pass the generated enrollment token with the --enrollment-token parameter.

bin/kibana-setup --enrollment-token

As "bin/kibana-setup" not exist on kibana plugin development environment I tried executing the script manually from location :

Sunils-MacBook-Pro:scripts sunil$ pwd
/Users/sunil/Documents/workspace/kibana/src/dev/build/tasks/bin/scripts

Sunils-MacBook-Pro:scripts sunil$ ./kibana-setup --enrollment-token [ENCRYPTED_TEXT]
**unable to find usable node.js executable.**

Looking for help, thanks in advance.