{"action":"created","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/issues/274","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/issues/274/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/issues/274/events","html_url":"https://github.com/spring-cloud/spring-cloud-kubernetes/issues/274","id":383811174,"node_id":"MDU6SXNzdWUzODM4MTExNzQ=","number":274,"title":"KubernetesClientException when trying to start Spring Boot 2.1.0 service on OpenShift","user":{"login":"gdubya","id":446033,"node_id":"MDQ6VXNlcjQ0NjAzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/446033?v=4","gravatar_id":"","url":"https://api.github.com/users/gdubya","html_url":"https://github.com/gdubya","followers_url":"https://api.github.com/users/gdubya/followers","following_url":"https://api.github.com/users/gdubya/following{/other_user}","gists_url":"https://api.github.com/users/gdubya/gists{/gist_id}","starred_url":"https://api.github.com/users/gdubya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdubya/subscriptions","organizations_url":"https://api.github.com/users/gdubya/orgs","repos_url":"https://api.github.com/users/gdubya/repos","events_url":"https://api.github.com/users/gdubya/events{/privacy}","received_events_url":"https://api.github.com/users/gdubya/received_events","type":"User","site_admin":false},"labels":[{"id":1076008098,"node_id":"MDU6TGFiZWwxMDc2MDA4MDk4","url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/labels/waiting-for-triage","name":"waiting-for-triage","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-23T12:41:19Z","updated_at":"2018-11-26T11:42:42Z","closed_at":null,"author_association":"NONE","body":"We have a slight variation of the same issue as in #216, except that the root cause is a broken pipe. We have already added the \"cluster-reader\" role to the service account. Is there any other role that should be applied? This is for an OpenShift 3.9 cluster (Kubernetes 1.9.1) FWIW. Oh, and the service is using Java 11... maybe that's related to the issue?\r\n\r\n```\r\n2018-11-23 11:28:54.408  WARN 1 --- [           main] o.s.cloud.kubernetes.StandardPodUtils    : Failed to get pod with name:[happiness-service-17-flxlj]. You should look into this if things aren't working as you expect. Are you missing serviceaccount permissions?\r\n\r\nio.fabric8.kubernetes.client.KubernetesClientException: Operation: [get]  for kind: [Pod]  with name: [config-service-17-flxlj]  in namespace: [dev]  failed.\r\n\tat io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:62) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:71) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.getMandatory(BaseOperation.java:206) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.get(BaseOperation.java:162) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat org.springframework.cloud.kubernetes.StandardPodUtils.internalGetPod(StandardPodUtils.java:62) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.StandardPodUtils.lambda$new$0(StandardPodUtils.java:46) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.LazilyInstantiate.swapper(LazilyInstantiate.java:41) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.LazilyInstantiate.lambda$new$0(LazilyInstantiate.java:34) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.LazilyInstantiate.get(LazilyInstantiate.java:29) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.StandardPodUtils.isInsideKubernetes(StandardPodUtils.java:56) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.profile.KubernetesProfileApplicationListener.addKubernetesProfile(KubernetesProfileApplicationListener.java:52) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.cloud.kubernetes.profile.KubernetesApplicationContextInitializer.initialize(KubernetesApplicationContextInitializer.java:57) ~[spring-cloud-kubernetes-core-1.0.0.M2.jar!/:1.0.0.M2]\r\n\tat org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:649) ~[spring-boot-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:373) ~[spring-boot-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:314) ~[spring-boot-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1260) ~[spring-boot-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]\r\n\tat org.springframework.boot.SpringApplication.run(SpringApplication.java:1248) ~[spring-boot-2.1.0.RELEASE.jar!/:2.1.0.RELEASE]\r\n\tat eu.eress.erex.config.ConfigApplication.main(ConfigApplication.java:16) ~[classes!/:na]\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]\r\n\tat java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]\r\n\tat java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]\r\n\tat java.base/java.lang.reflect.Method.invoke(Method.java:566) ~[na:na]\r\n\tat org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) ~[service.jar:na]\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:87) ~[service.jar:na]\r\n\tat org.springframework.boot.loader.Launcher.launch(Launcher.java:50) ~[service.jar:na]\r\n\tat org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:51) ~[service.jar:na]\r\nCaused by: javax.net.ssl.SSLProtocolException: Broken pipe (Write failed)\r\n\tat java.base/sun.security.ssl.Alert.createSSLException(Alert.java:126) ~[na:na]\r\n\tat java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321) ~[na:na]\r\n\tat java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:264) ~[na:na]\r\n\tat java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:259) ~[na:na]\r\n\tat java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:988) ~[na:na]\r\n\tat okio.Okio$1.write(Okio.java:79) ~[okio-1.13.0.jar!/:na]\r\n\tat okio.AsyncTimeout$1.write(AsyncTimeout.java:180) ~[okio-1.13.0.jar!/:na]\r\n\tat okio.RealBufferedSink.flush(RealBufferedSink.java:216) ~[okio-1.13.0.jar!/:na]\r\n\tat okhttp3.internal.http2.Http2Writer.settings(Http2Writer.java:203) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http2.Http2Connection.start(Http2Connection.java:477) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http2.Http2Connection.start(Http2Connection.java:467) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:259) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.connection.RealConnection.connect(RealConnection.java:151) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:195) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:121) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:100) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[okhttp-3.8.1.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.utils.ImpersonatorInterceptor.intercept(ImpersonatorInterceptor.java:54) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[okhttp-3.8.1.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.utils.HttpClientUtils$2.intercept(HttpClientUtils.java:93) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:185) ~[okhttp-3.8.1.jar!/:na]\r\n\tat okhttp3.RealCall.execute(RealCall.java:69) ~[okhttp-3.8.1.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:379) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:344) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleGet(OperationSupport.java:313) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.OperationSupport.handleGet(OperationSupport.java:296) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.handleGet(BaseOperation.java:770) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\tat io.fabric8.kubernetes.client.dsl.base.BaseOperation.getMandatory(BaseOperation.java:195) ~[kubernetes-client-3.1.10.jar!/:na]\r\n\t... 23 common frames omitted\r\nCaused by: java.net.SocketException: Broken pipe (Write failed)\r\n\tat java.base/java.net.SocketOutputStream.socketWrite0(Native Method) ~[na:na]\r\n\tat java.base/java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:110) ~[na:na]\r\n\tat java.base/java.net.SocketOutputStream.write(SocketOutputStream.java:150) ~[na:na]\r\n\tat java.base/sun.security.ssl.SSLSocketOutputRecord.deliver(SSLSocketOutputRecord.java:320) ~[na:na]\r\n\tat java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:983) ~[na:na]\r\n\t... 59 common frames omitted\r\n```"},"comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/issues/comments/441610839","html_url":"https://github.com/spring-cloud/spring-cloud-kubernetes/issues/274#issuecomment-441610839","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-kubernetes/issues/274","id":441610839,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTYxMDgzOQ==","user":{"login":"gdubya","id":446033,"node_id":"MDQ6VXNlcjQ0NjAzMw==","avatar_url":"https://avatars0.githubusercontent.com/u/446033?v=4","gravatar_id":"","url":"https://api.github.com/users/gdubya","html_url":"https://github.com/gdubya","followers_url":"https://api.github.com/users/gdubya/followers","following_url":"https://api.github.com/users/gdubya/following{/other_user}","gists_url":"https://api.github.com/users/gdubya/gists{/gist_id}","starred_url":"https://api.github.com/users/gdubya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdubya/subscriptions","organizations_url":"https://api.github.com/users/gdubya/orgs","repos_url":"https://api.github.com/users/gdubya/repos","events_url":"https://api.github.com/users/gdubya/events{/privacy}","received_events_url":"https://api.github.com/users/gdubya/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T11:42:42Z","updated_at":"2018-11-26T11:42:42Z","author_association":"NONE","body":"You're right. And all output indicates that the cluster-reader permission is set for the service account. So I have no idea what is causing the problem.\r\n\r\nWe tried a \"full Java 11\" build and that failed with the same message, so it's not related to our jlinked JDK.\r\n\r\nI also tried disabling TLS 1.3 as there have been reports of some issues with that and Java 11, but no joy."}}
{"actor":{"display_login":"gdubya"}}