Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No alive nodes found in your cluster #170

Open
passika opened this issue Sep 26, 2018 · 2 comments
Open

No alive nodes found in your cluster #170

passika opened this issue Sep 26, 2018 · 2 comments

Comments

@passika
Copy link

passika commented Sep 26, 2018

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
Copy link

davin4u commented Oct 26, 2018

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants