elasticquent / Elasticquent

Maps Laravel Eloquent models to Elasticsearch types
MIT License
1.35k stars 400 forks source link

No alive nodes found in your cluster #170

Open passika opened 6 years ago

passika commented 6 years ago

Summary of problem or feature request Always get error about not found nodes, ES setuped correct and works perfect from console.

Laravel

Elasticsearch\Common\Exceptions\NoNodesAvailableException: No alive nodes found in your cluster in /home/forge/api.enigma.ua/vendor/elasticsearch/elasticsearch/src/Elasticsearch/ConnectionPool/StaticNoPingConnectionPool.php:51

Code snippet of problem Article::reindex();

-->

System details Operating System UBUNTU 16 PHP Version 7.1 ES-PHP client version Elasticsearch version

davin4u commented 6 years ago

I had such issue, and i almost sure that you can fix it using this solution: https://stackoverflow.com/questions/42889241/how-to-increase-vm-max-map-count

amitleuva1987 commented 2 years ago

I am getting the same error in my localhost.

Elasticsearch \ Common \ Exceptions \ NoNodesAvailableException

PHP 8.1.2 Laravel 9.25.1

No alive nodes found in your cluster

@davin4u , I see the answers at stackoverflow, it looks like that issue occurs in aws ec2 . In my case, I use localhost wsl2. I also find some details in elastic.co website but, its not working.

Below is mentioned in elastic.co

wsl -d docker-desktop
sysctl -w vm.max_map_count=262144

Please post if anybody has any solution. @passika , did you get any solution?