I'm trying to install Magento open source for the first time.
I have gone through most of the process except the last part.
When I try to run:
php bin/magento setup:install --base-url=http://localhost/magento2ee --db-host=localhost --db-name=magento2 --db-user=root --db-password= --admin-firstname=admin --admin-lastname=admin [email protected] --admin-user=admin --admin-password=admin123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1
or :
--base-url=http://localhost/magento2ee \
--db-host=localhost \
--db-name=magento2 \
--db-user=root \
--db-password= \
--admin-firstname=admin \
--admin-lastname=admin \
[email protected] \
--admin-user=admin \
--admin-password=admin123 \
--language=en_US \
--currency=USD \
--timezone=America/Chicago \
--use-rewrites=1 \
--search-engine=opensearch \
--opensearch-host=os-host.example.com \
--opensearch-port=9200 \
--opensearch-index-prefix=magento2 \
--opensearch-timeout=15
from the Magento documentation, I get the following error:
In SearchConfig.php line 81:
Could not validate a connection to the OpenSearch. No alive nodes found in your cluster
I tried checking the source of the issue by testing OpenSearch, and sent couple of requests and it is working:
curl.exe -X GET http://localhost:9200
returned:
{
"name" : "DESKTOP-HD81RFN",
"cluster_name" : "opensearch",
"cluster_uuid" : "HwWhh2IyRIWI_C952vAbkg",
"version" : {
"distribution" : "opensearch",
"number" : "2.6.0",
"build_type" : "zip",
"build_hash" : "7203a5af21a8a009aece1474446b437a3c674db6",
"build_date" : "2023-02-24T19:18:51.456570800Z",
"build_snapshot" : false,
"lucene_version" : "9.5.0",
"minimum_wire_compatibility_version" : "7.10.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}
same result when I check http://localhost:9200/
on my browser.
Another test I did was sending:netstat -ano | find "9200"
to see if OpenSearch is listening to the requests on the port, and it is:
TCP 0.0.0.0:9200 0.0.0.0:0 LISTENING 7148
TCP [::]:9200 [::]:0 LISTENING 7148
TCP [::1]:9200 [::1]:64743 ESTABLISHED 7148
TCP [::1]:64743 [::1]:9200 ESTABLISHED 2125
Now I don't know the possible source of the issue.