i try to set up a new TFS Build agent (TFS 2015, Build "vNext"). I get a strange error when a build is triggered.
Following setup:
- TFS 2015 Server hosted on a machine in the intenet
- TFS 2015 Build Agent on a machine in our company network behind a VPN
- set up Build Agent and registered on TFS Server
The Agent is showing up in TFS-Webaccess and it is marked as online (green), so i guess the connection is set up correctly. Agent green
Now, when a build is triggered it looks like the agent starts the work, but after some time an entry is written to the log:
Microsoft.VisualStudio.Services.WebApi.VssServiceResponseException: TF246017: Team Foundation Server could not connect to the database. Verify that the server that is hosting the database is operational, and that network problems are not blocking communication with the server.
With Webaccess no problems, working perfectly. Any ideas on this?
UPDATE I tried to connect an build agent from another Internetserver. There i get another error when agent tries to run a build:
System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:8080
My TFS-Server is accessed via https://tfs.xxx.yy/tfs.