# Elastic agent upgrade 8.7.1 failed

**URL:** https://discuss.elastic.co/t/elastic-agent-upgrade-8-7-1-failed/341169
**Category:** Elastic Security
**Created:** [August 20, 2023, 4:19am UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-8-7-1-failed/341169 "2023-08-20T04:19:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![xqaiviwjxzw](https://avatars.discourse-cdn.com/v4/letter/x/bbce88/32.png) [@xqaiviwjxzw](https://discuss.elastic.co/u/xqaiviwjxzw)
#### Post date: [August 20, 2023, 4:19am UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-8-7-1-failed/341169/1 "2023-08-20T04:19:13Z")

</div>

Hello ,When I upgraded the elastic agent from 8.5.2 to 8.7.1, the following error occurred, and I have been unable to upgrade to 8.7.1. What is the solution?

```auto
message: "component gateway-8da30c24: failed to dispatch actions, error: failed upgrade
  of agent binary: 2 errors occurred:\n\t* package '/Library/Elastic/Agent/data/elastic-agent-c13f91/downloads/elastic-agent-8.7.1-darwin-x86_64.tar.gz'
  not found: open /Library/Elastic/Agent/data/elastic-agent-c13f91/downloads/elastic-agent-8.7.1-darwin-x86_64.tar.gz:
  no such file or directory\n\t* copying fetched package failed: net/http: request
  canceled (Client.Timeout or context cancellation while reading body)\n\n"

```

---

<div class="post-metadata">

### Author: ![Chris\_Owens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chris_owens/32/57329_2.png) [@Chris\_Owens](https://discuss.elastic.co/u/Chris_Owens)
#### Post date: [August 22, 2023, 2:26pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-8-7-1-failed/341169/2 "2023-08-22T14:26:48Z")

</div>

Have you retried this upgrade and received the same error? It seems the download of the 8.7.1 Agent failed. How is the internet connection from the machine with the Agent running?

---

<div class="post-metadata">

### Author: ![xqaiviwjxzw](https://avatars.discourse-cdn.com/v4/letter/x/bbce88/32.png) [@xqaiviwjxzw](https://discuss.elastic.co/u/xqaiviwjxzw)
#### Post date: [August 22, 2023, 3:40pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-8-7-1-failed/341169/3 "2023-08-22T15:40:04Z")

</div>

The retry is still the same, the proxy local network is normal, and there is no problem visiting other websites to download, but visiting [https://artifacts.elastic.co](https://artifacts.elastic.co) feels slow. Is there any way to improve this? Or can there be a way to have multiple download addresses for backup, and then the download speed can be accelerated?

---

<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: [September 19, 2023, 3:40pm UTC](https://discuss.elastic.co/t/elastic-agent-upgrade-8-7-1-failed/341169/4 "2023-09-19T15:40:07Z")

</div>

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