TeamCity cannt connect to VSTS
I am trying to connect Teamcity with VSTS, Our TeamCity(9.1.7) server is sitting behind the proxy and I have already put the proxy settings to the JVM startup options
Now I can connect to Github but not VSTS,I got error saying:
(Team Foundation Server) TF400324: Team Foundation services are not available from server https://xxxxxxxxx.visualstudio.com/DefaultCollection/
Technical information (for administrator):
Unable to connect to the remote server
(Subversion) java.io.IOException: Failed to connect to the server using the specified URL, error: java.net.ConnectException: Connection refused: connect
Read from this Post here, looks like people are having same issues:https://blog.jetbrains.com/teamcity/2014/09/teamcity-and-visual-studio-online-source-control/
Please sign in to leave a comment.
Hello Rex,
Please try to add teamcity.tfs.useSystemProxy=true property to the internal.properties file. Let us know, if it helps.
Hi Alina,
I have tried adding Teamcity.tfs.usersystemproxy=true,
Also tried adding SET TEAMCITY_SERVER_OPTS=%TEAMCITY_SERVER_OPTS% -Dproxyset=true -Dhttp.proxyHost=domain.com.au -Dhttp.proxyPort=8080 -Dhttp.nonProxyHosts=domain.com.au -Dhttps.proxyHost=domain.com.au -Dhttps.proxyPort=8080 -Dhttps.nonProxyHosts=domain.com.au
worked for Github, but not for VSTS
Copied from email support:
In
TeamCity 9.1.xTFS support uses .net Team Explorer libraries, so to properly configure proxy settings you should do following:https://xxxxxxxxx.visualstudio.com/teamcity.tfs.useSystemProxy=true.In
TeamCity 10.xwas introduced lots of TFS improvements including java working mode which uses bundled TFS libraries and uses same proxy settings as TeamCity server.So, if you can upgrade TeamCity to the latest version, do it, then define following internal properties to enable java mode:
Then try to connect to the TFVC project in your VSTS account. Please let us know if it works.
Your settings for VSTS VCS Root should be filled as following:
URL: https://xxxxxxxxx.visualstudio.com/DefaultCollection/
Root: $/projectfolder/folder
For alternate credentials:
Username: ##LIVE##\%username%
Password: %password%
For personal access token:
Username: ##LIVE##\
Password: %token%
Hi Team,
You have been supporting in a great way. I need one more help from the technical team.
Even I am facing the same issue. I am using TeamCity version: TeamCity Enterprise 2017.2 (build 50574)
Whenever I try to connect to VSTS, it says connection time out error.
I have set the proxy in the server where TeamCity is hosted and able to connect to VSTS repos in the browser from the same server.
But still not able to connect in TeamCity application.
I have also set the "teamcity.tfs.useSystemProxy=true" in the internal properties file of TeamCity. but no luck.
Can anyone please help in this.