# Elastic Agent Crashes and Restarts Every Second on Windows 11

**URL:** <https://discuss.elastic.co/t/elastic-agent-crashes-and-restarts-every-second-on-windows-11/293789>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [January 7, 2022, 10:59pm UTC](https://discuss.elastic.co/t/elastic-agent-crashes-and-restarts-every-second-on-windows-11/293789 "2022-01-07T22:59:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![res260](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/res260/32/48329_2.png) [@res260](https://discuss.elastic.co/u/res260)\
**Post date:** [January 7, 2022, 10:59pm UTC](https://discuss.elastic.co/t/elastic-agent-crashes-and-restarts-every-second-on-windows-11/293789/1 "2022-01-07T22:59:22Z")

</div>

Hey, I just setup the Elastic Stack to act as a SIEM and successfully deployed the Elastic Agent on 2 systems: my personnal laptop (running windows 10 pro) and my ubuntu 20 VPS. Both work fine.  
However, when trying to install and enroll the Elastic Agent to my personnal Desktop running this:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f0f3ba491a4f1cc4a847a6dbb01e12c5691c860f.png)  
I had problems.  
The installation was successful:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/c/8/c847b1194d00d709064bbd62dc03247041f7eabd.jpeg)  
However, in fleet the agent was stuck at "updating":  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/c/fcf33c7043e36efa54d2509199e8efa94c15637f.png)  
When I looked in the services in windows, the elastic agent service kept going from running to stopped every second:  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/8/88273f117bddcc87bca964aa47067c3841026fb7.png)  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/7/17775bc912924bd707a9f8a5c15d96a1bedd5e25.png)

When looking at the event log, we see that it keeps crashing and restarting:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/4/74056f8a6ee00fbd0f651ebb82bb22abbf13ec65.png)

When looking at the logs in C:\Program Files\Elastic\Agent\data\elastic-agent-xxxxxx\logs, there is nothing interesting here (all files are the same):

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/a/9/a9d99170b25f2e41016374f1ff8d4523602c1cb9.png)

I tried enrolling the agent with my default policy (with integrations system, packetbeat, metrics and endpoint security) and with another policy with 0 integration, same thing happens.

I am running Elastic Agent 7.16.2.

Any idea what might cause this? Thanks for your help, I greatly appreciate Elastic Products \<3

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 5, 2022, 12:59am UTC](https://discuss.elastic.co/t/elastic-agent-crashes-and-restarts-every-second-on-windows-11/293789/2 "2022-02-05T00:59:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
