Hi Obiageli

GoCD v19.8.0 still has the same core TLS setup as earlier versions to my
knowledge. The more significant changes in defaults were made in 20.2.0
onwards. However an upgrade won't necessarily resolve your issue (as it
would potentially require different work to support TLS/HTTPS) - I was just
explaining why it might be a bit more difficult to get help with such
issues; since this part of the design has changed significantly in the last
few years.

In any case, the root error does look a bit different now:
*javax.net.ssl.SSLException:
readHandshakeRecord* Earlier it was *javax.net.ssl.SSLHandshakeException:
Received fatal alert: certificate_unknown*

This does imply a basic TLS handshake problem with your server, which could
be caused by a number of things, but possibly relates to an issue of
compatibility between the certificate presented by "
go.dev.scitorque.com:8154" and your agent's configuration or Java version.

I'm afraid to help more without guessing/speculating I'd need answers to
the original questions I asked about your setup - and perhaps a couple of
other ones that might help at the bottom

   - Did something change in your setup (agent or servers) after which this
   started happening?
   - Are all agents having problems or only a subset of agents?
   - What do the server logs say at the same time as the agent has these
   errors?
   - Which Java version is your agent bootstrapper running with?
   - How is the agent being installed (via MSI installer? or running
   standalone using system-installed Java version?)

-Chad

On Tue, May 3, 2022 at 1:36 AM Obiageli Adegbite <[email protected]> wrote:

