Error connecting on-premise TeamCity to VSO and NuGet

We have an on-premise TeamCity (8.1.5) - running on Windows 2008 R2 server - that we want to connect to Visual Studio Online (VSO) and NuGet, but it is currently not working. We get the following error when trying to connect to VSO;

Failed for the root 'TFS' #307: Failed to get current version of TFS root. TF400324: Team Foundation services are not available from server https://xxx.visualstudio.com/DefaultCollection.
Technical information (for administrator):
Unable to connect to the remote server

I think suspect this is a proxy issue as all internet traffic from our corporate network has to go through a proxy server. I have taken a look in the TeamCity web admin interface and searched the documentation but I cannot find anything that indicates how to configure TeamCity to use a proxy server when connecting to external services.

Can someone tell me how to do this? Thanks.

Phil

3 comments
Comment actions Permalink

Hi Philip,

Please see How to set up TeamCity behind a proxy server in documentation. Also configuration steps are described in the comment for NuGet related issue.
Feel free to ask us more questions if you cannot find the answers in the materials linked above.

0
Comment actions Permalink

Hi Alina,

I think you have misunderstood my issue, or I have misunderstood your solution. I am not trying to connect to my internal TC server from outside the corporate network, hence requiring reverse proxy configuration.

The issue is that our TeamCity server has to use a proxy server to make HTTP/HTTPS requests from our internal network to external resources, i.e. https://xxx.visualstudio.com and https://www.nuget.org.

Are you suggesting that those proxy settings are applicable to both outbound as well as inbound HTTP/HTTPS requests?

Phil

0
Comment actions Permalink

Sorry, I've not read your question carefully enough. To configure TeamCity to have access to external network please try to add java options suggested in this blog post -http://www.diaryofaninja.com/blog/2013/06/17/teamcity-and-git-behind-a-corporate-ntlm-proxy-server.

Also please set 'teamcity.tfs.useSystemProxy=true' internal property to make TFS work via proxy. Please vote for the related issue https://youtrack.jetbrains.com/issue/TW-33545.

0

Please sign in to leave a comment.