Agent binary download source location not working

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 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/

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

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

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 ...

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