# Elastic Agent will not upgrade through fleet or locally

**URL:** <https://discuss.elastic.co/t/elastic-agent-will-not-upgrade-through-fleet-or-locally/269337>\
**Category:** Beats\
**Tags:** elastic-agent\
**Created:** [April 6, 2021, 2:10pm UTC](https://discuss.elastic.co/t/elastic-agent-will-not-upgrade-through-fleet-or-locally/269337 "2021-04-06T14:10:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![The1WhoPrtNocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/the1whoprtnocks/32/72685_2.png) [@The1WhoPrtNocks](https://discuss.elastic.co/u/The1WhoPrtNocks)\
**Post date:** [April 6, 2021, 2:10pm UTC](https://discuss.elastic.co/t/elastic-agent-will-not-upgrade-through-fleet-or-locally/269337/1 "2021-04-06T14:10:06Z")

</div>

Hi,

We deployed the agent to a number of devices for testing. At the time the Elastic stack and Agents were on version 7.10.1 .

We have recently upgraded our stack to 7.12.0 and as you would expect the agents in fleet are requesting that they need an upgrade.

However if i issue the upgrade through fleet it sites for a while saying upgrading, then changes back to healthy but still retaining the old 7.10.1 version for the agent.

If i try and run the upgrade locally using;

C:\Program Files\Elastic\Agent\> .\elastic-agent.exe upgrade 7.12.0

I get the following;

Failed trigger upgrade of daemon: cannot be upgraded; perform upgrading using Fleet

Is there any advice on troubleshooting this upgrade via fleet, or is it a known issue ?  
Is my only course of action to fully remove the agent from the hosts and install the agent for 7.12.0 from fresh ?

Thanks in advance

---

<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:** [May 4, 2021, 4:10pm UTC](https://discuss.elastic.co/t/elastic-agent-will-not-upgrade-through-fleet-or-locally/269337/2 "2021-05-04T16:10:48Z")

</div>

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