Skip to content

[Flaky Test]: TestRepeatedInstallUninstallFleet – The system cannot find the file specified. #7640

@pchila

Description

@pchila

Failing test case

TestRepeatedInstallUninstallFleet

Error message

could not reload agent's daemon, all retries failed. Last error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: open \\\\.\\pipe\\elastic-agent-system: The system cannot find the file specified.

Build

https://buildkite.com/elastic/elastic-agent/builds/19363#0195ec35-a3f2-4a3e-a042-bbfa1f1a81fd/272-982

OS

Windows

Stacktrace and notes

{"log.level":"error","@timestamp":"2025-03-31T13:06:20.945Z","log.origin":{"function":"github.com/elastic/elastic-agent/internal/pkg/agent/cmd.(*enrollCmd).Execute","file.name":"cmd/enroll_cmd.go","file.line":311},"message":"Elastic Agent might not be running; unable to trigger restart: could not reload agent's daemon, all retries failed. Last error: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: open \\\\\\\\.\\\\pipe\\\\elastic-agent-system: The system cannot find the file specified.\"","ecs.version":"1.6.0"}
        Something went wrong while enrolling the Elastic Agent: could not reload agent's daemon, all retries failed. Last error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: open \\\\.\\pipe\\elastic-agent-system: The system cannot find the file specified."
        Error: could not reload agent daemon, unable to trigger restart: could not reload agent's daemon, all retries failed. Last error: rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: open \\\\.\\pipe\\elastic-agent-system: The system cannot find the file specified."
        For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/9.0/fleet-troubleshooting.html
[=== ] Uninstalled  [1m7s] Error uninstalling. Printing logs
        2025-03-31T13:06:20.979Z	DEBUG	[install]	Loaded configuration from C:\Users\buildkite\AppData\Local\Temp\TestRepeatedInstallUninstallFleet4064552420\elastic-agent-9.0.0-SNAPSHOT-windows-x86_64\elastic-agent.yml
        2025-03-31T13:06:20.979Z	DEBUG	[install]	Merged configuration from C:\Users\buildkite\AppData\Local\Temp\TestRepeatedInstallUninstallFleet4064552420\elastic-agent-9.0.0-SNAPSHOT-windows-x86_64\elastic-agent.yml into result
        2025-03-31T13:06:20.979Z	DEBUG	[install]	Merged all configuration files from [C:\Users\buildkite\AppData\Local\Temp\TestRepeatedInstallUninstallFleet4064552420\elastic-agent-9.0.0-SNAPSHOT-windows-x86_64\elastic-agent.yml], no external input files
        2025-03-31T13:06:21.082Z	DEBUG	[install]	Loaded configuration from C:\Users\buildkite\AppData\Local\Temp\TestRepeatedInstallUninstallFleet4064552420\elastic-agent-9.0.0-SNAPSHOT-windows-x86_64\elastic-agent.yml
        2025-03-31T13:06:21.082Z	DEBUG	[install]	Merged configuration from C:\Users\buildkite\AppData\Local\Temp\TestRepeatedInstallUninstallFleet4064552420\elastic-agent-9.0.0-SNAPSHOT-windows-x86_64\elastic-agent.yml into result
        2025-03-31T13:06:21.082Z	DEBUG	[install]	Merged all configuration files from [C:\Users\buildkite\AppData\Local\Temp\TestRepeatedInstallUninstallFleet4064552420\elastic-agent-9.0.0-SNAPSHOT-windows-x86_64\elastic-agent.yml], no external input files
        2025-03-31T13:06:21.082Z	DEBUG	[install.composable]	Starting controller for composable inputs
        2025-03-31T13:06:21.082Z	DEBUG	[install.composable]	Started controller for composable inputs
        2025-03-31T13:06:21.082Z	DEBUG	[install.composable]	Computing new variable state for composable inputs
        2025-03-31T13:06:21.082Z	DEBUG	[install.composable]	Stopping controller for composable inputs
        2025-03-31T13:06:21.082Z	DEBUG	[install.composable]	Stopped controller for composable inputs
        Error: enroll command failed for unknown reason: exit status 1
        For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/9.0/fleet-troubleshooting.html
    install_test.go:697:
        	Error Trace:	C:/buildkite-agent/builds/bk-agent-prod-gcp-1743425000980367647/elastic/elastic-agent/testing/integration/install_test.go:697
        	Error:      	Received unexpected error:
        	            	error running agent install command: exit status 1
        	Test:       	TestRepeatedInstallUninstallFleet/TestRepeatedInstallUninstallFleet-19
        	Messages:   	install failed: error running agent install command: exit status 1
    --- FAIL: TestRepeatedInstallUninstallFleet/TestRepeatedInstallUninstallFleet-19 (67.98s)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Elastic-AgentLabel for the Agent teamflaky-testUnstable or unreliable test cases.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions