# Agent binary download source location not working

**URL:** <https://discuss.elastic.co/t/agent-binary-download-source-location-not-working/316925>\
**Category:** Beats\
**Tags:** fleet\
**Created:** [October 18, 2022, 5:09pm UTC](https://discuss.elastic.co/t/agent-binary-download-source-location-not-working/316925 "2022-10-18T17:09:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrisarkameru](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrisarkameru/32/112242_2.png) [@andrisarkameru](https://discuss.elastic.co/u/andrisarkameru)\
**Post date:** [October 18, 2022, 5:09pm UTC](https://discuss.elastic.co/t/agent-binary-download-source-location-not-working/316925/1 "2022-10-18T17:09:40Z")

</div>

Hello,  
I'm using elasticsearch/kibana version 8.4.2 on windows containers.

It seems that Kibana fleet binary download source setting does not work, or does not get taken into account.

i'm following the air-gapped instructions and have downloaded the list of windows files for 8.4.2 to update elastic-agent from 8.3.3 to 8.4.2. And also this [[Fleet] Implement UI for configuring custom agent binary download sources · Issue #133828 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/133828) description, and I'm following it by setting the default fleets setting to use my hosted files on [http://my-server:17500/elastic-agent-registry/](http://my-server:17500/elastic-agent-registry/)

I can confirm, that I can download the artefact manually from URL [http://my-server:17500/elastic-agent-registry/beats/elastic-agent/elastic-agent-8.4.2-windows-x86\_64.zip](http://my-server:17500/elastic-agent-registry/beats/elastic-agent/elastic-agent-8.4.2-windows-x86_64.zip)

However, when I launch the Elastic Agent Upgrade, the following errors occure:

```auto
20:04:10.487
elastic_agent
[elastic_agent][info] 2022-10-18T20:04:10+03:00 - message: Application: [647fc356-0a20-45c0-b6a8-7269234fd22e]: State changed to UPDATING: Update to version '8.4.2' started - type: 'STATE' - sub_type: 'UPDATING'
20:04:54.018
elastic_agent
[elastic_agent][error] 2022-10-18T20:04:54+03:00 - message: Application: [647fc356-0a20-45c0-b6a8-7269234fd22e]: State changed to FAILED: failed upgrade of agent binary: 2 errors occurred:
	* package 'C:\Program Files\Elastic\Agent\data\elastic-agent-0ffbed\downloads\elastic-agent-8.4.2-windows-x86_64.zip' not found: open C:\Program Files\Elastic\Agent\data\elastic-agent-0ffbed\downloads\elastic-agent-8.4.2-windows-x86_64.zip: The system cannot find the file specified.
	* fetching package failed: Get "https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.4.2-windows-x86_64.zip": dial tcp 34.120.127.130:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

 - type: 'ERROR' - sub_type: 'FAILED'
20:04:54.019
elastic_agent
[elastic_agent][error] failed to dispatch actions, error: failed upgrade of agent binary: 2 errors occurred:
	* package 'C:\Program Files\Elastic\Agent\data\elastic-agent-0ffbed\downloads\elastic-agent-8.4.2-windows-x86_64.zip' not found: open C:\Program Files\Elastic\Agent\data\elastic-agent-0ffbed\downloads\elastic-agent-8.4.2-windows-x86_64.zip: The system cannot find the file specified.
	* fetching package failed: Get "https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.4.2-windows-x86_64.zip": dial tcp 34.120.127.130:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

20:04:54.019
elastic_agent
[elastic_agent][error] Elastic Agent status changed to: 'error'

```

Its as if elastic agent hasn't even tried to download update from my registry.

I have even deleted the default binary registry source from the list and left only my hosted url. Still the agent is erroring on download from the [artifacts.elastic.co](http://artifacts.elastic.co) ...

---

<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:** [November 15, 2022, 7:09pm UTC](https://discuss.elastic.co/t/agent-binary-download-source-location-not-working/316925/2 "2022-11-15T19:09:45Z")

</div>

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