Plugin:elasticsearch@6.4.2 // Service Unavailable


(Walid Hadj Taieb) #1

Hi All,
I have deployed Logging chart in my k8s node. but the elasticsearch plugin remain unavailable!: elasticsearch_ServUnavailable|690x323 .

from logs file the logging-elasticsearch-clientcontainer failed to resolve host [logging-elasticsearch-discovery] that generate exception java.net.UnknownHostException: logging-elasticsearch-discovery: Name or service not known :

java.net.UnknownHostException: logging-elasticsearch-discovery: Name or service not known
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method) ~[?:?]
    at java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:925) ~[?:?]
    at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1505) ~[?:?]
    at java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:844) ~[?:?]
    at java.net.InetAddress.getAllByName0(InetAddress.java:1495) ~[?:?]
    at java.net.InetAddress.getAllByName(InetAddress.java:1354) ~[?:?]
    at java.net.InetAddress.getAllByName(InetAddress.java:1288) ~[?:?]
    at org.elasticsearch.transport.TcpTransport.parse(TcpTransport.java:945) ~[elasticsearch-6.4.2.jar:6.4.2]
    at org.elasticsearch.transport.TcpTransport.addressesFromString(TcpTransport.java:900) ~[elasticsearch-6.4.2.jar:6.4.2]
    at org.elasticsearch.transport.TransportService.addressesFromString(TransportService.java:711) ~[elasticsearch-6.4.2.jar:6.4.2]
    at org.elasticsearch.discovery.zen.UnicastZenPing.lambda$resolveHostsLists$0(UnicastZenPing.java:184) ~[elasticsearch-6.4.2.jar:6.4.2]
    at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
    at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.4.2.jar:6.4.2]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
    at java.lang.Thread.run(Thread.java:844) [?:?]
[2018-10-28T19:35:53,832][WARN ][o.e.d.z.ZenDiscovery     ] [logging-elasticsearch-client-7f79f9b8fc-w74ng] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2018-10-28T19:35:53,832][WARN ][o.e.d.z.UnicastZenPing   ] [logging-elasticsearch-client-7f79f9b8fc-w74ng] failed to resolve host [logging-elasticsearch-discovery]
java.net.UnknownHostException: logging-elasticsearch-discovery
    at java.net.InetAddress$CachedAddresses.get(InetAddress.java:793) ~[?:?]
    at java.net.InetAddress.getAllByName0(InetAddress.java:1495) ~[?:?]
    at java.net.InetAddress.getAllByName(InetAddress.java:1354) ~[?:?]
    at java.net.InetAddress.getAllByName(InetAddress.java:1288) ~[?:?]
    at org.elasticsearch.transport.TcpTransport.parse(TcpTransport.java:945) ~[elasticsearch-6.4.2.jar:6.4.2]
    at org.elasticsearch.transport.TcpTransport.addressesFromString(TcpTransport.java:900) ~[elasticsearch-6.4.2.jar:6.4.2]
    at org.elasticsearch.transport.TransportService.addressesFromString(TransportService.java:711) ~[elasticsearch-6.4.2.jar:6.4.2]
    at org.elasticsearch.discovery.zen.UnicastZenPing.lambda$resolveHostsLists$0(UnicastZenPing.java:184) ~[elasticsearch-6.4.2.jar:6.4.2]
    at java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[?:?]
    at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:624) [elasticsearch-6.4.2.jar:6.4.2]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1135) [?:?]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
    at java.lang.Thread.run(Thread.java:844) [?:?]```

(Mark Walkom) #2

That's a DNS resolution issue, ie it cannot ping whatever you have listed in the discovery list.

That could be a kubernetes issue, but I don't know enough about how it handles DNS sorry.


(system) #3

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