0

I have a vNext build that is stuck at the step below. The VM (Windows 10) keeps being rebooted (even after the build is manually stopped). This agent needs to be configured as an "Interactive Process" (to run Selenium tests).

DistributedTests: Task 'ConfigureTestAgent' on machine 'DVDIP-W10-36.dev.jha:5985' is taking time. Please Wait

I see a lot of questions related to this problem that are unanswered. Can someone please help?

Thanks in advance.

AngieM
  • 735
  • 6
  • 27

1 Answers1

1

When this happened to me and it was due to the fact there was a legal disclaimer that would appear prior to logging in that you had to click okay to dismiss.

To fix this, we had that legal disclaimer disabled for that machine.

UPDATE: Microsoft has addressed this in VSTS, TFS 2015.4, and TFS 2017.2 to cap the number of reboots at 3. See https://blogs.msdn.microsoft.com/devops/2017/07/03/deploy-visual-studio-test-agent-task-test-machine-rebooting-scenarios/

Jacob Maki
  • 366
  • 3
  • 11
  • You meant the typical corporate policy that one has to acknowledge before being logged in? – AngieM Jun 09 '17 at 20:10
  • Yeah - we had the powers that be update the group policy then did a GPUpdate /force from an admin command prompt on the machine. – Jacob Maki Jun 09 '17 at 20:12
  • I don't have permissions to modify Group Policies. Let me see if there's a way to disable it from the machine itself. – AngieM Jun 09 '17 at 20:15
  • I presume the issue (at least in your case) is because the account (whatever it is) cannot acknowledge the legal disclaimer? – AngieM Jun 09 '17 at 20:26
  • Correct. I'm not sure there's anyway to make it acknowledge it either. Essentially what is happening is a windows service is getting installed, it's trying to log in (since it's set to be an interactive process), getting stuck on that, and rebooting the machine. The machine starts up again, service starts again, same problem. The name of the windows service escapes me, but if you disable it, it should stop the constant rebooting. – Jacob Maki Jun 09 '17 at 20:31
  • I ended up installing the agent manually so the build can bypass this step. Not ideal but at least that can get it going for now. Thanks so much for your help! – AngieM Jun 09 '17 at 20:51