You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== RUN TestInstallWithBasePath
fetcher.go:95: Using existing artifact elastic-agent-8.15.0-SNAPSHOT-windows-x86_64.zip
fixture.go:281: Extracting artifact elastic-agent-8.15.0-SNAPSHOT-windows-x86_64.zip to C:\Users\windows\AppData\Local\Temp\TestInstallWithBasePath2818459094\001
fixture.go:299: Completed extraction of artifact elastic-agent-8.15.0-SNAPSHOT-windows-x86_64.zip to C:\Users\windows\AppData\Local\Temp\TestInstallWithBasePath2818459094\001
fixture.go:900: Components were not modified from the fetched artifact
fixture_install.go:110: [test TestInstallWithBasePath] Inside fixture install function
fixture_install.go:136: [test TestInstallWithBasePath] Inside fixture installNoPkgManager function
fixture.go:656: >> running binary with: [C:\Users\windows\AppData\Local\Temp\TestInstallWithBasePath2818459094\001\elastic-agent-8.15.0-SNAPSHOT-windows-x86_64\elastic-agent.exe install --base-path C:\ --force --unprivileged]
fixture.go:656: >> running binary with: [C:\Elastic\Agent\elastic-agent.exe uninstall --force]
fixture_install.go:214: [test TestInstallWithBasePath] Inside fixture cleanup function
fixture.go:656: >> running binary with: [C:\Elastic\Agent\elastic-agent.exe uninstall --force]
fixture_install.go:265:
Error Trace: C:/Users/windows/agent/pkg/testing/fixture_install.go:265
C:/Program Files/Go/src/testing/testing.go:1169
C:/Program Files/Go/src/testing/testing.go:1347
C:/Program Files/Go/src/testing/testing.go:1589
Error: Received unexpected error:
error running uninstall command: exit status 1
Test: TestInstallWithBasePath
Messages: uninstalling agent failed. Output: "
[] Stopping service [0s][====] Successfully stopped service [1s][=== ] Stopping upgrade watcher; none found [1s][] Removing service [1s][] Successfully uninstalled service [1s][] Removing install directory [1s][=== ] Failed to remove install directory [36s][=== ] Failed to uninstall agent [36s] Error uninstalling. Printing logs
2024-05-23T20:18:21.667Z\tDEBUG\t[uninstall]\tLoaded configuration from C:\\Elastic\\Agent\\elastic-agent.yml
2024-05-23T20:18:21.667Z\tDEBUG\t[uninstall]\tMerged configuration from C:\\Elastic\\Agent\\elastic-agent.yml into result
2024-05-23T20:18:21.667Z\tDEBUG\t[uninstall]\tMerged all configuration files from [C:\\Elastic\\Agent\\elastic-agent.yml], no external input files
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable]\tStarting controller for composable inputs
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable]\tStarted controller for composable inputs
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable]\tVariable state changed for composable inputs; debounce started
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable]\tKubernetes leaderelection provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-23T20:18:21.672Z\tINFO\t[uninstall.composable.providers.docker]\tDocker provider skipped, unable to connect: protocol not available
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable.providers.kubernetes]\tKubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable]\tkubernetes_secrets provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-23T20:18:21.672Z\tDEBUG\t[uninstall.composable.providers.kubernetes]\tKubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-05-23T20:18:21.778Z\tDEBUG\t[uninstall.composable]\tComputing new variable state for composable inputs
2024-05-23T20:18:21.778Z\tDEBUG\t[uninstall.composable]\tStopping controller for composable inputs
2024-05-23T20:18:21.876Z\tDEBUG\t[uninstall.composable]\tStopped controller for composable inputs
Error: error uninstalling agent: failed to remove installation directory (C:\\Elastic\\Agent): timed out while removing \"C:\\\\Elastic\\\\Agent\". Last error: remove C:\\Elastic\\Agent\\data\\elastic-agent-8.15.0-SNAPSHOT-26f528\\elastic-agent.exe: Access is denied.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.15/fleet-troubleshooting.html
"
fixture_install.go:189: Dumping running processes in C:\Users\windows\agent\build\diagnostics\TEST-TestInstallWithBasePath-windows-amd64-ProcessDump.json
fixture_install.go:192: failed to dump process; failed to create output file C:\Users\windows\agent\build\diagnostics\TEST-TestInstallWithBasePath-windows-amd64-ProcessDump.json root: open C:\Users\windows\agent\build\diagnostics\TEST-TestInstallWithBasePath-windows-amd64-ProcessDump.json: The system cannot find the path specified.
--- FAIL: TestInstallWithBasePath (50.50s)
=== RUN TestInstallWithBasePath/check_agent_package_version
pkgversion_common_test.go:32: package version files found: [C:\Elastic\Agent\data\elastic-agent-8.15.0-SNAPSHOT-26f528\package.version]
pkgversion_common_test.go:41: package version file content: "8.15.0"
--- PASS: TestInstallWithBasePath/check_agent_package_version (0.17s)
The text was updated successfully, but these errors were encountered:
Failing test case
TestInstallWithBasePath
Error message
remove C:\Elastic\Agent\data\elastic-agent-8.15.0-SNAPSHOT-26f528\elastic-agent.exe: Access is denied
Build
https://buildkite.com/elastic/elastic-agent-extended-testing/builds/201#018fa6e0-1a65-41df-8acb-70853d27eaa3
OS
Windows
Stacktrace and notes
The text was updated successfully, but these errors were encountered: