[Upsource] VCS (GitHub) "Read timed out"

Hi,

I'm running the Upsource official docker image 2017.1.1821 on Kubernetes cluster and I'm having issues with VCS (GitHub) connectivity.

I've tried with various checking intervals, ranging from 10s to 350s - the same thing happens.

Once in a few minutes the check is successful and new commits are fetched, so this is not an authentication issue.

Usually this shows up in the UI:

14:56:05: Check for VCS changes completed with errors. jetbrains.vcs.server.api.VcsServiceException: 
Failed to complete an action for [project_name]:. Failed to collect current revision for [project_name]:. List remote refs failed: java.net.SocketTimeoutException: Read timed out

This is the error I'm getting in the logs:

[2017-03-15 16:35:42,110] [Upsource Frontend Error] [2017-03-15 16:35:42,100] WARN         VcsService-15   wuji-platform pl.graph.worker.VcsFetchSource - Failed to fetch repository: wuji-platform:. List remote refs failed: java.net.SocketTimeoutException: Read timed out 
[2017-03-15 16:35:42,111] [Upsource Frontend Error] jetbrains.buildServer.vcs.VcsException: List remote refs failed: java.net.SocketTimeoutException: Read timed out
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.fetchAllRefs(GitCollectChangesPolicy.java:137)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitFetchService.fetchRepositoryImpl(GitFetchService.java:55)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitFetchService.fetchRepository(GitFetchService.java:44)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.vcs.api.services.impl.FetchServiceProvider$1.fetchRepository(FetchServiceProvider.java:33)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.vcs.server.core.impl.graph.worker.VcsFetchSource.fetch(VcsFetchSource.java:37)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory$1.buildGraph(CompositeGraphFactory.java:79)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder$1.forMapping(CompositeGraphBuilder.java:97)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder$1.forMapping(CompositeGraphBuilder.java:82)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$2.call(TrueParallelExecutionImpl.java:84)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at __.project_wuji-platform.__(JavaGeneratorTemplate.java:40)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at org.jonnyzzz.stack.NamedStackFrame.frame(NamedStackFrame.java:43)
[2017-03-15 16:35:42,111] [Upsource Frontend Error]     at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceConnections$2.lambda$wrapMappingTask$0(VcsServiceConnections.java:99)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$1$1.run(TrueParallelExecutionImpl.java:51)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at java.lang.Thread.run(Thread.java:745)
[2017-03-15 16:35:42,112] [Upsource Frontend Error] Caused by: jetbrains.buildServer.vcs.VcsException: List remote refs failed: java.net.SocketTimeoutException: Read timed out
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.OperationContext.wrapException(OperationContext.java:176)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:374)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:153)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.fetchAllRefs(GitCollectChangesPolicy.java:133)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     ... 16 more
[2017-03-15 16:35:42,112] [Upsource Frontend Error] Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/xword/wuji-platform: cannot open git-upload-pack
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:530)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:315)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:392)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:369)
[2017-03-15 16:35:42,112] [Upsource Frontend Error]     ... 18 more
[2017-03-15 16:35:42,112] [Upsource Frontend Error] Caused by: java.net.SocketTimeoutException: Read timed out
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at java.net.SocketInputStream.socketRead0(Native Method)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at java.net.SocketInputStream.read(SocketInputStream.java:171)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at java.net.SocketInputStream.read(SocketInputStream.java:141)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at sun.security.ssl.InputRecord.read(InputRecord.java:503)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.conn.ssl.SSLSocketFactory.createLayeredSocket(SSLSocketFactory.java:573)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:557)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection$SNISSLSocketFactory.connectSocket(SNIHttpClientConnection.java:376)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:414)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:180)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:326)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
[2017-03-15 16:35:42,113] [Upsource Frontend Error]     at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:835)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.execute(SNIHttpClientConnection.java:201)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at jetbrains.buildServer.buildTriggers.vcs.git.SNIHttpClientConnection.getResponseCode(SNIHttpClientConnection.java:173)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:481)
[2017-03-15 16:35:42,114] [Upsource Frontend Error]     ... 21 more

Could you please tell me what should I tweak in order to raise these timeouts?

Best Regards.

Marcin

 

Please sign in to leave a comment.