{"action":"created","issue":{"url":"https://api.github.com/repos/gocd/gocd/issues/1360","labels_url":"https://api.github.com/repos/gocd/gocd/issues/1360/labels{/name}","comments_url":"https://api.github.com/repos/gocd/gocd/issues/1360/comments","events_url":"https://api.github.com/repos/gocd/gocd/issues/1360/events","html_url":"https://github.com/gocd/gocd/issues/1360","id":95487326,"number":1360,"title":"SSL connection issues after upgrade","user":{"login":"superbeeny","id":1985327,"avatar_url":"https://avatars.githubusercontent.com/u/1985327?v=3","gravatar_id":"","url":"https://api.github.com/users/superbeeny","html_url":"https://github.com/superbeeny","followers_url":"https://api.github.com/users/superbeeny/followers","following_url":"https://api.github.com/users/superbeeny/following{/other_user}","gists_url":"https://api.github.com/users/superbeeny/gists{/gist_id}","starred_url":"https://api.github.com/users/superbeeny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/superbeeny/subscriptions","organizations_url":"https://api.github.com/users/superbeeny/orgs","repos_url":"https://api.github.com/users/superbeeny/repos","events_url":"https://api.github.com/users/superbeeny/events{/privacy}","received_events_url":"https://api.github.com/users/superbeeny/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-16T17:43:00Z","updated_at":"2015-08-06T12:40:11Z","closed_at":null,"body":"After the upgrade I see issues with the agent trying to connect to the go-server\r\n\r\n```\r\n2015-07-16 13:38:37,726 [loopThread] ERROR thoughtworks.go.agent.AgentController:145 - [Agent Loop] Error occurred during loop: \r\njavax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake\r\n\tat sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:953)\r\n\tat sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)\r\n\tat sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:709)\r\n\tat sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122)\r\n\tat java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)\r\n\tat java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)\r\n\tat org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:827)\r\n\tat org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1525)\r\n\tat org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1975)\r\n\tat org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)\r\n\tat org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)\r\n\tat org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)\r\n\tat org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)\r\n\tat org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)\r\n\tat com.thoughtworks.go.agent.service.AgentUpgradeService.checkForUpgrade(AgentUpgradeService.java:54)\r\n\tat com.thoughtworks.go.agent.service.AgentUpgradeService.checkForUpgrade(AgentUpgradeService.java:47)\r\n\tat com.thoughtworks.go.agent.AgentController.loop(AgentController.java:129)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:606)\r\n\tat org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:273)\r\n\tat org.springframework.scheduling.support.MethodInvokingRunnable.run(MethodInvokingRunnable.java:65)\r\n\tat org.springframework.scheduling.timer.DelegatingTimerTask.run(DelegatingTimerTask.java:70)\r\n\tat java.util.TimerThread.mainLoop(Timer.java:555)\r\n\tat java.util.TimerThread.run(Timer.java:505)\r\nCaused by: java.io.EOFException: SSL peer shut down incorrectly\r\n\tat sun.security.ssl.InputRecord.read(InputRecord.java:482)\r\n\tat sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:934)\r\n\t... 25 more\r\n```"},"comment":{"url":"https://api.github.com/repos/gocd/gocd/issues/comments/128350914","html_url":"https://github.com/gocd/gocd/issues/1360#issuecomment-128350914","issue_url":"https://api.github.com/repos/gocd/gocd/issues/1360","id":128350914,"user":{"login":"darrenhaken","id":953467,"avatar_url":"https://avatars.githubusercontent.com/u/953467?v=3","gravatar_id":"","url":"https://api.github.com/users/darrenhaken","html_url":"https://github.com/darrenhaken","followers_url":"https://api.github.com/users/darrenhaken/followers","following_url":"https://api.github.com/users/darrenhaken/following{/other_user}","gists_url":"https://api.github.com/users/darrenhaken/gists{/gist_id}","starred_url":"https://api.github.com/users/darrenhaken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/darrenhaken/subscriptions","organizations_url":"https://api.github.com/users/darrenhaken/orgs","repos_url":"https://api.github.com/users/darrenhaken/repos","events_url":"https://api.github.com/users/darrenhaken/events{/privacy}","received_events_url":"https://api.github.com/users/darrenhaken/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T12:40:11Z","updated_at":"2015-08-06T12:40:11Z","body":"This worked for me only after upgrading to Go 15.2.\r\n\r\nThis is critical to resolving the issue."}}