Can't access to ElasticSearch after plugin install

docker
elasticsearch

#1

Hello,
I can’t access to my elastic DB after installing a plugin on it:

      - image: docker.elastic.co/elasticsearch/elasticsearch:6.2.2
        command: bin/elasticsearch-plugin install analysis-icu
        environment:
          - cluster.name: elasticsearch
          - xpack.security.enabled: false
          #- transport.host: localhost
          - network.host: 0.0.0.0
          - http.port: 9200
          - discovery.type: single-node

I get this error after trying to access to it i get this error :scream:

Errno::EADDRNOTAVAIL: Cannot assign requested address - Cannot assign requested address - connect(2) for "localhost" port 9200 (localhost:9200)

If i don’t install the plugin in can access to elasticsearch
Did someone had the same problem ?
Thanks by advance.


#2

Are you using the Docker executor? Although it’s not an ideal fix, networking problems can often be resolved by switching to Machine instead. See here.

If that gets you up and running, I suggest you use that in the short term, but also persist getting it to work on Docker, since the latter is faster and more resource-efficient.


#3

thanks @halfer for your response, i create a custom docker image with the plugin already installed on it , i guess that was the best i can do.


#4

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.