Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flaky Test]: TestInstallWithoutBasePath – Received unexpected error: error running agent install command: exit status 1 #5343

Closed
belimawr opened this issue Aug 22, 2024 · 4 comments
Assignees
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team

Comments

@belimawr
Copy link
Contributor

Failing test case

TestInstallWithoutBasePath

Error message

Received unexpected error: error running agent install command: exit status 1

Build

https://buildkite.com/elastic/elastic-agent-extended-testing/builds/2084#01917ae9-918f-414b-b9d5-a80b523129b4

OS

Windows

Stacktrace and notes

2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): FAIL	github.com/elastic/elastic-agent/testing/integration	1656.997s
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): === Failed
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): === FAIL: testing/integration TestInstallWithoutBasePath (11.56s)
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fetcher.go:93: Using existing artifact elastic-agent-8.16.0-SNAPSHOT-windows-x86_64.zip
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture.go:282: Extracting artifact elastic-agent-8.16.0-SNAPSHOT-windows-x86_64.zip to C:\Users\windows\AppData\Local\Temp\TestInstallWithoutBasePath4145407707\001
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture.go:300: Completed extraction of artifact elastic-agent-8.16.0-SNAPSHOT-windows-x86_64.zip to C:\Users\windows\AppData\Local\Temp\TestInstallWithoutBasePath4145407707\001
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture.go:900: Components were not modified from the fetched artifact
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture_install.go:164: [test TestInstallWithoutBasePath] Inside fixture install function
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture_install.go:192: [test TestInstallWithoutBasePath] Inside fixture installNoPkgManager function
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture.go:657: >> running binary with: [C:\Users\windows\AppData\Local\Temp\TestInstallWithoutBasePath4145407707\001\elastic-agent-8.16.0-SNAPSHOT-windows-x86_64\elastic-agent.exe install --force --unprivileged]
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture.go:1028: Dumping running processes in C:\Users\windows\agent\build\diagnostics\TEST-TestInstallWithoutBasePath-windows-amd64-ProcessDump-install.json
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): fixture.go:1031: failed to dump process; failed to create output file C:\Users\windows\agent\build\diagnostics\TEST-TestInstallWithoutBasePath-windows-amd64-ProcessDump-install.json root: open C:\Users\windows\agent\build\diagnostics\TEST-TestInstallWithoutBasePath-windows-amd64-ProcessDump-install.json: The system cannot find the path specified.
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): install_test.go:58: install output: Unprivileged installation mode enabled; this feature is currently in beta.
2024-08-22 17:45:19 UTC	[====] Failed to install service  [4s] Error uninstalling. Printing logsying install files  [0s]
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): Error: error installing package: error getting service installation options: failed to set user elastic-agent-user password for service: call to NetUserSetInfo failed: status=2245 error=4294967295
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.16/fleet-troubleshooting.html
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): install_test.go:59:
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): Error Trace:	C:/Users/windows/agent/testing/integration/install_test.go:59
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): Error:      	Received unexpected error:
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): error running agent install command: exit status 1
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): Test:       	TestInstallWithoutBasePath
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stdout): DONE 215 tests, 1 failure in 1668.121s
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) Test output (sudo) (stderr): Error: go test returned a non-zero value: exit status 1
2024-08-22 17:45:19 UTC	>>> (windows-amd64-2022-default) sudo tests failed: Process exited with status 1
@belimawr belimawr added Team:Elastic-Agent Label for the Agent team flaky-test Unstable or unreliable test cases. labels Aug 22, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@belimawr belimawr self-assigned this Aug 22, 2024
@blakerouse
Copy link
Contributor

Looks like same failure as #4891

Not specific to this test.

@belimawr
Copy link
Contributor Author

Indeed it does. I cannot reproduce it running from my machine :/

@pierrehilbert
Copy link
Contributor

Best to close this one if this is a duplicate and to have everything in #4891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky-test Unstable or unreliable test cases. Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

No branches or pull requests

4 participants