VCS Exception On Admin Page

I have deployed upsource version 2.0.3653 and I constantly see this exception on the administration page.

18:28:39: Check for VCS changes complete with error. jetbrains.vcs.server.api.VcsServiceException: 2 of 2 failed. Failed to complete an action for optymyze:optymyze. Failed to collect current revision for optymyze:optymyze. List remote refs failed: java.net.SocketException: Connection reset, Failed to complete an action for optymyze:modules. Failed to collect current revision for optymyze:modules. List remote refs failed: java.net.SocketException: Connection reset

It's not causing any browsing issues and I could see the latest commits on the main page. I am not sure if its related to checking out git branches. Below is the stack trace from the error.log file in upsource-analyzer folder

[2015-10-08 08:03:20,898] ERROR         VcsService-5        optymyze ggers.vcs.git.FetchCommandImpl - Error while pruning removed branches
org.eclipse.jgit.errors.TransportException: Connection reset
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefs(BasePackConnection.java:182)
        at org.eclipse.jgit.transport.TransportGitAnon$TcpFetchConnection.<init>(TransportGitAnon.java:195)
        at org.eclipse.jgit.transport.TransportGitAnon.openFetch(TransportGitAnon.java:120)
        at jetbrains.buildServer.buildTriggers.vcs.git.GitServerUtil.pruneRemovedBranches(GitServerUtil.java:280)
        at jetbrains.buildServer.buildTriggers.vcs.git.FetchCommandImpl.fetchInSameProcess(FetchCommandImpl.java:266)
        at jetbrains.buildServer.buildTriggers.vcs.git.FetchCommandImpl.fetch(FetchCommandImpl.java:86)
        at jetbrains.buildServer.buildTriggers.vcs.git.CommitLoaderImpl.fetch(CommitLoaderImpl.java:105)
        at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy$FetchAllRefs.run(GitCollectChangesPolicy.java:417)
        at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.ensureRepositoryStateLoaded(GitCollectChangesPolicy.java:231)
        at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.ensureRepositoryStateLoadedFor(GitCollectChangesPolicy.java:158)
        at jetbrains.buildServer.buildTriggers.vcs.git.GitFetchService.fetchRepository(GitFetchService.java:45)
        at jetbrains.vcs.api.services.impl.FetchServiceProvider$1.fetchRepository(FetchServiceProvider.java:33)
        at jetbrains.vcs.server.core.impl.graph.worker.VcsFetchSource.fetch(VcsFetchSource.java:37)
        at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphFactory$1.buildGraph(CompositeGraphFactory.java:79)
        at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder$1.forMapping(CompositeGraphBuilder.java:97)
        at jetbrains.vcs.server.core.impl.graph.global.CompositeGraphBuilder$1.forMapping(CompositeGraphBuilder.java:82)
        at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$2.call(TrueParallelExecutionImpl.java:83)
        at __.project_optymyze.__(JavaGeneratorTemplate.java:40)
        at org.jonnyzzz.stack.NamedStackFrame.frame(NamedStackFrame.java:43)
        at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceConnections$2.lambda$wrapMappingTask$6(VcsServiceConnections.java:101)
        at com.jetbrains.upsource.backend.cli.vcs.service.VcsServiceConnections$2$$Lambda$134/1417120996.call(Unknown Source)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at jetbrains.vcs.server.core.impl.threading.TrueParallelExecutionImpl$1$1.run(TrueParallelExecutionImpl.java:51)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:209)
        at java.net.SocketInputStream.read(SocketInputStream.java:141)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
        at java.io.FilterInputStream.read(FilterInputStream.java:133)
        at org.eclipse.jgit.util.io.TimeoutInputStream.read(TimeoutInputStream.java:112)
        at org.eclipse.jgit.util.IO.readFully(IO.java:246)
        at org.eclipse.jgit.transport.PacketLineIn.readLength(PacketLineIn.java:186)
        at org.eclipse.jgit.transport.PacketLineIn.readString(PacketLineIn.java:138)
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefsImpl(BasePackConnection.java:195)
        at org.eclipse.jgit.transport.BasePackConnection.readAdvertisedRefs(BasePackConnection.java:176)
        ... 25 more


What could be the issue?

Thanks!

4 comments
Comment actions Permalink

Hi Amit,

This issue might be a floating one. Do you see it on the regular basis or time to time?

Thanks.

0
Comment actions Permalink

Recently I had to upgrade upsource to 2.0.3682 for the LDAP issue. After the upgrade, surprisingly I do not see the error. Hopefully it won't appear again.

0
Comment actions Permalink

Hey Artem,

I have started getting this error again from past few weeks. Can we please troubleshoot this further to find out the root cause?
Also what are the side effects of this?

0
Comment actions Permalink

Hi Amit,

Upsource constantly performs connection attempts your VCS server. That errors show that some attempts were unsuccessful. There might be two scenarios -

a. VCS server is not available at all. Here we would recommend to check if version control server is available from Upsource machine.
b. VCS server throws connection timeout errors from time to time, but generally Upsource might fetch data from the server during the day. Here we would recommend increasing connection timeouts on the VCS server side.

Hope it helps.

0

Please sign in to leave a comment.