1
votes

We have a 3 tier TFS environment: 1 application server, 1 build server and 1 DB Server. TFS 2017 is installed and configured. We are attempting to connect the Build server with the Application server using config.cmd but receive the following error:

PS D:\agent01> .\config.cmd

Connect:

Enter server URL > https://tfs.domain.com Enter authentication type (press enter for Integrated) > Connecting to server ... An error occurred while sending the request. Failed to connect. Try again or ctrl-c to quit

Firewall Settings:

Source: TFS Build Server Destination: TFS Application Server Ports: 443 and 8080

What other ports need to be allowed between servers?

2

2 Answers

0
votes

Since you are using https as your public TFS url.

Please make sure you have created the Self Signed Certificate over TFS server and installed the same over build agent machine.

More details take a look at this similar issue here: TFS Build Agent Fails to Configure & Run with TFS2018 Self-Signed SSL Certificate

If you still have the same error after above actions, then please give a try with below steps which may help to narrow down the issue:

  • Make sure you add the user running the installation of agent, to the pool and queue administrators
  • Try to use PAT if you are using username/passwoard
  • Temporarily turn off the firewall and try again
0
votes

I reimported the wildcard certificate and I imported DigiCert High Assurance CA in Trusted Root on both TFS Build and Application server.