Install Magento 2.4 : could not validate a connection to elasticsearch. no alive nodes found in your cluster

Hi, I’m having the same problem you reported on GitHub in the Magento 2.4 installation

In SearchConfig.php line 81:

Could not validate a connection to Elasticsearch. No alive nodes found in y

our cluster

I’ve got elasticserarch running locally, I’ve got kibana, brain and enterprise-search hooked up and they’re all communicating smoothly and reporting a green health status.

My version of elastic search is 7.8.1

at elasticsearch.yml I now have these rules active

cluster.name: ga+++++r

xpack.security.enabled: true

xpack.security.authc.api_key.enabled: true

path.data: /var/lib/elasticsearch

path.logs: /var/log/elasticsearch

network.host: localhost

network.publish_host: 127.0.0.1

network.bind_host: 127.0.0.1

http.port: 9200

transport.tcp.port: 9300

discovery.type: single-node

My installation command is:

bin/magento setup:install

–base-url=[https://++++++++.de](https://++++++++.de/)

–db-host=localhost

–db-name=G+++++++bd

–db-user=G++++++++++0

–db-password=@+++++++++++@

–admin-firstname=J++++n

–admin-lastname=W++++r

[–admin-email=jw++++++++++ail.com](mailto:–admin-email=[email protected])

–admin-user=j++++++++s

–admin-password=B+++++++++k

–language=en_US

–currency=USD

–timezone=America/Chicago

–use-rewrites=1

–search-engine=elasticsearch7

–elasticsearch-host=https://127.0.0.1:9200

–elasticsearch-port=9200

–elasticsearch-enable-auth=1

–elasticsearch-username=elastic

–elasticsearch-password=@el++++++++++++++gar#

Someone has had this problem and managed to solve it or knows how to solve it.

I need help.

submitted by /u/Garihogar
[link] [comments]