Reputation: 11
I encountered an issue while installing the Elasticsearch plugin by BitBag on our online store. When I attempted to execute the command php bin/console fos:elastica:populate
to populate Elasticsearch indices as part of the installation process, I received the error message:
Couldn't connect to host, Elasticsearch down?
This message suggests a connectivity issue with Elasticsearch. I would greatly appreciate any suggestions for resolving this issue.
Upvotes: 1
Views: 133
Reputation: 41
The current environment variables used by the latest version (currently v3.2.4) of the plugin are:
BITBAG_ES_HOST=http://localhost
BITBAG_ES_PORT=9200
or if you are using Docker:
BITBAG_ES_HOST=http://elasticsearch
BITBAG_ES_PORT=9200
Upvotes: 0
Reputation: 11
The plugin requires Elasticsearch running on your server or dev machine. Once it is running make sure the given environment variable is provided:
ELASTICSEARCH_URL=http://localhost:9200
or if you are using Docker:
ELASTICSEARCH_URL=http://elasticsearch:9200
Upvotes: 1