"Agent is scheduled to reboot" blocks builds to run - have not restarted server
Howdy,
My team is experiencing:
An agent is currently in this state. Manual restarts through:
shutdown /r /t 0
do not clear the status. There is a property that seems to exist:
teamcity.agent.reboot.started
That I can see through the Agent Parameters > Configuration Parameters tab. Additionally I can observe it set to true as a property in the Rest API for the agent.
Is there some way to manually clear this agent property? I have been unable to see. I can also provide agent logs if asked.
Please sign in to leave a comment.
Anything here? I can open a YouTrack but I still have an agent in this state.
Hi Todd,
please send us the teamcity-agent.log and teamcity-server.log. Feel free to use the submit a request button on top of this page to keep them private.
As explained in the thread you linked, we don't know exactly why this hangs, so having the logs would be useful in trying to help.
Per instructions opened #2180697 using the submit a request button.
Is there a way to clear this now that we have the logs that indicated how the agent got in this state?
If I were to speculate, we ended up having two agent processes running that were causing other issues, so it very well may be a side effect of that previous state. The problem is that has left us in a state where this flag is not clearing and there's no obvious way to undo that manually.
I managed to resolve this on my own.
By disconnecting the agent entirely by stopping all agent processes, the reboot flag eventually cleared. The agent is now reconnected and accepting builds. Proposed solution for the symptom is to disconnect the agent entirely and reconnect, which is easier than restarting the server as the original issue proposed.
Hi Todd,
thanks for reporting back. While glad it's working now, that would be a workaround and we would like to get to the bottom of why this is actually happening, so if you could follow up on the email I sent you earlier today that would be great. Otherwise, feel free to ignore it.