Support Questions
Find answers, ask questions, and share your expertise

Cloudbreak error [Error occurred on 49 stack during the setup: Connection reset] when creating cluster on google cloud platform

Rising Star

In Cloudbreak version 1.61, I cannot create a cluster in GCP

I get the following error:

Failed to create cluster : stack creation failed, cannot create cluster

Infrastructure creation failed. Reason error occurred on 48 stack during the setup: Connection reset

This is the corresponding stack trace in the Cloudbreak log:

cloudbreak_1 | 2016-11-27 10:52:31,985 [reactorDispatcher-20] prepareImage:84 ERROR c.s.c.c.g.GcpProvisionSetup - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:springLog] [id:49] [name:slb-dev-v17] Error occurred on 49 stack during the setup: Connection reset cloudbreak_1 | java.net.SocketException: Connection reset cloudbreak_1 | at java.net.SocketInputStream.read(SocketInputStream.java:209) cloudbreak_1 | at java.net.SocketInputStream.read(SocketInputStream.java:141) cloudbreak_1 | at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) cloudbreak_1 | at sun.security.ssl.InputRecord.read(InputRecord.java:503) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) cloudbreak_1 | at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) cloudbreak_1 | at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) cloudbreak_1 | at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283) cloudbreak_1 | at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258) cloudbreak_1 | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250) cloudbreak_1 | at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77) cloudbreak_1 | at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965) cloudbreak_1 | at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283) cloudbreak_1 | at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307) cloudbreak_1 | at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:384) cloudbreak_1 | at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489) cloudbreak_1 | at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217) cloudbreak_1 | at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:859) cloudbreak_1 | at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419) cloudbreak_1 | at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) cloudbreak_1 | at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.gcp.GcpProvisionSetup.prepareImage(GcpProvisionSetup.java:56) cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.handler.PrepareImageHandler.accept(PrepareImageHandler.java:46) cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.handler.PrepareImageHandler.accept(PrepareImageHandler.java:21) cloudbreak_1 | at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source) cloudbreak_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) cloudbreak_1 | at java.lang.reflect.Method.invoke(Method.java:498) cloudbreak_1 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) cloudbreak_1 | at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) cloudbreak_1 | at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) cloudbreak_1 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) cloudbreak_1 | at com.sun.proxy.$Proxy207.accept(Unknown Source) cloudbreak_1 | at reactor.bus.EventBus$3.accept(EventBus.java:317) cloudbreak_1 | at reactor.bus.EventBus$3.accept(EventBus.java:310) cloudbreak_1 | at reactor.bus.routing.ConsumerFilteringRouter.route(ConsumerFilteringRouter.java:72) cloudbreak_1 | at reactor.bus.routing.TraceableDelegatingRouter.route(TraceableDelegatingRouter.java:51) cloudbreak_1 | at reactor.bus.EventBus.accept(EventBus.java:591) cloudbreak_1 | at reactor.bus.EventBus.accept(EventBus.java:63) cloudbreak_1 | at reactor.core.dispatch.AbstractLifecycleDispatcher.route(AbstractLifecycleDispatcher.java:160) cloudbreak_1 | at reactor.core.dispatch.MultiThreadDispatcher$MultiThreadTask.run(MultiThreadDispatcher.java:74) cloudbreak_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) cloudbreak_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) cloudbreak_1 | at java.lang.Thread.run(Thread.java:745) cloudbreak_1 | 2016-11-27 10:52:31,985 [reactorDispatcher-20] accept:70 DEBUG c.s.c.c.f.Flow2Handler - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:springLog] [id:49] [name:slb-dev-v17] flow control event arrived: key: PREPAREIMAGERESULT_ERROR, flowid: ac692d6c-20d5-4576-ba60-1053ec54cf53, payload: CloudPlatformResult{status=FAILED, statusReason='Error occurred on 49 stack during the setup: Connection reset', errorDetails=com.sequenceiq.cloudbreak.cloud.exception.CloudConnectorException: Error occurred on 49 stack during the setup: Connection reset, request=CloudPlatformRequest{cloudContext=CloudContext{id=49, name='slb-dev-v17', platform='StringType{value='GCP'}', owner='8fd6cda0-f2fa-4a4d-9793-3315af97f646'}, cloudCredential=com.sequenceiq.cloudbreak.cloud.model.CloudCredential@68a59f6}} cloudbreak_1 | 2016-11-27 10:52:32,019 [reactorDispatcher-20] execute:64 INFO c.s.c.c.f.AbstractAction - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:STACK] [id:49] [name:slb-dev-v17] Stack: 49, flow state: IMAGESETUP_STATE, phase: service, execution time 0 sec cloudbreak_1 | 2016-11-27 10:52:32,019 [reactorDispatcher-20] handleStackCreationFailure:176 ERROR c.s.c.c.f.s.p.a.StackCreationService - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:STACK] [id:49] [name:slb-dev-v17] Error during stack creation flow: cloudbreak_1 | com.sequenceiq.cloudbreak.cloud.exception.CloudConnectorException: Error occurred on 49 stack during the setup: Connection reset cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.gcp.GcpProvisionSetup.prepareImage(GcpProvisionSetup.java:85) cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.handler.PrepareImageHandler.accept(PrepareImageHandler.java:46) cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.handler.PrepareImageHandler.accept(PrepareImageHandler.java:21) cloudbreak_1 | at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source) cloudbreak_1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) cloudbreak_1 | at java.lang.reflect.Method.invoke(Method.java:498) cloudbreak_1 | at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) cloudbreak_1 | at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) cloudbreak_1 | at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) cloudbreak_1 | at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) cloudbreak_1 | at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) cloudbreak_1 | at com.sun.proxy.$Proxy207.accept(Unknown Source) cloudbreak_1 | at reactor.bus.EventBus$3.accept(EventBus.java:317) cloudbreak_1 | at reactor.bus.EventBus$3.accept(EventBus.java:310) cloudbreak_1 | at reactor.bus.routing.ConsumerFilteringRouter.route(ConsumerFilteringRouter.java:72) cloudbreak_1 | at reactor.bus.routing.TraceableDelegatingRouter.route(TraceableDelegatingRouter.java:51) cloudbreak_1 | at reactor.bus.EventBus.accept(EventBus.java:591) cloudbreak_1 | at reactor.bus.EventBus.accept(EventBus.java:63) cloudbreak_1 | at reactor.core.dispatch.AbstractLifecycleDispatcher.route(AbstractLifecycleDispatcher.java:160) cloudbreak_1 | at reactor.core.dispatch.MultiThreadDispatcher$MultiThreadTask.run(MultiThreadDispatcher.java:74) cloudbreak_1 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) cloudbreak_1 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) cloudbreak_1 | at java.lang.Thread.run(Thread.java:745) cloudbreak_1 | Caused by: java.net.SocketException: Connection reset cloudbreak_1 | at java.net.SocketInputStream.read(SocketInputStream.java:209) cloudbreak_1 | at java.net.SocketInputStream.read(SocketInputStream.java:141) cloudbreak_1 | at sun.security.ssl.InputRecord.readFully(InputRecord.java:465) cloudbreak_1 | at sun.security.ssl.InputRecord.read(InputRecord.java:503) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) cloudbreak_1 | at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) cloudbreak_1 | at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) cloudbreak_1 | at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) cloudbreak_1 | at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1283) cloudbreak_1 | at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1258) cloudbreak_1 | at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250) cloudbreak_1 | at com.google.api.client.http.javanet.NetHttpRequest.execute(NetHttpRequest.java:77) cloudbreak_1 | at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:965) cloudbreak_1 | at com.google.api.client.auth.oauth2.TokenRequest.executeUnparsed(TokenRequest.java:283) cloudbreak_1 | at com.google.api.client.auth.oauth2.TokenRequest.execute(TokenRequest.java:307) cloudbreak_1 | at com.google.api.client.googleapis.auth.oauth2.GoogleCredential.executeRefreshToken(GoogleCredential.java:384) cloudbreak_1 | at com.google.api.client.auth.oauth2.Credential.refreshToken(Credential.java:489) cloudbreak_1 | at com.google.api.client.auth.oauth2.Credential.intercept(Credential.java:217) cloudbreak_1 | at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:859) cloudbreak_1 | at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419) cloudbreak_1 | at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) cloudbreak_1 | at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) cloudbreak_1 | at com.sequenceiq.cloudbreak.cloud.gcp.GcpProvisionSetup.prepareImage(GcpProvisionSetup.java:56) cloudbreak_1 | ... 25 common frames omitted cloudbreak_1 | 2016-11-27 10:52:32,020 [reactorDispatcher-20] fireEventAndLog:24 DEBUG c.s.c.c.f.s.FlowMessageService - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:STACK] [id:49] [name:slb-dev-v17] STACK_INFRASTRUCTURE_CREATE_FAILED [STACK_FLOW_STEP]. cloudbreak_1 | 2016-11-27 10:52:32,020 [reactorDispatcher-20] fireCloudbreakEvent:51 INFO c.s.c.s.e.DefaultCloudbreakEventService - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:STACK] [id:49] [name:slb-dev-v17] Firing Cloudbreak event: CloudbreakEventData{entityId=49, eventType='UPDATE_IN_PROGRESS', eventMessage='Infrastructure creation failed. Reason: Error occurred on 49 stack during the setup: Connection reset'} cloudbreak_1 | 2016-11-27 10:52:32,020 [reactorDispatcher-20] handleFailure:212 DEBUG c.s.c.c.f.s.p.a.StackCreationService - [owner:8fd6cda0-f2fa-4a4d-9793-3315af97f646] [type:STACK] [id:49] [name:slb-dev-v17] Nothing to do. OnFailureAction DO_NOTHING cloudbreak_1 | 2016-11-27 10:52:32,020 [reactorDispatcher-18] accept:33 INFO c.s.c.s.e.CloudbreakEventHandler - [owner:undefined] [type:CLOUDBREAKEVENTDATA] [id:undefined] [name:undefined] Handling cloudbreak event: Event{id=null, headers=null, replyTo=null, key=CLOUDBREAK_EVENT, data=CloudbreakEventData{entityId=49, eventType='UPDATE_IN_PROGRESS', eventMessage='Infrastructure creation failed. Reason: Error occurred on 49 stack during the setup: Connection reset'}} cloudbreak_1 | 2016-11-27 10:52:32,021 [reactorDispatcher-18] accept:36 INFO c.s.c.s.e.CloudbreakEventHandler - [owner:undefined] [type:CLOUDBREAKEVENTDATA] [id:undefined] [name:undefined] Persisting data: CloudbreakEventData{entityId=49, eventType='UPDATE_IN_PROGRESS', eventMessage='Infrastructure creation failed. Reason: Error occurred on 49 stack during the setup: Connection reset'} cloudbreak_1 | 2016-11-27 10:52:32,021 [reactorDispatcher-18] createStackEvent:66 DEBUG c.s.c.s.e.DefaultCloudbreakEventService - [owner:undefined] [type:CLOUDBREAKEVENTDATA] [id:undefined] [name:undefined] Creating stack event from: CloudbreakEventData{entityId=49, eventType='UPDATE_IN_PROGRESS', eventMessage='Infrastructure creation failed. Reason: Error occurred on 49 stack during the setup: Connection reset'} cloudbreak_1 | 2016-11-27 10:52:32,060 [reactorDispatcher-18] populateClusterData:133 DEBUG c.s.c.s.e.DefaultCloudbreakEventService - [owner:undefined] [type:CLOUDBREAKEVENTDATA] [id:undefined] [name:undefined] No cluster data available for the stack: 49

1 REPLY 1

Expert Contributor

Hi @Bhupesh Khanna,

Could you please execute `cbd doctor` command on the host where cloudbreak runs, exactly where your cloudbreak Profile file is located?