Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Teamcity to github List remote refs failed not authorized jgit

Using github for windows on same machine, with same credentials works fine. Can pull/clone.

However teamcity installed as a windows service on the same machine, returns the following error

List remote refs failed: org.eclipse.jgit.errors.TransportException: https://github.com/my-private-repo.git: not authorized
like image 431
NimChimpsky Avatar asked Apr 09 '14 09:04

NimChimpsky


4 Answers

In teamcity, in the project VCS Root, if the authentication method is based on ssh public/private key, then the fetch URL should be like [email protected]:.../repository.git. Using https:// in the fetch URL causes the error message:

List remote refs failed: org.eclipse.jgit.errors.TransportException..

to occur.

like image 119
user4193783 Avatar answered Oct 13 '22 21:10

user4193783


In bitbucket, i resolved this by creating an App Password under settings, and used the app password instead of my bitbucket password

like image 24
sawe Avatar answered Oct 13 '22 21:10

sawe


Had the same issue and resolved it by creating a Personal Access Token in Github and using it as a password in TeamCity.

like image 3
Fernando Moreira Avatar answered Oct 13 '22 21:10

Fernando Moreira


Having same error with Stash (=Bitbucket server) and solution was to give the user specified in TeamCity the permissions in Stash to access the repository. Permissions are per-repository.

like image 2
Riga Avatar answered Oct 13 '22 22:10

Riga