Teamcity 9.1.7 TransportException Error code 407 Proxy Authentication required to TFS-Git
Trying to connect to the company's internal TFS-Git server but team city will not connect. Trying through external tools such as Git command line or VIsualStudio , it works fine but fails in Team city
The error is as below
Caused by: org.eclipse.jgit.errors.TransportException: http://TfsServer/RepoName: 407 Proxy Authentication Required
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:522)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:315)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:378)
at jetbrains.buildServer.buildTriggers.vcs.git.GitVcsSupport.getRemoteRefs(GitVcsSupport.java:355)
... 53 more
Tried turning off all authentication on IIS except Basic , but that still did not work.
TFSServer has been installed on the same machine as team city and the connection only works if I change the URL to
http://localhost/RepoName . This is just temporary though and will change in the future .
Can you please let me know how I can make it work with the current setup.
Please sign in to leave a comment.
Hi Husain,
The 407 error means that there is a proxy server in the way that requires authentication. TFS usually includes a proxy, you might need to configure that and/or configure teamcity to use the proxy connections. More information to it here: https://confluence.jetbrains.com/display/TCD10/Team+Foundation+Server#TeamFoundationServer-TeamFoundationProxyConfiguration
Please take into account that some of this details were implemented in TeamCity 10, and version 9 is already out of support, so the suggestions mentioned above might not quite work exactly like that for you (more info on the changes here: https://youtrack.jetbrains.com/issue/TW-33545 and detailed links in there).
Upgrading to version 10 should help with that.
Hi Denis ,
Thanks for the reply . It seems like you are suggesting to upgrade to 10 would be the best option here.
But why does connecting to an intranet on-premise TFS instance require a proxy setting to be set ?
Never mind , Your post helped me to dig deeper and I found out that the "teamcity.tfs.useSystemProxy=true" was set and I had to set something for a specific host in
-Dhttp.nonProxyHosts="TFSServerName"
This worked beautifully .
Thanks