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.
2
Answers
The plugin requires Elasticsearch running on your server or dev machine. Once it is running make sure the given environment variable is provided:
or if you are using Docker:
The current environment variables used by the latest version (currently v3.2.4) of the plugin are:
or if you are using Docker:
(see https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/v3.2.4/src/Resources/config/config.yml#L12):