-
Notifications
You must be signed in to change notification settings - Fork 126
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]: TestRepeatedInstallUninstall – failed to set user elastic-agent-user password for service #4891
Comments
Pinging @elastic/elastic-agent (Team:Elastic-Agent) |
Error 4294967295 is a weird one though, that's the max value of a uint32 (0xffffffff) CC @blakerouse |
I don't understand how the password could not be long enough, its set to 127 characters long and cannot be any other size. |
Is there any way that the characters used could be interpreted as NULL or some kind of terminator, so that when the Windows NetUserSetInfo takes the string it "sees" it as being too short? |
@leehinman Nothing stands out to me, unless Windows doesn't like one of those special characters? Look here and let me know if anything stands out to you. |
Nothing leaps out, but we do convert the string to a UTF16 pointer. I don't know how that would cause problems, all those characters should map cleanly and not get into the surrogate halves. I'm just trying to come up with "something" that might account for the password appearing shorter than the length of the array. For the short term, what about changing the error message so we dump the string password and the array pointed to by the UTF16 pointer? If nothing else that should give us the input that causes the problem. |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Failing test case
TestRepeatedInstallUninstall
Error message
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
Build
https://buildkite.com/elastic/elastic-agent-extended-testing/builds/462#018ff4a0-ecda-424d-8dd8-6e7c41840e5f
OS
Windows
Stacktrace and notes
The text was updated successfully, but these errors were encountered: