skip to Main Content

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


  1. 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
    
    Login or Signup to reply.
  2. 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
    

    (see https://github.com/BitBagCommerce/SyliusElasticsearchPlugin/blob/v3.2.4/src/Resources/config/config.yml#L12):

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search