# Upgrading an elastic-agent behind a proxy fails

**URL:** https://discuss.elastic.co/t/upgrading-an-elastic-agent-behind-a-proxy-fails/281780
**Category:** Kibana
**Tags:** fleet
**Created:** [August 18, 2021, 7:31am UTC](https://discuss.elastic.co/t/upgrading-an-elastic-agent-behind-a-proxy-fails/281780 "2021-08-18T07:31:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![leprovokateur](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@leprovokateur](https://discuss.elastic.co/u/leprovokateur)
#### Post date: [August 18, 2021, 7:31am UTC](https://discuss.elastic.co/t/upgrading-an-elastic-agent-behind-a-proxy-fails/281780/1 "2021-08-18T07:31:15Z")

</div>

Hi ,

I try to upgrade an elastic-agent behind a proxy, but fail:

```auto
09:15:49.883 elastic_agent [elastic_agent][error] 2021-08-18T09:15:49+02:00 - message: Application: [e4cf95ba-8c94-417d-a25e-2afe0a1e02b6]: State changed to FAILED: failed upgrade of agent binary: 2 errors occurred: * package '/opt/Elastic/Agent/data/elastic-agent-686ba4/downloads/elastic-agent-7.14.0-linux-x86_64.tar.gz.sha512' not found: open /opt/Elastic/Agent/data/elastic-agent-686ba4/downloads/elastic-agent-7.14.0-linux-x86_64.tar.gz.sha512: no such file or directory * fetching package failed: Get "https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.14.0-linux-x86_64.tar.gz": read tcp 192.168.58.82:50326->34.120.127.130:443: read: connection reset by peer - type: 'ERROR' - sub_type: 'FAILED'

09:15:49.893 elastic_agent [elastic_agent][error] failed to dispatch actions, error: failed upgrade of agent binary: 2 errors occurred: * package '/opt/Elastic/Agent/data/elastic-agent-686ba4/downloads/elastic-agent-7.14.0-linux-x86_64.tar.gz.sha512' not found: open /opt/Elastic/Agent/data/elastic-agent-686ba4/downloads/elastic-agent-7.14.0-linux-x86_64.tar.gz.sha512: no such file or directory * fetching package failed: Get "https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.14.0-linux-x86_64.tar.gz": read tcp 192.168.58.82:50326->34.120.127.130:443: read: connection reset by peer

09:15:49.893 elastic_agent [elastic_agent][error] Elastic Agent status changed to: 'error'

```

Where am I supposed to add the information on about the proxy to my configuration?

Best regards,  
Robert

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [August 19, 2021, 1:30pm UTC](https://discuss.elastic.co/t/upgrading-an-elastic-agent-behind-a-proxy-fails/281780/2 "2021-08-19T13:30:41Z")

</div>

Hi @leprovokateur Proxy support was added in 7.14 but we are still a bit behind on the documentation part. Comments in this thread should help: [Proxy setup for agent · Issue #593 · elastic/observability-docs · GitHub](https://github.com/elastic/observability-docs/issues/593)

---

<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 16, 2021, 1:30pm UTC](https://discuss.elastic.co/t/upgrading-an-elastic-agent-behind-a-proxy-fails/281780/3 "2021-09-16T13:30:59Z")

</div>

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