I am facing issues with my cloud connector especially when calling from API MGMT. It was working earlier. But, lately it is giving lot of connection issues.
1. Cannot open tunnel with id account
2. Handshake Timout with SCP
The connections are working for some time and then all of a sudden getting stopped due to above issues.
These especially happens when you try to call an OnPremise API after a couple of hours/time interval.
How to fix these issues.
The log files show the following error
Host: connectivitytunnel.us3.hana.ondemand.com:443 X-Connectivity-Tunnel-Id: account:///hxxxxxf/DEV_SCP X-Connectivity-Client-Id: 6xxxxxxxxxxxxxxxxxxxxxxxxxxx1 X-Tunnel-Version: 1 X-Connectivity-Pool: apimgmtpus3 Cookie: cookie_v=643411466 X-Tunnel-Vm-Fingerprint: 3e:5b:4b:d5:9c:fa:39:39:1a:cf:31:1d:e8:f1:34:66| 2019-07-23 10:33:55,131 -0400#DEBUG#org.apache.jasper.compiler.JspRuntimeContext#ContainerBackgroundProcessor[StandardEngine[Catalina]]# #Checking JSPs for unload in context [], JSP count: 24 queue length: -1| 2019-07-23 10:34:01,421 -0400#WARN#io.netty.util.concurrent.DefaultPromise#tunnel-client-6-3# #An exception was thrown by com.sap.core.connectivity.tunnel.client.ssl.TunnelClientSSLHandshakeValidator.operationComplete() java.util.concurrent.ExecutionException: javax.net.ssl.SSLException: handshake timed out at io.netty.util.concurrent.AbstractFuture.get(AbstractFuture.java:41) at com.sap.core.connectivity.tunnel.client.ssl.TunnelClientSSLHandshakeValidator.operationComplete(TunnelClientSSLHandshakeValidator.java:54) at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511) at io.netty.util.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:504) at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:483) at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424) at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:121) at io.netty.handler.ssl.SslHandler$6.run(SslHandler.java:1756) at io.netty.util.concurrent.PromiseTask$RunnableAdapter.call(PromiseTask.java:38) at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:125) at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163) at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:884) at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) at java.lang.Thread.run(Thread.java:836) Caused by: javax.net.ssl.SSLException: handshake timed out at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source)| 2019-07-23 10:34:01,421 -0400#DEBUG#com.sap.core.connectivity.tunnel.client.AbstractClient#tunnel-client-6-3# #Tunnel handshake failed! Closing the tunnel channel immediately javax.net.ssl.SSLException: handshake timed out at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source)| 2019-07-23 10:34:01,421 -0400#ERROR#com.sap.core.connectivity.tunnel.client.notification.NotificationClientEventHandler#Thread-34# #Unexpected exception while establishing tunnel connection for tunnel: account:///h25669cbf/DEV_SCP javax.net.ssl.SSLException: handshake timed out at io.netty.handler.ssl.SslHandler.handshake(...)(Unknown Source)| 2019-07-23 10:34:01,421 -0400#TRACE#com.sap.core.connectivity.spi.util.ChannelUtil#tunnel-client-6-3# #Closing channel immediately [id: 0xe88b3b94, L:/10.1.202.33:65171 ! R:connectivitytunnel.us3.hana.ondemand.com/169.145.118.141:443]| 2019-07-23 10:34:03,516 -0400#DEBUG#com.sap.core.js.monitoring.request.AverageResponseTimeCalculator#Timer-0# #updateValues() : 0| 2019-07-23 10:34:05,131 -0400#DEBUG#org.apache.jasper.compiler.JspRuntimeContext#ContainerBackgroundProcessor[StandardEngine[Catalina]]# #Checking JSPs for unload in context [], JSP count: 24 queue length: -1| 2019-07-23 10:34:05,367 -0400#DEBUG#org.apache.catalina.connector.CoyoteAdapter#http-bio-8443-exec-2# #The variable [uriBC] has value [/accessControl]| 2019-07-23 10:34:05,367 -0400#DEBUG#org.apache.coyote.http11.Http11Processor#http-bio-8443-exec-8# #Error parsing HTTP request header java.io.EOFException: Unexpected EOF read on the socket at org.apache.coyote.http11.Http11Processor.setRequestLineReadTimeout(Http11Processor.java:175) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1048) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:836)| 2019-07-23 10:34:05,367 -0400#DEBUG#org.apache.coyote.http11.Http11Processor#http-bio-8443-exec-6# #Error parsing HTTP request header java.io.EOFException: Unexpected EOF read on the socket at org.apache.coyote.http11.Http11Processor.setRequestLineReadTimeout(Http11Processor.java:175) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1048) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:836)| 2019-07-23 10:34:05,367 -0400#DEBUG#org.apache.coyote.http11.Http11Protocol#http-bio-8443-exec-6# #Socket: [org.apache.tomcat.util.net.SocketWrapper@626956e7:951f492[TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: Socket[addr=/10.3.9.10,port=56446,localport=8443]]], Status in: [OPEN_READ], State out: [CLOSED]| 2019-07-23 10:34:05,367 -0400#DEBUG#org.apache.coyote.http11.Http11Processor#http-bio-8443-exec-10# #Error parsing HTTP request header java.io.EOFException: Unexpected EOF read on the socket at org.apache.coyote.http11.Http11Processor.setRequestLineReadTimeout(Http11Processor.java:175) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1048) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:836)|