There are workarounds but no graceful solution to this. If you're using a "jailed" build user like we are, you'll see "Please check TeamCity build agent service user have enough permissions to stop and start the service." Or, if you don't want to use a tool that Microsoft no longer makes available, then you can use Process Explorer, as described at. The article says that something like subinacl /service spooler /grant=contoso\cortana=top After I added the build agent service user to the Administrator group and restarted the build agent service, the upgrade finished successfully and the agent connected again.Īlternatively, as described by BatteryBackupUnit and, it's possible to give the TeamCity Windows user account the start, stop and pause permissions on the TeamCity Build Agent service. By default, only members of the Administrators group can start, stop, pause, resume or restart a service. Using the Local Security Policy, I granted the build agent service user "logon as a service" rights but this is not sufficient to start and stop a service. "Please check TeamCity build agent service user have enough permissions to stop and start the service." Upgrade.log showed me that the build agent received a call from the teamcity server to upgrade. I stopped the build agent service and deleted the logs from BuildAgent\logs and restarted the build agent service so I could see a fresh log. Both the build agent and the server are installed on Windows Server 2012. Has anyone seen anything like this before? We've looked at the server logs and aren't seeing anything on them to indicate what could be wrong. INFO - Unregistering from build server: 5 INFO - Delete agent runtime file from E:\buildAgent\logs\buildAgent.port INFO - Downloading => E:\buildAgent\update\plugins\dotNetPlugin.zip INFO - Downloading => E:\buildAgent\update\plugins\dotCover.zip INFO - Downloading => E:\buildAgent\update\plugins\cvsAgent.zip INFO - Downloading => E:\buildAgent\update\plugins\crashDetector.zip INFO - Downloading => E:\buildAgent\update\plugins\coveragePlugin.zip INFO - Downloading => E:\buildAgent\update\plugins\commandLineRunner.jar ![]() INFO - Downloading => E:\buildAgent\update\plugins\clearcase-agent.zip ![]() INFO - Downloading => E:\buildAgent\update\plugins\assembly-info-patcher.zip INFO - Downloading => E:\buildAgent\update\plugins\antPlugin.zip INFO - Downloading => E:\buildAgent\update\plugins\ant.zip INFO - Downloading => E:\buildAgent\update\plugins\amazonEC2.zip INFO - Downloading => E:\buildAgent\update\plugins\agentSystemInfo.zip INFO - Host configuration for downloading updates: HostConfiguration INFO - Downloading => E:\buildAgent\temp\m8a1mAwTuLIngev3yRUMPUuaYWZFmMSh We are trying to setup a build agent and every time we start it the log shows the following messages: INFO - Starting agent shutdown sequence, reason: Restart agent, failed to download upgrade from server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |