I recently upgraded my continuous integration server to TeamCity 7.1.1 on a 64bit Windows 7 box and ran into an issue with the Build Agent: on the Agents page it listed my agent as:
"Agent has unregistered (will upgrade)"
I tried:
The documentation suggests checking the logs so I did and indeed I have:
ERROR - r.agent.upgrade.UpgradeRunBase - Failed to start agent after upgrade: java.io.IOException: Failed to start TeamCity build agent service. Please check TeamCity build agent service user have enough permissions to stop and start the service.
java.io.IOException: Failed to start TeamCity build agent service. Please check TeamCity build agent service user have enough permissions to stop and start the service.
So I added the TeamCity user to admin group (http://youtrack.jetbrains.com/issue/TW-15843) just so that it could complete the upgrade and that worked.
"Agent has unregistered (will upgrade)"
I tried:
- Stopping both services and killing any java processes then restarting.
- Uninstalling and re-installing the agent.
- Disabling anti virus (http://devnet.jetbrains.net/thread/286003)
The documentation suggests checking the logs so I did and indeed I have:
ERROR - r.agent.upgrade.UpgradeRunBase - Failed to start agent after upgrade: java.io.IOException: Failed to start TeamCity build agent service. Please check TeamCity build agent service user have enough permissions to stop and start the service.
java.io.IOException: Failed to start TeamCity build agent service. Please check TeamCity build agent service user have enough permissions to stop and start the service.
So I added the TeamCity user to admin group (http://youtrack.jetbrains.com/issue/TW-15843) just so that it could complete the upgrade and that worked.
Thank you. That was really annoying.
ReplyDelete