> I installed a 19.8.0 and still have the same error
> go-agent.log
> 2022-05-02 13:22:22,498 ERROR [scheduler-3] AgentHTTPClientController:103
> - Error occurred when agent tried to ping server:
> org.springframework.remoting.RemoteAccessException: Could not access HTTP
> invoker remote service at [
> https://go.dev.scitorque.com:8154/go/remoting/remoteBuildRepository];
> nested exception is javax.net.ssl.SSLException: readHandshakeRecord
>     at
> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:226)
>     at
> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:153)
>     at
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>     at
> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
>     at com.sun.proxy.$Proxy10.ping(Unknown Source)
>     at
> com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:98)
>     at jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>     at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
> Source)
>     at java.base/java.lang.reflect.Method.invoke(Unknown Source)
>     at
> org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
>     at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>     at
> java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown
> Source)
>     at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown
> Source)
>     at
> java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown
> Source)
>     at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown
> Source)
>     at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>     at java.base/java.lang.Thread.run(Unknown Source)
> Caused by: javax.net.ssl.SSLException: readHandshakeRecord
>     at
> java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown Source)
>     at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown
> Source)
>     at
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
>     at
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
>     at
> org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
>     at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
>     at
> org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)
>     at
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
>     at
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
>     at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
>     at
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
>     at
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
>     at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
>     at
> com.thoughtworks.go.agent.common.ssl.GoAgentServerHttpClient.execute(GoAgentServerHttpClient.java:54)
>     at
> com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.doExecuteRequest(GoHttpClientHttpInvokerRequestExecutor.java:78)
>     at
> org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:137)
>     at
> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:202)
>     at
> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:184)
>     at
> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:150)
>     ... 15 common frames omitted
>     Suppressed: java.net.SocketException: Software caused connection
> abort: socket write error
>         at java.base/java.net.SocketOutputStream.socketWrite0(Native
> Method)
>         at java.base/java.net.SocketOutputStream.socketWrite(Unknown
> Source)
>         at java.base/java.net.SocketOutputStream.write(Unknown Source)
>         at
> java.base/sun.security.ssl.SSLSocketOutputRecord.encodeAlert(Unknown Source)
>         at java.base/sun.security.ssl.TransportContext.fatal(Unknown
> Source)
>         at java.base/sun.security.ssl.TransportContext.fatal(Unknown
> Source)
>         ... 33 common frames omitted
> Caused by: java.net.SocketException: Software caused connection abort:
>
> go-agent-bootstrapper.log
>
> 2022-05-02 11:25:27,324 INFO  [WrapperJarAppMain]
> DefaultAgentLauncherCreatorImpl:66 - Attempting to load
> com.thoughtworks.go.agent.launcher.AgentLauncherImpl as specified by
> manifest key Go-Agent-Launcher-Class
> 2022-05-02 11:25:27,339 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLauncher using
> java.net.URLClassLoader
> 2022-05-02 11:25:27,402 INFO  [WrapperJarAppMain] AgentBootstrapper:76 -
> Attempting create and start launcher...
> 2022-05-02 11:25:27,402 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLaunchDescriptor using
> java.net.URLClassLoader
> 2022-05-02 11:29:21,512 INFO  [WrapperJarAppMain]
> DefaultAgentLauncherCreatorImpl:66 - Attempting to load
> com.thoughtworks.go.agent.launcher.AgentLauncherImpl as specified by
> manifest key Go-Agent-Launcher-Class
> 2022-05-02 11:29:21,528 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLauncher using
> java.net.URLClassLoader
> 2022-05-02 11:29:21,590 INFO  [WrapperJarAppMain] AgentBootstrapper:76 -
> Attempting create and start launcher...
> 2022-05-02 11:29:21,590 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLaunchDescriptor using
> java.net.URLClassLoader
> 2022-05-02 12:46:33,427 INFO  [WrapperJarAppMain]
> DefaultAgentLauncherCreatorImpl:66 - Attempting to load
> com.thoughtworks.go.agent.launcher.AgentLauncherImpl as specified by
> manifest key Go-Agent-Launcher-Class
> 2022-05-02 12:46:33,442 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLauncher using
> java.net.URLClassLoader
> 2022-05-02 12:46:33,489 INFO  [WrapperJarAppMain] AgentBootstrapper:76 -
> Attempting create and start launcher...
> 2022-05-02 12:46:33,505 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLaunchDescriptor using
> java.net.URLClassLoader
> 2022-05-02 12:46:41,543 INFO  [WrapperJarAppMain]
> DefaultAgentLauncherCreatorImpl:66 - Attempting to load
> com.thoughtworks.go.agent.launcher.AgentLauncherImpl as specified by
> manifest key Go-Agent-Launcher-Class
> 2022-05-02 12:46:41,559 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLauncher using
> java.net.URLClassLoader
> 2022-05-02 12:46:41,606 INFO  [WrapperJarAppMain] AgentBootstrapper:76 -
> Attempting create and start launcher...
> 2022-05-02 12:46:41,622 INFO  [WrapperJarAppMain]
> ParentClassAccessFilteringClassloader:43 - Loading
> com.thoughtworks.cruise.agent.common.launcher.AgentLaunchDescriptor using
> java.net.URLClassLoader
>
>
> go-agent-launcher.log
>  11:29:21,746 INFO  [TouchLoopThread-1] Lockfile:101 - Using lock file:
> E:\GoCD\.agent-bootstrapper.running
> 2022-05-02 11:29:22,621 INFO  [WrapperJarAppMain]
> AgentProcessParentImpl:51 - Agent is version: 19.8.0-9915
> 2022-05-02 11:29:22,887 INFO  [WrapperJarAppMain]
> AgentProcessParentImpl:70 - Launching Agent with command:
> E:\GoCD\jre\bin\java -Xms128m -Xmx256m
> -Dagent.plugins.md5=afaec24e880c980e4d69468b3935a0c9
> -Dagent.binary.md5=719e377e29d813420722282789c12dc9
> -Dagent.launcher.md5=59699f411657bd44394eeb5c80819be8
> -Dagent.tfs.md5=a101373f5e2ef88f52b45d836589d94a -jar agent.jar -serverUrl
> https://go.dev.scitorque.com:8154/go -sslVerificationMode NONE
> 2022-05-02 12:46:30,675 INFO  [ShutdownThread-5]
> AgentProcessParentImpl$Shutdown:185 - Shutdown hook invoked. Shutting down
> Process[pid=1820, exitValue="not exited"]
> 2022-05-02 12:46:33,614 INFO  [TouchLoopThread-1] Lockfile:101 - Using
> lock file: E:\GoCD\.agent-bootstrapper.running
> 2022-05-02 12:46:34,536 INFO  [WrapperJarAppMain]
> AgentProcessParentImpl:51 - Agent is version: 19.8.0-9915
> 2022-05-02 12:46:34,817 INFO  [WrapperJarAppMain]
> AgentProcessParentImpl:70 - Launching Agent with command:
> E:\GoCD\jre\bin\java -Xms128m -Xmx256m
> -Dagent.plugins.md5=afaec24e880c980e4d69468b3935a0c9
> -Dagent.binary.md5=719e377e29d813420722282789c12dc9
> -Dagent.launcher.md5=59699f411657bd44394eeb5c80819be8
> -Dagent.tfs.md5=a101373f5e2ef88f52b45d836589d94a -jar agent.jar -serverUrl
> https://go.dev.scitorque.com:8154/go -sslVerificationMode NONE
> 2022-05-02 12:46:39,099 INFO  [ShutdownThread-5]
> AgentProcessParentImpl$Shutdown:185 - Shutdown hook invoked. Shutting down
> Process[pid=6112, exitValue="not exited"]
> 2022-05-02 12:46:41,731 INFO  [TouchLoopThread-1] Lockfile:101 - Using
> lock file: E:\GoCD\.agent-bootstrapper.running
> 2022-05-02 12:46:42,653 INFO  [WrapperJarAppMain]
> AgentProcessParentImpl:51 - Agent is version: 19.8.0-9915
> 2022-05-02 12:46:42,981 INFO  [WrapperJarAppMain]
> AgentProcessParentImpl:70 - Launching Agent with command:
> E:\GoCD\jre\bin\java -Xms128m -Xmx256m
> -Dagent.plugins.md5=afaec24e880c980e4d69468b3935a0c9
> -Dagent.binary.md5=719e377e29d813420722282789c12dc9
> -Dagent.launcher.md5=59699f411657bd44394eeb5c80819be8
> -Dagent.tfs.md5=a101373f5e2ef88f52b45d836589d94a -jar agent.jar -serverUrl
> https://go.dev.scitorque.com:8154/go -sslVerificationMode NONE
> On Monday, 2 May 2022 at 10:53:46 UTC-4 Obiageli Adegbite wrote:
>
>> Hi Sriram,
>>  I have tried your 3 suggested steps and it is still loosing contact I
>> will uninstall and try install a different version and see how that goes
>>
>>
>> On Monday, 2 May 2022 at 05:50:57 UTC-4 [email protected] wrote:
>>
>>> Replying here since I am unable to see the original mail in my mailbox:
>>>
>>> If you have renamed the agent.jks file and are able to re-establish
>>> contact (you've said the agent is idle for 10-15 minutes), then please try
>>> the following:
>>> 1. Disable the agent and then enable it again.
>>> 2. If removing it and adding it back is an option, then please do so
>>> 3. Uninstall the agent and then reinstall it.
>>>
>>> I have had to do (2) and (3) above when the agent bootstrapper was so
>>> far outdated from the server that just the built-in agent auto-update was
>>> not enough.
>>>
>>> Separately, did you update your Java installation? That once led me to
>>> have to delete the agent.jks like you have had to.
>>>
>>>
>>> -- Sriram
>>>
>>> On Mon, May 2, 2022 at 4:41 PM Chad Wilson <[email protected]>
>>> wrote:
>>>
>>>> Hello
>>>>
>>>> This seems like an old GoCD version that you are running - are you able
>>>> to report what version your server and agents are?
>>>>
>>>> It might be a bit difficult to provide great suggestions for these
>>>> older versions, since the in-built TLS support for GoCD was replaced
>>>> in GoCD 20.2.0 <https://github.com/gocd/gocd/issues/7872> and the
>>>> communications mechanism between server and agent was changed in GoCD
>>>> 21.1.0 meaning it's a bit tough to recall all the details here.
>>>>
>>>> I have a few questions though:
>>>>
>>>>    - Did something change in your setup (agent or servers) after which
>>>>    this started happening?
>>>>    - Are all agents having problems or only a subset of agents?
>>>>    - What do the server logs say at the same time as the agent has
>>>>    these errors?
>>>>
>>>> I am completely guessing, since I am not familiar with GoCD's old
>>>> TLS/mTLS setup, but this might mean certificates have expired somewhere and
>>>> your agent has somehow lost trust in the server (or vice versa - the server
>>>> no longer trusts the agent). To know why that is would require a bit more
>>>> digging though.
>>>>
>>>> -Chad
>>>>
>>>>
>>>> On Sat, Apr 30, 2022 at 3:13 AM Obiageli Adegbite <[email protected]>
>>>> wrote:
>>>>
>>>>> My Window 2019 Agent Keeps loosing contact, due to SSL Handshake
>>>>> errors, when I delete/rename the agent.jks file  it goes to idle and after
>>>>> 10 -15 minutes returns to lost contact what can i do?
>>>>>
>>>>> Error Message
>>>>> 04-29 14:20:46,308 ERROR [scheduler-2] AgentHTTPClientController:103 -
>>>>> Error occurred when agent tried to ping server:
>>>>> org.springframework.remoting.RemoteAccessException: Could not access
>>>>> HTTP invoker remote service at [
>>>>> https://go.dev.scitorque.com:8154/go/remoting/remoteBuildRepository];
>>>>> nested exception is javax.net.ssl.SSLHandshakeException: Received fatal
>>>>> alert: certificate_unknown
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:226)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:153)
>>>>>     at
>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>>>>>     at
>>>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
>>>>>     at com.sun.proxy.$Proxy8.ping(Unknown Source)
>>>>>     at
>>>>> com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:98)
>>>>>     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>>>>     at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>     at
>>>>> org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
>>>>>     at
>>>>> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>>>>>     at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>>>>     at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>>>>>     at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:
>>>>> certificate_unknown
>>>>>     at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>>>>     at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>>>>>     at
>>>>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
>>>>>     at
>>>>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
>>>>>     at
>>>>> org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
>>>>>     at
>>>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
>>>>>     at
>>>>> org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)
>>>>>     at
>>>>> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
>>>>>     at
>>>>> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
>>>>>     at
>>>>> org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
>>>>>     at
>>>>> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
>>>>>     at
>>>>> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
>>>>>     at
>>>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
>>>>>     at
>>>>> com.thoughtworks.go.agent.common.ssl.GoAgentServerHttpClient.execute(GoAgentServerHttpClient.java:54)
>>>>>     at
>>>>> com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.doExecuteRequest(GoHttpClientHttpInvokerRequestExecutor.java:78)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:137)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:202)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:184)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:150)
>>>>>     ... 16 common frames omitted
>>>>> 2022-04-29 14:20:48,718 ERROR [scheduler-1] AgentUpgradeService:92 -
>>>>> [Agent Upgrade] Couldn't connect to:
>>>>> https://go.dev.scitorque.com:8154/go/admin/latest-agent.status:
>>>>> javax.net.ssl.SSLHandshakeException: Received fatal alert:
>>>>> certificate_unknown
>>>>> 2022-04-29 14:20:48,718 ERROR [scheduler-1] AgentController:91 -
>>>>> [Agent Loop] Error occurred during loop:
>>>>> javax.net.ssl.SSLHandshakeException: Received fatal alert:
>>>>> certificate_unknown
>>>>>     at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>>>>     at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>>>>>     at
>>>>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
>>>>>     at
>>>>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
>>>>>     at
>>>>> org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
>>>>>     at
>>>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
>>>>>     at
>>>>> org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)
>>>>>     at
>>>>> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
>>>>>     at
>>>>> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
>>>>>     at
>>>>> org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
>>>>>     at
>>>>> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
>>>>>     at
>>>>> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
>>>>>     at
>>>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
>>>>>     at
>>>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
>>>>>     at
>>>>> com.thoughtworks.go.agent.common.ssl.GoAgentServerHttpClient.execute(GoAgentServerHttpClient.java:49)
>>>>>     at
>>>>> com.thoughtworks.go.agent.service.AgentUpgradeService.checkForUpgradeAndExtraProperties(AgentUpgradeService.java:80)
>>>>>     at
>>>>> com.thoughtworks.go.agent.service.AgentUpgradeService.checkForUpgradeAndExtraProperties(AgentUpgradeService.java:73)
>>>>>     at
>>>>> com.thoughtworks.go.agent.AgentController.loop(AgentController.java:83)
>>>>>     at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
>>>>>     at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>     at
>>>>> org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
>>>>>     at
>>>>> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>>>>>     at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>>>>     at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>>>>>     at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> 2022-04-29 14:20:51,393 ERROR [scheduler-3]
>>>>> AgentHTTPClientController:103 - Error occurred when agent tried to ping
>>>>> server:
>>>>> org.springframework.remoting.RemoteAccessException: Could not access
>>>>> HTTP invoker remote service at [
>>>>> https://go.dev.scitorque.com:8154/go/remoting/remoteBuildRepository];
>>>>> nested exception is javax.net.ssl.SSLHandshakeException: Received fatal
>>>>> alert: certificate_unknown
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:226)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:153)
>>>>>     at
>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>>>>>     at
>>>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
>>>>>     at com.sun.proxy.$Proxy8.ping(Unknown Source)
>>>>>     at
>>>>> com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:98)
>>>>>     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>>>>     at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>     at
>>>>> org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
>>>>>     at
>>>>> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>>>>>     at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>>>>     at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
>>>>>     at
>>>>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>>>>     at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>>>>     at java.lang.Thread.run(Thread.java:745)
>>>>> Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert:
>>>>> certificate_unknown
>>>>>     at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
>>>>>     at sun.security.ssl.Alerts.getSSLException(Alerts.java:154)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
>>>>>     at
>>>>> sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
>>>>>     at
>>>>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:396)
>>>>>     at
>>>>> org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
>>>>>     at
>>>>> org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
>>>>>     at
>>>>> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
>>>>>     at
>>>>> org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)
>>>>>     at
>>>>> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
>>>>>     at
>>>>> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
>>>>>     at
>>>>> org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
>>>>>     at
>>>>> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
>>>>>     at
>>>>> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
>>>>>     at
>>>>> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
>>>>>     at
>>>>> com.thoughtworks.go.agent.common.ssl.GoAgentServerHttpClient.execute(GoAgentServerHttpClient.java:54)
>>>>>     at
>>>>> com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.doExecuteRequest(GoHttpClientHttpInvokerRequestExecutor.java:78)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:137)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:202)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:184)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:150)
>>>>>     ... 16 common frames omitted
>>>>> 2022-04-29 14:20:56,476 ERROR [scheduler-1]
>>>>> AgentHTTPClientController:103 - Error occurred when agent tried to ping
>>>>> server:
>>>>> org.springframework.remoting.RemoteAccessException: Could not access
>>>>> HTTP invoker remote service at [
>>>>> https://go.dev.scitorque.com:8154/go/remoting/remoteBuildRepository];
>>>>> nested exception is javax.net.ssl.SSLHandshakeException: Received fatal
>>>>> alert: certificate_unknown
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:226)
>>>>>     at
>>>>> org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:153)
>>>>>     at
>>>>> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>>>>>     at
>>>>> org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
>>>>>     at com.sun.proxy.$Proxy8.ping(Unknown Source)
>>>>>     at
>>>>> com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:98)
>>>>>     at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
>>>>>     at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>     at
>>>>> org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
>>>>>     at
>>>>> org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
>>>>>     at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>>>>     at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
>>>>>
>>>>> kindly help
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "go-cd" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To view this discussion on the web visit
>>>>> https://groups.google.com/d/msgid/go-cd/3625794c-735f-4459-ade5-5eff14343145n%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/go-cd/3625794c-735f-4459-ade5-5eff14343145n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "go-cd" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/go-cd/CAA1RwH8i74LrdHSUV9f5u-JBe%2BG-2uigjnP9dyV1zPtbwATTuw%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/go-cd/CAA1RwH8i74LrdHSUV9f5u-JBe%2BG-2uigjnP9dyV1zPtbwATTuw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/9b31b839-a53d-4d92-855e-b0ab9ea0373cn%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/9b31b839-a53d-4d92-855e-b0ab9ea0373cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAA1RwH8gYH50_zCVVy5F3dnJ5%2Bn5R_ipfWZM3fHouSwusaKFgg%40mail.gmail.com.

Reply via email to