Skip to content

elector container fails to connect to localhost:8080 on startup #2

@AlonHalimi

Description

@AlonHalimi

When I try to run brendanburns/elector container via docker, it fails with the following message (note that, deploying it using the provided kubernetes deployment manifest fails as well):

[root@minicube11 ~]# docker run brendanburns/elector

Exception in thread "main" io.kubernetes.client.ApiException: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8080 at io.kubernetes.client.ApiClient.execute(ApiClient.java:801) at io.kubernetes.client.apis.ApiextensionsV1beta1Api.readCustomResourceDefinitionWithHttpInfo(ApiextensionsV1beta1Api.java:1059) at io.kubernetes.client.apis.ApiextensionsV1beta1Api.readCustomResourceDefinition(ApiextensionsV1beta1Api.java:1042) at io.metaparticle.containerlib.elector.KubernetesStorage.createResourceIfNotExists(KubernetesStorage.java:34) at io.metaparticle.containerlib.elector.KubernetesStorage.<init>(KubernetesStorage.java:23) at io.metaparticle.containerlib.elector.Main.main(Main.java:18) Caused by: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:8080 at com.squareup.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:143) at com.squareup.okhttp.internal.io.RealConnection.connect(RealConnection.java:112) at com.squareup.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184) at com.squareup.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126) at com.squareup.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95) at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281) at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224) at com.squareup.okhttp.Call.getResponse(Call.java:286) at com.squareup.okhttp.Call$ApplicationInterceptorChain.proceed(Call.java:243) at com.squareup.okhttp.Call.getResponseWithInterceptorChain(Call.java:205) at com.squareup.okhttp.Call.execute(Call.java:80) at io.kubernetes.client.ApiClient.execute(ApiClient.java:797) ... 5 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions