-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elastic-agent gets stuck in Updating - How to troubleshoot and where to look for logs? #1034
Comments
Hi Did it help restarting the service? |
Observed the same issue. Restarting the Elastic-Agent Service helped to get the agent from Updating to Healthy state in Fleet. Elastic-Stack 8.4.0. We rolled out the agents in an industrial environment where bandwith is very low due to different bandwith demanding traffic so maybe there was an issue with the connection during the rollout. Peaked into the logs but didn't find anything interesting. What would be interesting if agent rollout could be simulated in an environment with low bandwith / packet loss etc. like https://docs.vmware.com/en/VMware-Workstation-Pro/16.0/com.vmware.ws.using.doc/GUID-7BFFA8B3-C134-4801-A0AD-3DA53BBAC5CA.html |
@mimeie I have a customer with similar issue but restarting did not work. It ended up creating 3 instances in healthy, offline and updating status: Anything else to try? Thanks |
Possible duplicate of elastic/elastic-agent#760 which we have now root caused. @joshdover is there a link we can share for recovering agents in this state? |
We don't have a public doc, but we should add this to our troubleshooting page. The most simple workaround is to force the agent to upgrade again via API from the Dev Tools app:
A slightly less disruptive change if you have many agents in this state is to manually fix the documents in the agent index: All that we need to do, is to un-mark the Elastic Agents as upgrading, but this is a bit tricky. Just follow the below commands as superuser:
|
Closing this one as outdated/not prioritised, we will reopen it later if required. |
Hi Team,
On certain windows hosts we observed that elastic-agent as soon as enroll gets stuck in updating phase. Can someone guide me where do I look for debug logs on fleet server as well as on windows host?
The text was updated successfully, but these errors were encountered: