I am getting below error while installing Magento 2.4.0 using command line.
Could not validate a connection to Elasticsearch. No alive nodes found in your cluster
I have run below two commands.
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition magento240
php -dmemory_limit=-1 bin/magento setup:install
--base-url="http://127.0.0.1/magento240"
--db-host="localhost"
--db-name="magento240"
--db-user="root"
--db-password="root123"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="admin@admin.com"
--admin-user="admin"
--admin-password="admin123"
--language="en_US"
--currency="USD"
--timezone="America/Chicago"
--use-rewrites="1"
--backend-frontname="admin"
Also used below commands.
php -dmemory_limit=-1 bin/magento setup:install
--base-url="http://127.0.0.1/magento240"
--db-host="localhost"
--db-name="magento240"
--db-user="root"
--db-password="root123"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="admin@admin.com"
--admin-user="admin"
--admin-password="admin123"
--language="en_US"
--currency="USD"
--timezone="America/Chicago"
--use-rewrites="1"
--backend-frontname="admin"
--search-engine=mysql
php -dmemory_limit=-1 bin/magento setup:install
--base-url="http://127.0.0.1/magento240"
--db-host="localhost"
--db-name="magento240"
--db-user="root"
--db-password="root123"
--admin-firstname="admin"
--admin-lastname="admin"
--admin-email="admin@admin.com"
--admin-user="admin"
--admin-password="admin123"
--language="en_US"
--currency="USD"
--timezone="America/Chicago"
--use-rewrites="1"
--backend-frontname="admin"
--elasticsearch-host=elasticsearch
--elasticsearch-username=elastic
--elasticsearch-password=changeme
Best Answer
I upgraded my Magento 2.3.5 into 2.4.0 and now facing this error, very annoying to say the least,... I fixed it by disabling the Elastic Search module... injecting this into a Magento "update" is totally un-called for, very frustrating and annoying.
After disabling these, my php /bin/magento setup:upgrade works fine now:
I thought upgrading into 2.4.0 would make life better, I can't believe there are so many problems just to get into 2.4.0.... don't know what I am walking into, ... I hope my installation that I am about to deploy does not break as a result of so many unwanted modules added into the 2.4.0 update before even trying it yet!...