They all build successfully, but kibana cannot get a live connection to elasticsearch
kibana | {"type":"log","@timestamp":"2019-05-08T23:36:13Z","tags":["status","plugin:searchprofiler@7.0.1","error"],"pid":1,"state":"red","message":"Status changed from red to red - No Living connections","prevState":"red","prevMsg":"Unable to connect to Elasticsearch."}
kibana | {"type":"log","@timestamp":"2019-05-09T00:02:46Z","tags":["warning","elasticsearch","admin"],"pid":1,"message":"No living connections"}
and the index "products" cannot be created with elixir/ecto mix
MyWebApp-dev | (elixir) lib/calendar/datetime.ex:537: DateTime.to_unix/2
MyWebApp-dev | (elasticsearch) lib/elasticsearch/indexing/index.ex:287: Elasticsearch.Index.build_name/1
MyWebApp-dev | (elasticsearch) lib/elasticsearch/indexing/index.ex:31: Elasticsearch.Index.hot_swap/2
MyWebApp-dev | (elasticsearch) lib/mix/elasticsearch.build.ex:86: Mix.Tasks.Elasticsearch.Build.build/3
MyWebApp-dev |
MyWebApp-dev | ** (Mix) Index products could not be created.
MyWebApp-dev |
MyWebApp-dev | %HTTPoison.Error{id: nil, reason: :econnrefused}
All the while, I can connect to the elasticsearch server:
A68MD-PRO:~# docker exec elasticsearch curl http://elasticsearch:9200/_cat/health
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 66 100 66 0 0 6969 0 --:--:-- --:--:-- --:--:-- 7333
1557373042 03:37:22 docker-cluster green 2 2 2 1 0 0 0 0 - 100.0%
Does anyone know what this problem is about and how to solve it?
I have a docker-compose.yml file which declares webapp, postgres database, a two node elasticsearch, and a kibana container.
They all build successfully, but kibana cannot get a live connection to elasticsearch
and the index "products" cannot be created with elixir/ecto mix
All the while, I can connect to the elasticsearch server:
Even from the container inside, curling yields:
Does anyone know what this problem is about and how to solve it?