Failed to collect changes, error: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized

Hi,

we are experiencing problem while connecting to github. The VCS test connection show status successfull, but we keep getting this error:Failed to collect changes, error: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
Also git is working on the machine without problem. We tried both SSH and username/password authentication.

More details:

Failed for the root '"TeamCity" {instance id=91, parent internal id=2, parent id=TeamCity, description: "https://github.com/Serenata/TeamCity#refs/heads/master"}: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
stacktrace
jetbrains.buildServer.vcs.VcsRootVcsException: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.createRootException(VcsChangesStatesCollector.java:61)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.getCurrentState(VcsChangesStatesCollector.java:34)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.access$100(VcsChangesStatesCollector.java:5)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$2.run(VcsChangesStatesCollector.java:6)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:89)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.doCollectStates(VcsChangesStatesCollector.java:3)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.access$000(VcsChangesStatesCollector.java:32)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$1.run(VcsChangesStatesCollector.java:1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: jetbrains.buildServer.vcs.VcsException: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
at jetbrains.buildServer.buildTriggers.vcs.git.OperationContext.wrapException(OperationContext.java:164)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:357)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:139)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:131)
at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.getCurrentState(GitCollectChangesPolicy.java:101)
at jetbrains.vcs.api.services.impl.RepositoryStateServiceProvider$1.getCurrentState(RepositoryStateServiceProvider.java:0)
at jetbrains.buildServer.vcs.impl.VcsRootInstanceImpl.getCurrentState(VcsRootInstanceImpl.java:77)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$CurrentStateOperation.call(VcsChangesStatesCollector.java:3)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$CurrentStateOperation.call(VcsChangesStatesCollector.java:1)
at jetbrains.buildServer.vcs.VcsOperationProgressProviderImpl.runWithProgress(VcsOperationProgressProviderImpl.java:27)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.getCurrentState(VcsChangesStatesCollector.java:17)
... 11 more
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:484)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:312)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:374)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:352)
... 20 more
jetbrains.buildServer.vcs.VcsException: List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
at jetbrains.buildServer.buildTriggers.vcs.git.OperationContext.wrapException(OperationContext.java:164)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:357)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:139)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:131)
at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.getCurrentState(GitCollectChangesPolicy.java:101)
at jetbrains.vcs.api.services.impl.RepositoryStateServiceProvider$1.getCurrentState(RepositoryStateServiceProvider.java:0)
at jetbrains.buildServer.vcs.impl.VcsRootInstanceImpl.getCurrentState(VcsRootInstanceImpl.java:77)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$CurrentStateOperation.call(VcsChangesStatesCollector.java:3)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$CurrentStateOperation.call(VcsChangesStatesCollector.java:1)
at jetbrains.buildServer.vcs.VcsOperationProgressProviderImpl.runWithProgress(VcsOperationProgressProviderImpl.java:27)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.getCurrentState(VcsChangesStatesCollector.java:17)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.access$100(VcsChangesStatesCollector.java:5)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$2.run(VcsChangesStatesCollector.java:6)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:89)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.doCollectStates(VcsChangesStatesCollector.java:3)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.access$000(VcsChangesStatesCollector.java:32)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$1.run(VcsChangesStatesCollector.java:1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:484)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:312)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:374)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:352)
... 20 more
org.eclipse.jgit.errors.TransportException: https://github.com/Serenata/TeamCity: not authorized
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:484)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:312)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:374)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:352)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:139)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getCurrentState(GitVcsSupport.java:131)
at jetbrains.buildServer.buildTriggers.vcs.git.GitCollectChangesPolicy.getCurrentState(GitCollectChangesPolicy.java:101)
at jetbrains.vcs.api.services.impl.RepositoryStateServiceProvider$1.getCurrentState(RepositoryStateServiceProvider.java:0)
at jetbrains.buildServer.vcs.impl.VcsRootInstanceImpl.getCurrentState(VcsRootInstanceImpl.java:77)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$CurrentStateOperation.call(VcsChangesStatesCollector.java:3)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$CurrentStateOperation.call(VcsChangesStatesCollector.java:1)
at jetbrains.buildServer.vcs.VcsOperationProgressProviderImpl.runWithProgress(VcsOperationProgressProviderImpl.java:27)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.getCurrentState(VcsChangesStatesCollector.java:17)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.access$100(VcsChangesStatesCollector.java:5)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$2.run(VcsChangesStatesCollector.java:6)
at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:89)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.doCollectStates(VcsChangesStatesCollector.java:3)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector.access$000(VcsChangesStatesCollector.java:32)
at jetbrains.buildServer.vcs.impl.VcsChangesStatesCollector$1.run(VcsChangesStatesCollector.java:1)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

1 comment
Comment actions Permalink

Hi Evaldas,

Sorry for delay. If you use ssh authentication then please try changing the url to git@github.com/user/repo.git.

0

Please sign in to leave a comment.