cancel
Showing results for 
Search instead for 
Did you mean: 

Could not validate a connection to Elasticsearch. Unknown 403 error from Elasticsearch null

Could not validate a connection to Elasticsearch. Unknown 403 error from Elasticsearch null

Environment:

  • Windows 11 Enterprise
  • PHPSmiley TongueHP 8.1.17 (cli) (built: Mar 14 2023 23:07:43) (ZTS Visual C++ 2019 x64)
  • Composer version 2.4.2
  • elasticsearch:elasticsearch-7.17.0-windows-x86_64

elasticsearch:

http://localhost:9200/

name"zzF3KA8RE"
cluster_name"elasticsearch"
cluster_uuid"cQMrmgBVQE-fIv1g-l8FJg"
version 
number"7.17.0"
build_flavor"default"
build_type"zip"
build_hash"bee86328705acaa9a6daede7140defd4d9ec56bd"
build_date"2022-01-28T08:36:04.875279988Z"
build_snapshotfalse
lucene_version"8.11.1"
minimum_wire_compatibility_version"6.8.0"
minimum_index_compatibility_version"6.0.0-beta1"
tagline"You Know, for Search"

 

install command:

php bin/magento setup:install --base-url="http://tm.magento.com/" --db-host="localhost" --db-name="magento2" --db-user="root" --db-password="root" --admin-firstname="admin" --admin-lastname="admin" --admin-email="user@example.com" --admin-user="admin" --admin-password="Admin@123456" --language="en_US" --currency="USD" --timezone="America/Chicago" --use-rewrites="1" --backend-frontname="admin" --search-engine=elasticsearch7 --elasticsearch-host="localhost" --elasticsearch-port=9200

 

when I try to install Magento but got error:

error.png

1 REPLY 1

Re: Could not validate a connection to Elasticsearch. Unknown 403 error from Elasticsearch null

I would avoid running Magento 2 on Windows, but if you really have to, then use Docker.

Founder at https://agency418.com