io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.

GitHub | das-vinculum | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception caught during discovery: access denied ("java.net.NetPermission" "requestPasswordAuthentication")

    GitHub | 2 months ago | tuxtag
    java.security.AccessControlException: access denied ("java.net.NetPermission" "requestPasswordAuthentication")
  2. 0

    Plugin does not reattempt discovery after UnknownHostException in KubernetesClient

    GitHub | 1 month ago | das-vinculum
    io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    discovery warning

    GitHub | 5 months ago | clock157
    io.fabric8.kubernetes.client.KubernetesClientException: An error has occurred.
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.UnknownHostException

    kubernetes.default.svc: Name or service not known

    at java.net.Inet4AddressImpl.lookupAllHostAddr()
  2. Java RT
    InetAddress.getAllByName
    1. java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    2. java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
    3. java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
    4. java.net.InetAddress.getAllByName0(InetAddress.java:1276)
    5. java.net.InetAddress.getAllByName(InetAddress.java:1192)
    6. java.net.InetAddress.getAllByName(InetAddress.java:1126)
    6 frames
  3. OkHttp
    Call$ApplicationInterceptorChain.proceed
    1. com.squareup.okhttp.Dns$1.lookup(Dns.java:39)
    2. com.squareup.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:175)
    3. com.squareup.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:141)
    4. com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:83)
    5. com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:174)
    6. com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
    7. com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
    8. com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
    9. com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
    10. com.squareup.okhttp.Call.getResponse(Call.java:286)
    11. com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243)
    11 frames
  4. io.fabric8.kubernetes
    HttpClientUtils$3.intercept
    1. io.fabric8.kubernetes.client.utils.HttpClientUtils$3.intercept(HttpClientUtils.java:110)
    1 frame
  5. OkHttp
    Call.execute
    1. com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:232)
    2. com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205)
    3. com.squareup.okhttp.Call.execute(Call.java:80)
    3 frames
  6. io.fabric8.kubernetes
    BaseOperation.get
    1. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:210)
    2. io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleGet(OperationSupport.java:205)
    3. io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleGet(BaseOperation.java:510)
    4. io.fabric8.kubernetes.client.dsl.base.BaseOperation.get(BaseOperation.java:118)
    4 frames
  7. io.fabric8.elasticsearch
    KubernetesUnicastHostsProvider.lambda$buildDynamicNodes$0
    1. io.fabric8.elasticsearch.cloud.kubernetes.KubernetesAPIServiceImpl.endpoints(KubernetesAPIServiceImpl.java:35)
    2. io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider.readNodes(KubernetesUnicastHostsProvider.java:112)
    3. io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider.lambda$buildDynamicNodes$0(KubernetesUnicastHostsProvider.java:80)
    3 frames
  8. Java RT
    AccessController.doPrivileged
    1. java.security.AccessController.doPrivileged(Native Method)
    1 frame
  9. io.fabric8.elasticsearch
    KubernetesUnicastHostsProvider.buildDynamicNodes
    1. io.fabric8.elasticsearch.discovery.kubernetes.KubernetesUnicastHostsProvider.buildDynamicNodes(KubernetesUnicastHostsProvider.java:79)
    1 frame
  10. ElasticSearch
    ZenDiscovery$JoinThreadControl$1.run
    1. org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.sendPings(UnicastZenPing.java:335)
    2. org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.ping(UnicastZenPing.java:240)
    3. org.elasticsearch.discovery.zen.ping.ZenPingService.ping(ZenPingService.java:106)
    4. org.elasticsearch.discovery.zen.ping.ZenPingService.pingAndWait(ZenPingService.java:84)
    5. org.elasticsearch.discovery.zen.ZenDiscovery.findMaster(ZenDiscovery.java:886)
    6. org.elasticsearch.discovery.zen.ZenDiscovery.innerJoinCluster(ZenDiscovery.java:350)
    7. org.elasticsearch.discovery.zen.ZenDiscovery.access$4800(ZenDiscovery.java:91)
    8. org.elasticsearch.discovery.zen.ZenDiscovery$JoinThreadControl$1.run(ZenDiscovery.java:1237)
    8 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames