Elasticseach Module installation
-
I have setup Bagisto using Bagisto-docker repo.
But When i try to do indexing of products I get error no active node found.
I am running command as follows:php artisan indexer:index --type=elastic
And get error like this:
In SimpleNodePool.php line 77:
No alive nodes. All the 1 nodes seem to be down.In elastic container: I run command to check node i get output like this:
http://localhost:9200/_cat/nodes?vip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
172.18.0.3 75 99 11 0.73 2.14 3.01 cdfhilmrstw * efcc2596cc11where active node is visible.
How to fix this no active node find problem.
Thanks,
Mishant -
Hello there,
If you are using the Bagisto Docker repository, your hostname should be the container name, which is usually
elasticsearch:9200
.Please check your
.env
file. It should look like this if your are using the latest version:
ELASTICSEARCH_HOST=elasticsearch:9200 -
@admin Thank you. It works. I have used http://localhost:9200 ,which was not working. But after putting container name it works.
Again thank you for help
-
@mishant You're welcome