Upsource cannot pull from repo

Trying to add one of the repos to upsource, after about a minute I'm getting a red error message:

Test VCS connection failed.

In the logs I can see (private info redacted):

2016-04-01 22:02:21,709] * RPC: [Queued: 0] testVcsConnection:{"vcsSettings":{"vcs":"git","url":"ssh://...@.../...","authMethod":"SSH key","login":"","mapping":"","client":"","svnBranches":"","id":"mytest"}}, Users:{admin}
[2016-04-01 22:03:21,711] * Detected too long execution (60002 ms):
[2016-04-01 22:03:21,712] Subject: testVcsConnection:{"vcsSettings":{"vcs":"git","url":"ssh://...@.../...","authMethod":"SSH key","login":"","mapping":"","client":"","svnBranches":"","id":"mytest"}}, Users:{admin}
[2016-04-01 22:03:21,712] Thread 178 (Netty worker group-21) ----------------------------------------
[2016-04-01 22:03:21,712] LicenseManagerImpl: checkLicense(): 0 (0 - 0)
[2016-04-01 22:03:21,712] Thread 205 (Upsource RPC task executor-5) ----------------------------------------
[2016-04-01 22:03:21,713] thread switch at 'TaskManagerImpl: execute()' from 178 (Netty worker group-21) to 205 (Upsource RPC task executor-5): 0 (0 - 0)
[2016-04-01 22:03:21,713] TaskRunnable: run(testVcsConnection): 60001 (1 - 60002)

Pulling from the repo with the same key and URL works:

# git clone ssh://...@.../...
Cloning into 'mytest'...
remote: Counting objects: 3735, done.
remote: Compressing objects: 100% (1002/1002), done.
remote: Total 3735 (delta 1408), reused 3676 (delta 1352)
Receiving objects: 100% (3735/3735), 41.61 MiB | 5.22 MiB/s, done.
Resolving deltas: 100% (1408/1408), done.
Checking connectivity... done.

Any ideas what is it or how to investigate it ?


Comment actions Permalink

Hi Vitaly,

Upsource uses jgit lib to connect to git repos.

So if you have some custom settings specified for git connections you also need to specify them for Upsource (e.g proxy server) through: 

\Upsource_home_dir\conf\upsource-analyzer\upsource-analyzer.jvmoptions file.

Btw, did you try to clone repo under the same user account?

Comment actions Permalink

No special settings for this connection, just URL and private key.

It was the same account.

Comment actions Permalink

Hi Vitaly,

Sorry for putting it off.

Did you have any progress in investigating that?

If not, please open a support request and attach Upsource logs. We'll try our best to solve the issue.

Thank you.


Please sign in to leave a comment.