# Fleet agent upgrade fails 8.1.2

**URL:** <https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [April 21, 2022, 10:26pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970 "2022-04-21T22:26:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![VamPikmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vampikmin/32/22367_2.png) [@VamPikmin](https://discuss.elastic.co/u/VamPikmin)\
**Post date:** [April 21, 2022, 10:26pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/1 "2022-04-21T22:26:37Z")

</div>

After the stack upgrade to the latest 8.1.3 the agents are unable to upgrade

```auto
 error: failed verification of agent binary: 2 errors occurred:\n\t* fetching asc file from 'C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.asc': open C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.asc: The system cannot find the file specified.\n\t* open C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.sha512: The system cannot find the file specified.\n\n","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-21T21:53:19.122Z","log.origin":{"file.name":"status/reporter.go","file.line":236},"message":"Elastic Agent status changed to: 'error'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-21T21:55:38.709Z","log.origin":{"file.name":"fleet/fleet_gateway.go","file.line":206},"message":"Could not communicate with fleet-server Checking API will retry, error: fail to checkin to fleet-server: Post \"https://192.168.131.155:8220/api/fleet/agents/17a97d7d-5ce3-4004-9f0f-f0c7c889efc6/checkin?\": EOF","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-21T21:56:48.808Z","log.origin":{"file.name":"fleet/fleet_gateway.go","file.line":206},"message":"Could not communicate with fleet-server Checking API will retry, error: fail to checkin to fleet-server: Post \"https://192.168.131.155:8220/api/fleet/agents/17a97d7d-5ce3-4004-9f0f-f0c7c889efc6/checkin?\": dial tcp 192.168.131.155:8220: connectex: No connection could be made because the target machine actively refused it.","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-04-21T22:02:00.098Z","log.origin":{"file.name":"log/reporter.go","file.line":40},"message":"2022-04-22T08:02:00+10:00 - message: Application: [17a97d7d-5ce3-4004-9f0f-f0c7c889efc6]: State changed to UPDATING: Update to version '8.1.3' started - type: 'STATE' - sub_type: 'UPDATING'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-21T22:03:03.238Z","log.origin":{"file.name":"log/reporter.go","file.line":36},"message":"2022-04-22T08:03:03+10:00 - message: Application: [17a97d7d-5ce3-4004-9f0f-f0c7c889efc6]: State changed to FAILED: failed verification of agent binary: 2 errors occurred:\n\t* fetching asc file from 'C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.asc': open C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.asc: The system cannot find the file specified.\n\t* open C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.sha512: The system cannot find the file specified.\n\n - type: 'ERROR' - sub_type: 'FAILED'","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-04-21T22:03:03.238Z","log.origin":{"file.name":"fleet/fleet_gateway.go","file.line":181},"message":"failed to dispatch actions, error: failed verification of agent binary: 2 errors occurred:\n\t* fetching asc file from 'C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.asc': open C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.asc: The system cannot find the file specified.\n\t* open C:\\Program Files\\Elastic\\Agent\\data\\elastic-agent-6118f2\\downloads\\elastic-agent-8.1.3-windows-x86_64.zip.sha512: The system cannot find the file specified.\n\n","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-04-21T22:07:49.028Z","log.origin":{"file.name":"status/reporter.go","file.line":236},"message":"Elastic Agent status changed to: 'online'","ecs.version":"1.6.0"}

```

Same thing happened with 8.1.1 to 8.1.2

Am I missing something, do I need to place the zip file in the downloads location, I thought this was meant to be automated

Thanks

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [April 25, 2022, 10:18am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/2 "2022-04-25T10:18:18Z")

</div>

I see the same thing, the agents fail to upgrade, Windows and Linux and we have to upgrade manually.

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [April 25, 2022, 12:36pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/3 "2022-04-25T12:36:47Z")

</div>

You're probably running into this known issue: [Fleet and Elastic Agent 8.1.2 | Fleet and Elastic Agent Guide [8.1] | Elastic](https://www.elastic.co/guide/en/fleet/8.1/release-notes-8.1.2.html#known-issues-8.1.2), in theory is fixed in 8.1.3 (but idk if you can really test until 8.2.0 gets released).

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [April 25, 2022, 12:41pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/4 "2022-04-25T12:41:45Z")

</div>

from 8.1.1 to 8.1.2 to 8.1.3 same issue in practise ... Always update when minor issues are released and always have issue with linux distro packages, either the verification, missing the download package or something else breaking.

Fleet Managed Elastic-Agents are really not GA worthy releases... still cant live up to Beats.

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [April 25, 2022, 12:58pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/5 "2022-04-25T12:58:32Z")

</div>

Yeah, I'm hoping that the 8.1.3 fix actually fixes the issue, as the upgrades on Linux have always been a bit flaky via the UI, and not being able to uninstall (& unregister) to reinstall/upgrade has always been a bit annoying.

---

<div class="post-metadata">

**Author:** ![zx8086](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zx8086/32/94917_2.png) [@zx8086](https://discuss.elastic.co/u/zx8086)\
**Post date:** [April 25, 2022, 1:15pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/6 "2022-04-25T13:15:37Z")

</div>

Agreed, I cannot push forward a solution to replace the current Beats setup, since every version release brings a new issue to kill any wide-scale deployment hopes in Production.

---

<div class="post-metadata">

**Author:** ![VamPikmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vampikmin/32/22367_2.png) [@VamPikmin](https://discuss.elastic.co/u/VamPikmin)\
**Post date:** [April 27, 2022, 6:45am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/7 "2022-04-27T06:45:16Z")

</div>

Thanks for your input guys, I'm seeing the same thing so far.  
Going to stick with beats for now but keep a test server and monitor the changes

---

<div class="post-metadata">

**Author:** ![JimG](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@JimG](https://discuss.elastic.co/u/JimG)\
**Post date:** [April 29, 2022, 8:16am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/9 "2022-04-29T08:16:47Z")

</div>

@BenB196 Shame the link is not working anymore. Would like to see more about this issue.

@VamPikmin I found a workaround, but it is far from ideal. It is possible to upgrade from 8.1.2 to 8.1.3. I got it working by unenroll Elastic Agent in Fleet and uninstalling Elastic Agent from the client with 8.1.2 version installed and then download 8.1.3 and install it.

---

<div class="post-metadata">

**Author:** ![VamPikmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vampikmin/32/22367_2.png) [@VamPikmin](https://discuss.elastic.co/u/VamPikmin)\
**Post date:** [April 29, 2022, 10:45pm UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/10 "2022-04-29T22:45:09Z")

</div>

@JimG Yep, that's what I've been doing too. Thanks for your input

---

<div class="post-metadata">

**Author:** ![JimG](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@JimG](https://discuss.elastic.co/u/JimG)\
**Post date:** [May 5, 2022, 11:07am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/11 "2022-05-05T11:07:55Z")

</div>

@VamPikmin Allright, just saw a new version of elastic came out (8.2.0) , maybe the function will work there.

I got a homelab where i'll be testning if this issue exist when i upgrade from 8.1.2 --\> 8.1.3 if i got the same issue, i'll try upgrading to 8.2.0 and see it is possible to upgrade elastic agents from fleet.

---

<div class="post-metadata">

**Author:** ![VamPikmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vampikmin/32/22367_2.png) [@VamPikmin](https://discuss.elastic.co/u/VamPikmin)\
**Post date:** [May 6, 2022, 9:02am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/12 "2022-05-06T09:02:10Z")

</div>

@JimG Upgraded manually from 8.1.2 =\> 8.1.3 (same issue as before)

8.1.3 =\> 8.2.0 Worked automatically, so it's been fixed. Thanks Elastic

---

<div class="post-metadata">

**Author:** ![JimG](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@JimG](https://discuss.elastic.co/u/JimG)\
**Post date:** [May 9, 2022, 7:15am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/13 "2022-05-09T07:15:41Z")

</div>

@VamPikmin Well its kinda working for me as well. The Elastic Agent that is upgraded to 8.1.3 will upgrade without any problems to 8.2.0.

but the 8.1.2 --\> 8.2.0 post the same error.

---

<div class="post-metadata">

**Author:** ![VamPikmin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vampikmin/32/22367_2.png) [@VamPikmin](https://discuss.elastic.co/u/VamPikmin)\
**Post date:** [May 9, 2022, 8:12am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/14 "2022-05-09T08:12:41Z")

</div>

@JimG

Yep, that's what I've found too. Let's see what happens next version

---

<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:** [June 6, 2022, 10:13am UTC](https://discuss.elastic.co/t/fleet-agent-upgrade-fails-8-1-2/302970/15 "2022-06-06T10:13:37Z")

</div>

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